@gscdump/contracts 3.4.4 → 3.6.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/v1/index.mjs CHANGED
@@ -2,8 +2,9 @@ import { bingCnameVerificationV1Schema, bingConnectionV1Schema } from "./bing.mj
2
2
  import { isUnknownHttpV1OperationError } from "./http-operation-error.mjs";
3
3
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
4
4
  import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
5
+ import { bingDataQueryV1Schema, bingDataV1Schemas } from "./bing-data.mjs";
5
6
  import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, createRealtimeV1Schemas } from "./realtime.mjs";
6
7
  import { createGscdumpV1Protocol } from "./operations.mjs";
7
8
  import { createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
8
9
  import "./http.mjs";
9
- export { GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, bingCnameVerificationV1Schema, bingConnectionV1Schema, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument };
10
+ export { GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument };
@@ -1,7 +1,7 @@
1
1
  import { CompatibleResponseSchema, HttpV1ProtocolOperation, HttpV1Surface } from "./http-core.mjs";
2
2
  import { NormalizedFilterV1 } from "./browser.mjs";
3
3
  import { z } from "zod";
4
- declare function createGscdumpV1Protocol(): {
4
+ export declare function createGscdumpV1Protocol(): {
5
5
  constants: {
6
6
  httpVersion: "1.0";
7
7
  realtimeProtocolVersion: 1;
@@ -736,12 +736,12 @@ declare function createGscdumpV1Protocol(): {
736
736
  readonly GOOGLE_NEWS: "googleNews";
737
737
  }>>;
738
738
  dimensions: z.ZodArray<z.ZodEnum<{
739
- date: "date";
740
739
  page: "page";
741
740
  query: "query";
742
741
  queryCanonical: "queryCanonical";
743
742
  country: "country";
744
743
  device: "device";
744
+ date: "date";
745
745
  searchAppearance: "searchAppearance";
746
746
  hour: "hour";
747
747
  }>>;
@@ -756,12 +756,12 @@ declare function createGscdumpV1Protocol(): {
756
756
  readonly GOOGLE_NEWS: "googleNews";
757
757
  }>>;
758
758
  dimensions: z.ZodArray<z.ZodEnum<{
759
- date: "date";
760
759
  page: "page";
761
760
  query: "query";
762
761
  queryCanonical: "queryCanonical";
763
762
  country: "country";
764
763
  device: "device";
764
+ date: "date";
765
765
  searchAppearance: "searchAppearance";
766
766
  hour: "hour";
767
767
  }>>;
@@ -893,12 +893,12 @@ declare function createGscdumpV1Protocol(): {
893
893
  readonly GOOGLE_NEWS: "googleNews";
894
894
  }>>;
895
895
  dimensions: z.ZodArray<z.ZodEnum<{
896
- date: "date";
897
896
  page: "page";
898
897
  query: "query";
899
898
  queryCanonical: "queryCanonical";
900
899
  country: "country";
901
900
  device: "device";
901
+ date: "date";
902
902
  searchAppearance: "searchAppearance";
903
903
  hour: "hour";
904
904
  }>>;
@@ -913,12 +913,12 @@ declare function createGscdumpV1Protocol(): {
913
913
  readonly GOOGLE_NEWS: "googleNews";
914
914
  }>>;
915
915
  dimensions: z.ZodArray<z.ZodEnum<{
916
- date: "date";
917
916
  page: "page";
918
917
  query: "query";
919
918
  queryCanonical: "queryCanonical";
920
919
  country: "country";
921
920
  device: "device";
921
+ date: "date";
922
922
  searchAppearance: "searchAppearance";
923
923
  hour: "hour";
924
924
  }>>;
@@ -1021,12 +1021,12 @@ declare function createGscdumpV1Protocol(): {
1021
1021
  }, z.core.$strip>>;
1022
1022
  analyticsRowsRequest: z.ZodObject<{
1023
1023
  dimensions: z.ZodArray<z.ZodEnum<{
1024
- date: "date";
1025
1024
  page: "page";
1026
1025
  query: "query";
1027
1026
  queryCanonical: "queryCanonical";
1028
1027
  country: "country";
1029
1028
  device: "device";
1029
+ date: "date";
1030
1030
  searchAppearance: "searchAppearance";
1031
1031
  hour: "hour";
1032
1032
  }>>;
@@ -5030,6 +5030,438 @@ declare function createGscdumpV1Protocol(): {
5030
5030
  readonly method: "GET";
5031
5031
  readonly path: "/sites/{siteId}/indexing/urls";
5032
5032
  };
5033
+ readonly getSiteBingData: {
5034
+ readonly visibility: "public";
5035
+ readonly semantics: {
5036
+ readonly kind: "query";
5037
+ readonly sideEffects: "none";
5038
+ readonly idempotent: true;
5039
+ readonly retry: "idempotent";
5040
+ readonly readConsistency: "primary";
5041
+ };
5042
+ readonly auth: {
5043
+ readonly credentials: readonly ["user_key", "partner_key"];
5044
+ readonly scopes: readonly ["analytics:read"];
5045
+ readonly ownership: readonly [{
5046
+ readonly credential: "user_key";
5047
+ readonly rule: "authorized_site";
5048
+ }, {
5049
+ readonly credential: "partner_key";
5050
+ readonly rule: "authorized_site";
5051
+ }];
5052
+ };
5053
+ readonly request: {
5054
+ readonly params: z.ZodObject<{
5055
+ siteId: z.ZodString;
5056
+ }, z.core.$strict>;
5057
+ readonly query: z.ZodObject<{
5058
+ dataset: z.ZodEnum<{
5059
+ keywords: "keywords";
5060
+ pages: "pages";
5061
+ traffic: "traffic";
5062
+ crawl: "crawl";
5063
+ }>;
5064
+ startDate: z.ZodISODate;
5065
+ endDate: z.ZodISODate;
5066
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5067
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5068
+ }, z.core.$strict>;
5069
+ readonly headers: z.ZodObject<{
5070
+ 'x-request-id': z.ZodOptional<z.ZodString>;
5071
+ }, z.core.$strict>;
5072
+ readonly body: null;
5073
+ };
5074
+ readonly responses: {
5075
+ readonly 200: CompatibleResponseSchema<z.ZodObject<{
5076
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
5077
+ searchEngine: z.ZodLiteral<"bing">;
5078
+ siteUrl: z.ZodURL;
5079
+ dataset: z.ZodLiteral<"traffic">;
5080
+ semantics: z.ZodLiteral<"site-totals">;
5081
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5082
+ readonly _tag: z.ZodLiteral<"missing">;
5083
+ }, z.core.$strip>, z.ZodObject<{
5084
+ readonly observedAt: z.ZodISODateTime;
5085
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5086
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5087
+ readonly _tag: z.ZodLiteral<"ready">;
5088
+ }, z.core.$strip>, z.ZodObject<{
5089
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5090
+ readonly lastAttemptAt: z.ZodISODateTime;
5091
+ readonly reason: z.ZodString;
5092
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5093
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5094
+ readonly _tag: z.ZodLiteral<"unavailable">;
5095
+ }, z.core.$strip>], "_tag">;
5096
+ rows: z.ZodArray<z.ZodObject<{
5097
+ readonly date: z.ZodISODate;
5098
+ readonly clicks: z.ZodNumber;
5099
+ readonly impressions: z.ZodNumber;
5100
+ }, z.core.$strip>>;
5101
+ pagination: z.ZodObject<{
5102
+ readonly total: z.ZodNumber;
5103
+ readonly limit: z.ZodNumber;
5104
+ readonly offset: z.ZodNumber;
5105
+ readonly hasMore: z.ZodBoolean;
5106
+ }, z.core.$strip>;
5107
+ }, z.core.$strip>, z.ZodObject<{
5108
+ searchEngine: z.ZodLiteral<"bing">;
5109
+ siteUrl: z.ZodURL;
5110
+ dataset: z.ZodLiteral<"pages">;
5111
+ semantics: z.ZodLiteral<"ranked-pages">;
5112
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5113
+ readonly _tag: z.ZodLiteral<"missing">;
5114
+ }, z.core.$strip>, z.ZodObject<{
5115
+ readonly observedAt: z.ZodISODateTime;
5116
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5117
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5118
+ readonly _tag: z.ZodLiteral<"ready">;
5119
+ }, z.core.$strip>, z.ZodObject<{
5120
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5121
+ readonly lastAttemptAt: z.ZodISODateTime;
5122
+ readonly reason: z.ZodString;
5123
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5124
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5125
+ readonly _tag: z.ZodLiteral<"unavailable">;
5126
+ }, z.core.$strip>], "_tag">;
5127
+ rows: z.ZodArray<z.ZodObject<{
5128
+ readonly averageClickPosition: z.ZodNullable<z.ZodNumber>;
5129
+ readonly averageImpressionPosition: z.ZodNullable<z.ZodNumber>;
5130
+ readonly page: z.ZodURL;
5131
+ readonly date: z.ZodISODate;
5132
+ readonly clicks: z.ZodNumber;
5133
+ readonly impressions: z.ZodNumber;
5134
+ }, z.core.$strip>>;
5135
+ pagination: z.ZodObject<{
5136
+ readonly total: z.ZodNumber;
5137
+ readonly limit: z.ZodNumber;
5138
+ readonly offset: z.ZodNumber;
5139
+ readonly hasMore: z.ZodBoolean;
5140
+ }, z.core.$strip>;
5141
+ }, z.core.$strip>, z.ZodObject<{
5142
+ searchEngine: z.ZodLiteral<"bing">;
5143
+ siteUrl: z.ZodURL;
5144
+ dataset: z.ZodLiteral<"keywords">;
5145
+ semantics: z.ZodLiteral<"ranked-keywords">;
5146
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5147
+ readonly _tag: z.ZodLiteral<"missing">;
5148
+ }, z.core.$strip>, z.ZodObject<{
5149
+ readonly observedAt: z.ZodISODateTime;
5150
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5151
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5152
+ readonly _tag: z.ZodLiteral<"ready">;
5153
+ }, z.core.$strip>, z.ZodObject<{
5154
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5155
+ readonly lastAttemptAt: z.ZodISODateTime;
5156
+ readonly reason: z.ZodString;
5157
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5158
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5159
+ readonly _tag: z.ZodLiteral<"unavailable">;
5160
+ }, z.core.$strip>], "_tag">;
5161
+ rows: z.ZodArray<z.ZodObject<{
5162
+ readonly averageClickPosition: z.ZodNullable<z.ZodNumber>;
5163
+ readonly averageImpressionPosition: z.ZodNullable<z.ZodNumber>;
5164
+ readonly keyword: z.ZodString;
5165
+ readonly date: z.ZodISODate;
5166
+ readonly clicks: z.ZodNumber;
5167
+ readonly impressions: z.ZodNumber;
5168
+ }, z.core.$strip>>;
5169
+ pagination: z.ZodObject<{
5170
+ readonly total: z.ZodNumber;
5171
+ readonly limit: z.ZodNumber;
5172
+ readonly offset: z.ZodNumber;
5173
+ readonly hasMore: z.ZodBoolean;
5174
+ }, z.core.$strip>;
5175
+ }, z.core.$strip>, z.ZodObject<{
5176
+ searchEngine: z.ZodLiteral<"bing">;
5177
+ siteUrl: z.ZodURL;
5178
+ dataset: z.ZodLiteral<"crawl">;
5179
+ semantics: z.ZodLiteral<"crawl-statistics">;
5180
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5181
+ readonly _tag: z.ZodLiteral<"missing">;
5182
+ }, z.core.$strip>, z.ZodObject<{
5183
+ readonly observedAt: z.ZodISODateTime;
5184
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5185
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5186
+ readonly _tag: z.ZodLiteral<"ready">;
5187
+ }, z.core.$strip>, z.ZodObject<{
5188
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5189
+ readonly lastAttemptAt: z.ZodISODateTime;
5190
+ readonly reason: z.ZodString;
5191
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5192
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5193
+ readonly _tag: z.ZodLiteral<"unavailable">;
5194
+ }, z.core.$strip>], "_tag">;
5195
+ rows: z.ZodArray<z.ZodObject<{
5196
+ readonly date: z.ZodISODate;
5197
+ readonly crawledPages: z.ZodNumber;
5198
+ readonly inIndex: z.ZodNumber;
5199
+ readonly inLinks: z.ZodNumber;
5200
+ readonly crawlErrors: z.ZodNumber;
5201
+ readonly blockedByRobotsTxt: z.ZodNumber;
5202
+ readonly containsMalware: z.ZodNumber;
5203
+ readonly code2xx: z.ZodNumber;
5204
+ readonly code301: z.ZodNumber;
5205
+ readonly code302: z.ZodNumber;
5206
+ readonly code4xx: z.ZodNumber;
5207
+ readonly code5xx: z.ZodNumber;
5208
+ readonly allOtherCodes: z.ZodNumber;
5209
+ readonly connectionTimeout: z.ZodNullable<z.ZodNumber>;
5210
+ readonly dnsFailures: z.ZodNullable<z.ZodNumber>;
5211
+ }, z.core.$strip>>;
5212
+ pagination: z.ZodObject<{
5213
+ readonly total: z.ZodNumber;
5214
+ readonly limit: z.ZodNumber;
5215
+ readonly offset: z.ZodNumber;
5216
+ readonly hasMore: z.ZodBoolean;
5217
+ }, z.core.$strip>;
5218
+ }, z.core.$strip>], "dataset">;
5219
+ meta: z.ZodObject<{
5220
+ readonly requestId: z.ZodString;
5221
+ readonly surface: z.ZodLiteral<"partner">;
5222
+ readonly version: z.ZodLiteral<"1.0">;
5223
+ }, z.core.$strip>;
5224
+ }, z.core.$strip>, z.ZodObject<{
5225
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
5226
+ searchEngine: z.ZodLiteral<"bing">;
5227
+ siteUrl: z.ZodURL;
5228
+ dataset: z.ZodLiteral<"traffic">;
5229
+ semantics: z.ZodLiteral<"site-totals">;
5230
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5231
+ readonly _tag: z.ZodLiteral<"missing">;
5232
+ }, z.core.$strip>, z.ZodObject<{
5233
+ readonly observedAt: z.ZodISODateTime;
5234
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5235
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5236
+ readonly _tag: z.ZodLiteral<"ready">;
5237
+ }, z.core.$strip>, z.ZodObject<{
5238
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5239
+ readonly lastAttemptAt: z.ZodISODateTime;
5240
+ readonly reason: z.ZodString;
5241
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5242
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5243
+ readonly _tag: z.ZodLiteral<"unavailable">;
5244
+ }, z.core.$strip>], "_tag">;
5245
+ rows: z.ZodArray<z.ZodObject<{
5246
+ readonly date: z.ZodISODate;
5247
+ readonly clicks: z.ZodNumber;
5248
+ readonly impressions: z.ZodNumber;
5249
+ }, z.core.$strip>>;
5250
+ pagination: z.ZodObject<{
5251
+ readonly total: z.ZodNumber;
5252
+ readonly limit: z.ZodNumber;
5253
+ readonly offset: z.ZodNumber;
5254
+ readonly hasMore: z.ZodBoolean;
5255
+ }, z.core.$strip>;
5256
+ }, z.core.$strip>, z.ZodObject<{
5257
+ searchEngine: z.ZodLiteral<"bing">;
5258
+ siteUrl: z.ZodURL;
5259
+ dataset: z.ZodLiteral<"pages">;
5260
+ semantics: z.ZodLiteral<"ranked-pages">;
5261
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5262
+ readonly _tag: z.ZodLiteral<"missing">;
5263
+ }, z.core.$strip>, z.ZodObject<{
5264
+ readonly observedAt: z.ZodISODateTime;
5265
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5266
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5267
+ readonly _tag: z.ZodLiteral<"ready">;
5268
+ }, z.core.$strip>, z.ZodObject<{
5269
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5270
+ readonly lastAttemptAt: z.ZodISODateTime;
5271
+ readonly reason: z.ZodString;
5272
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5273
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5274
+ readonly _tag: z.ZodLiteral<"unavailable">;
5275
+ }, z.core.$strip>], "_tag">;
5276
+ rows: z.ZodArray<z.ZodObject<{
5277
+ readonly averageClickPosition: z.ZodNullable<z.ZodNumber>;
5278
+ readonly averageImpressionPosition: z.ZodNullable<z.ZodNumber>;
5279
+ readonly page: z.ZodURL;
5280
+ readonly date: z.ZodISODate;
5281
+ readonly clicks: z.ZodNumber;
5282
+ readonly impressions: z.ZodNumber;
5283
+ }, z.core.$strip>>;
5284
+ pagination: z.ZodObject<{
5285
+ readonly total: z.ZodNumber;
5286
+ readonly limit: z.ZodNumber;
5287
+ readonly offset: z.ZodNumber;
5288
+ readonly hasMore: z.ZodBoolean;
5289
+ }, z.core.$strip>;
5290
+ }, z.core.$strip>, z.ZodObject<{
5291
+ searchEngine: z.ZodLiteral<"bing">;
5292
+ siteUrl: z.ZodURL;
5293
+ dataset: z.ZodLiteral<"keywords">;
5294
+ semantics: z.ZodLiteral<"ranked-keywords">;
5295
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5296
+ readonly _tag: z.ZodLiteral<"missing">;
5297
+ }, z.core.$strip>, z.ZodObject<{
5298
+ readonly observedAt: z.ZodISODateTime;
5299
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5300
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5301
+ readonly _tag: z.ZodLiteral<"ready">;
5302
+ }, z.core.$strip>, z.ZodObject<{
5303
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5304
+ readonly lastAttemptAt: z.ZodISODateTime;
5305
+ readonly reason: z.ZodString;
5306
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5307
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5308
+ readonly _tag: z.ZodLiteral<"unavailable">;
5309
+ }, z.core.$strip>], "_tag">;
5310
+ rows: z.ZodArray<z.ZodObject<{
5311
+ readonly averageClickPosition: z.ZodNullable<z.ZodNumber>;
5312
+ readonly averageImpressionPosition: z.ZodNullable<z.ZodNumber>;
5313
+ readonly keyword: z.ZodString;
5314
+ readonly date: z.ZodISODate;
5315
+ readonly clicks: z.ZodNumber;
5316
+ readonly impressions: z.ZodNumber;
5317
+ }, z.core.$strip>>;
5318
+ pagination: z.ZodObject<{
5319
+ readonly total: z.ZodNumber;
5320
+ readonly limit: z.ZodNumber;
5321
+ readonly offset: z.ZodNumber;
5322
+ readonly hasMore: z.ZodBoolean;
5323
+ }, z.core.$strip>;
5324
+ }, z.core.$strip>, z.ZodObject<{
5325
+ searchEngine: z.ZodLiteral<"bing">;
5326
+ siteUrl: z.ZodURL;
5327
+ dataset: z.ZodLiteral<"crawl">;
5328
+ semantics: z.ZodLiteral<"crawl-statistics">;
5329
+ sync: z.ZodDiscriminatedUnion<[z.ZodObject<{
5330
+ readonly _tag: z.ZodLiteral<"missing">;
5331
+ }, z.core.$strip>, z.ZodObject<{
5332
+ readonly observedAt: z.ZodISODateTime;
5333
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5334
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5335
+ readonly _tag: z.ZodLiteral<"ready">;
5336
+ }, z.core.$strip>, z.ZodObject<{
5337
+ readonly observedAt: z.ZodNullable<z.ZodISODateTime>;
5338
+ readonly lastAttemptAt: z.ZodISODateTime;
5339
+ readonly reason: z.ZodString;
5340
+ readonly providerStartDate: z.ZodNullable<z.ZodISODate>;
5341
+ readonly providerEndDate: z.ZodNullable<z.ZodISODate>;
5342
+ readonly _tag: z.ZodLiteral<"unavailable">;
5343
+ }, z.core.$strip>], "_tag">;
5344
+ rows: z.ZodArray<z.ZodObject<{
5345
+ readonly date: z.ZodISODate;
5346
+ readonly crawledPages: z.ZodNumber;
5347
+ readonly inIndex: z.ZodNumber;
5348
+ readonly inLinks: z.ZodNumber;
5349
+ readonly crawlErrors: z.ZodNumber;
5350
+ readonly blockedByRobotsTxt: z.ZodNumber;
5351
+ readonly containsMalware: z.ZodNumber;
5352
+ readonly code2xx: z.ZodNumber;
5353
+ readonly code301: z.ZodNumber;
5354
+ readonly code302: z.ZodNumber;
5355
+ readonly code4xx: z.ZodNumber;
5356
+ readonly code5xx: z.ZodNumber;
5357
+ readonly allOtherCodes: z.ZodNumber;
5358
+ readonly connectionTimeout: z.ZodNullable<z.ZodNumber>;
5359
+ readonly dnsFailures: z.ZodNullable<z.ZodNumber>;
5360
+ }, z.core.$strip>>;
5361
+ pagination: z.ZodObject<{
5362
+ readonly total: z.ZodNumber;
5363
+ readonly limit: z.ZodNumber;
5364
+ readonly offset: z.ZodNumber;
5365
+ readonly hasMore: z.ZodBoolean;
5366
+ }, z.core.$strip>;
5367
+ }, z.core.$strip>], "dataset">;
5368
+ meta: z.ZodObject<{
5369
+ readonly requestId: z.ZodString;
5370
+ readonly surface: z.ZodLiteral<"partner">;
5371
+ readonly version: z.ZodLiteral<"1.0">;
5372
+ }, z.core.$strip>;
5373
+ }, z.core.$strip>>;
5374
+ };
5375
+ readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"];
5376
+ readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
5377
+ readonly error: z.ZodObject<{
5378
+ code: z.ZodEnum<{
5379
+ internal_error: "internal_error";
5380
+ invalid_request: "invalid_request";
5381
+ unauthorized: "unauthorized";
5382
+ forbidden: "forbidden";
5383
+ site_not_found: "site_not_found";
5384
+ rate_limited: "rate_limited";
5385
+ contract_violation: "contract_violation";
5386
+ }>;
5387
+ message: z.ZodString;
5388
+ requestId: z.ZodString;
5389
+ retryable: z.ZodBoolean;
5390
+ details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
5391
+ }, z.core.$strict>;
5392
+ }, z.core.$strip>, z.ZodObject<{
5393
+ readonly error: z.ZodObject<{
5394
+ code: z.ZodEnum<{
5395
+ internal_error: "internal_error";
5396
+ invalid_request: "invalid_request";
5397
+ unauthorized: "unauthorized";
5398
+ forbidden: "forbidden";
5399
+ site_not_found: "site_not_found";
5400
+ rate_limited: "rate_limited";
5401
+ contract_violation: "contract_violation";
5402
+ }>;
5403
+ message: z.ZodString;
5404
+ requestId: z.ZodString;
5405
+ retryable: z.ZodBoolean;
5406
+ details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
5407
+ }, z.core.$loose>;
5408
+ }, z.core.$strip>>;
5409
+ readonly resources: {
5410
+ readonly reads: readonly [{
5411
+ readonly type: "site.analytics";
5412
+ readonly idFrom: "params.siteId";
5413
+ }];
5414
+ readonly changes: readonly [];
5415
+ };
5416
+ readonly lifecycle: {
5417
+ readonly introduced: "1.6.0";
5418
+ };
5419
+ readonly docs: {
5420
+ readonly summary: "Read Bing search data";
5421
+ readonly description: "Reads a bounded provider-date range from the latest successful dataset. Ranked rows are not complete Site totals.";
5422
+ readonly tags: readonly ["Analytics"];
5423
+ readonly examples: {
5424
+ readonly request: {
5425
+ readonly params: {
5426
+ readonly siteId: "s_01";
5427
+ };
5428
+ readonly query: {
5429
+ readonly dataset: "traffic";
5430
+ readonly startDate: "2026-08-01";
5431
+ readonly endDate: "2026-08-31";
5432
+ readonly limit: 100;
5433
+ readonly offset: 0;
5434
+ };
5435
+ };
5436
+ readonly response: {
5437
+ readonly data: {
5438
+ readonly searchEngine: "bing";
5439
+ readonly siteUrl: "https://example.com/";
5440
+ readonly dataset: "traffic";
5441
+ readonly semantics: "site-totals";
5442
+ readonly sync: {
5443
+ readonly _tag: "missing";
5444
+ };
5445
+ readonly rows: readonly [];
5446
+ readonly pagination: {
5447
+ readonly total: 0;
5448
+ readonly limit: 100;
5449
+ readonly offset: 0;
5450
+ readonly hasMore: false;
5451
+ };
5452
+ };
5453
+ readonly meta: {
5454
+ readonly requestId: "req_01";
5455
+ readonly surface: "partner";
5456
+ readonly version: "1.0";
5457
+ };
5458
+ };
5459
+ };
5460
+ };
5461
+ readonly id: "partner.sites.bing.data.get";
5462
+ readonly method: "GET";
5463
+ readonly path: "/sites/{siteId}/bing/data";
5464
+ };
5033
5465
  readonly listSiteBingIndexingEvidence: {
5034
5466
  readonly visibility: "public";
5035
5467
  readonly semantics: {
@@ -12424,12 +12856,12 @@ declare function createGscdumpV1Protocol(): {
12424
12856
  }, z.core.$strict>;
12425
12857
  readonly body: z.ZodObject<{
12426
12858
  dimensions: z.ZodArray<z.ZodEnum<{
12427
- date: "date";
12428
12859
  page: "page";
12429
12860
  query: "query";
12430
12861
  queryCanonical: "queryCanonical";
12431
12862
  country: "country";
12432
12863
  device: "device";
12864
+ date: "date";
12433
12865
  searchAppearance: "searchAppearance";
12434
12866
  hour: "hour";
12435
12867
  }>>;
@@ -12627,12 +13059,12 @@ declare function createGscdumpV1Protocol(): {
12627
13059
  readonly GOOGLE_NEWS: "googleNews";
12628
13060
  }>>;
12629
13061
  dimensions: z.ZodArray<z.ZodEnum<{
12630
- date: "date";
12631
13062
  page: "page";
12632
13063
  query: "query";
12633
13064
  queryCanonical: "queryCanonical";
12634
13065
  country: "country";
12635
13066
  device: "device";
13067
+ date: "date";
12636
13068
  searchAppearance: "searchAppearance";
12637
13069
  hour: "hour";
12638
13070
  }>>;
@@ -12647,12 +13079,12 @@ declare function createGscdumpV1Protocol(): {
12647
13079
  readonly GOOGLE_NEWS: "googleNews";
12648
13080
  }>>;
12649
13081
  dimensions: z.ZodArray<z.ZodEnum<{
12650
- date: "date";
12651
13082
  page: "page";
12652
13083
  query: "query";
12653
13084
  queryCanonical: "queryCanonical";
12654
13085
  country: "country";
12655
13086
  device: "device";
13087
+ date: "date";
12656
13088
  searchAppearance: "searchAppearance";
12657
13089
  hour: "hour";
12658
13090
  }>>;
@@ -12888,12 +13320,12 @@ declare function createGscdumpV1Protocol(): {
12888
13320
  readonly GOOGLE_NEWS: "googleNews";
12889
13321
  }>>;
12890
13322
  dimensions: z.ZodArray<z.ZodEnum<{
12891
- date: "date";
12892
13323
  page: "page";
12893
13324
  query: "query";
12894
13325
  queryCanonical: "queryCanonical";
12895
13326
  country: "country";
12896
13327
  device: "device";
13328
+ date: "date";
12897
13329
  searchAppearance: "searchAppearance";
12898
13330
  hour: "hour";
12899
13331
  }>>;
@@ -12908,12 +13340,12 @@ declare function createGscdumpV1Protocol(): {
12908
13340
  readonly GOOGLE_NEWS: "googleNews";
12909
13341
  }>>;
12910
13342
  dimensions: z.ZodArray<z.ZodEnum<{
12911
- date: "date";
12912
13343
  page: "page";
12913
13344
  query: "query";
12914
13345
  queryCanonical: "queryCanonical";
12915
13346
  country: "country";
12916
13347
  device: "device";
13348
+ date: "date";
12917
13349
  searchAppearance: "searchAppearance";
12918
13350
  hour: "hour";
12919
13351
  }>>;
@@ -13403,29 +13835,28 @@ declare function createGscdumpV1Protocol(): {
13403
13835
  }>;
13404
13836
  };
13405
13837
  };
13406
- type GscdumpV1Protocol = ReturnType<typeof createGscdumpV1Protocol>;
13407
- type GscdumpV1Operation = HttpV1ProtocolOperation<GscdumpV1Protocol>;
13408
- type GscdumpV1OperationId = GscdumpV1Operation['id'];
13409
- type GscdumpV1ErrorEnvelope = z.infer<GscdumpV1Protocol['schemas']['errorEnvelope']['client']>;
13410
- type GscdumpV1RequestMetadata = z.infer<GscdumpV1Protocol['schemas']['requestMetadata']>;
13411
- type AnalyticsRowsV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsRequest']>;
13412
- type AnalyticsRowsV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsResponse']['client']>;
13413
- type AnalyticsReportV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsReportRequest']>;
13414
- type AnalyticsReportV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsReportResponse']['client']>;
13415
- type AnalyticsReportDetailV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsReportDetailRequest']>;
13416
- type AnalyticsReportDetailV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsReportDetailResponse']['client']>;
13417
- type PartnerAnalysisV1Response = z.infer<GscdumpV1Protocol['schemas']['analysisResponse']['client']>;
13418
- type PartnerAnalysisBundleV1Response = z.infer<GscdumpV1Protocol['schemas']['analysisBundleResponse']['client']>;
13419
- type PartnerAvailableSitesV1Response = z.infer<GscdumpV1Protocol['schemas']['availableSitesResponse']['client']>;
13420
- type PartnerIndexingV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingSummaryResponse']['client']>;
13421
- type PartnerIndexingUrlsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingUrlsResponse']['client']>;
13422
- type PartnerBingIndexingEvidenceV1Response = z.infer<GscdumpV1Protocol['schemas']['bingIndexingEvidenceResponse']['client']>;
13423
- type PartnerBingConnectionV1Response = z.infer<GscdumpV1Protocol['schemas']['bingConnectionResponse']['client']>;
13424
- type PartnerIndexingTransitionsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingTransitionsResponse']['client']>;
13425
- type PartnerIndexingDiagnosticsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingDiagnosticsResponse']['client']>;
13426
- type PartnerSitemapsV1Response = z.infer<GscdumpV1Protocol['schemas']['sitemapsResponse']['client']>;
13427
- type PartnerSitemapChangesV1Response = z.infer<GscdumpV1Protocol['schemas']['sitemapChangesResponse']['client']>;
13428
- type PartnerSiteRegistrationV1Response = z.infer<GscdumpV1Protocol['schemas']['siteRegistrationResponse']['client']>;
13429
- type PartnerSiteDeletionV1Response = z.infer<GscdumpV1Protocol['schemas']['siteDeletionResponse']['client']>;
13430
- type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;
13431
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol };
13838
+ export type GscdumpV1Protocol = ReturnType<typeof createGscdumpV1Protocol>;
13839
+ export type GscdumpV1Operation = HttpV1ProtocolOperation<GscdumpV1Protocol>;
13840
+ export type GscdumpV1OperationId = GscdumpV1Operation['id'];
13841
+ export type GscdumpV1ErrorEnvelope = z.infer<GscdumpV1Protocol['schemas']['errorEnvelope']['client']>;
13842
+ export type GscdumpV1RequestMetadata = z.infer<GscdumpV1Protocol['schemas']['requestMetadata']>;
13843
+ export type AnalyticsRowsV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsRequest']>;
13844
+ export type AnalyticsRowsV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsResponse']['client']>;
13845
+ export type AnalyticsReportV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsReportRequest']>;
13846
+ export type AnalyticsReportV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsReportResponse']['client']>;
13847
+ export type AnalyticsReportDetailV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsReportDetailRequest']>;
13848
+ export type AnalyticsReportDetailV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsReportDetailResponse']['client']>;
13849
+ export type PartnerAnalysisV1Response = z.infer<GscdumpV1Protocol['schemas']['analysisResponse']['client']>;
13850
+ export type PartnerAnalysisBundleV1Response = z.infer<GscdumpV1Protocol['schemas']['analysisBundleResponse']['client']>;
13851
+ export type PartnerAvailableSitesV1Response = z.infer<GscdumpV1Protocol['schemas']['availableSitesResponse']['client']>;
13852
+ export type PartnerIndexingV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingSummaryResponse']['client']>;
13853
+ export type PartnerIndexingUrlsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingUrlsResponse']['client']>;
13854
+ export type PartnerBingIndexingEvidenceV1Response = z.infer<GscdumpV1Protocol['schemas']['bingIndexingEvidenceResponse']['client']>;
13855
+ export type PartnerBingConnectionV1Response = z.infer<GscdumpV1Protocol['schemas']['bingConnectionResponse']['client']>;
13856
+ export type PartnerIndexingTransitionsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingTransitionsResponse']['client']>;
13857
+ export type PartnerIndexingDiagnosticsV1Response = z.infer<GscdumpV1Protocol['schemas']['indexingDiagnosticsResponse']['client']>;
13858
+ export type PartnerSitemapsV1Response = z.infer<GscdumpV1Protocol['schemas']['sitemapsResponse']['client']>;
13859
+ export type PartnerSitemapChangesV1Response = z.infer<GscdumpV1Protocol['schemas']['sitemapChangesResponse']['client']>;
13860
+ export type PartnerSiteRegistrationV1Response = z.infer<GscdumpV1Protocol['schemas']['siteRegistrationResponse']['client']>;
13861
+ export type PartnerSiteDeletionV1Response = z.infer<GscdumpV1Protocol['schemas']['siteDeletionResponse']['client']>;
13862
+ export type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;