@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.
@@ -0,0 +1,750 @@
1
+ import { CompatibleResponseSchema } from "./http-core.mjs";
2
+ import { z } from "zod";
3
+ /** The query of `partner.users.indexing.bing.sites.list`. */
4
+ export declare const bingSitesQueryV1Schema: z.ZodObject<{
5
+ teamId: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strict>;
7
+ export declare const bingSitemapViewV1Schemas: {
8
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
+ readonly _tag: z.ZodLiteral<"submitted">;
10
+ readonly checkedAt: z.ZodISODateTime;
11
+ readonly sitemapCount: z.ZodNumber;
12
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
13
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
14
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
15
+ readonly url: z.ZodString;
16
+ readonly status: z.ZodString;
17
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
18
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
19
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ readonly _tag: z.ZodLiteral<"missing">;
23
+ readonly checkedAt: z.ZodISODateTime;
24
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
27
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
28
+ readonly lastSubmittedAt: z.ZodISODateTime;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ readonly _tag: z.ZodLiteral<"unknown">;
31
+ }, z.core.$strip>], "_tag">;
32
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ readonly _tag: z.ZodLiteral<"submitted">;
34
+ readonly checkedAt: z.ZodISODateTime;
35
+ readonly sitemapCount: z.ZodNumber;
36
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
37
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
38
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
39
+ readonly url: z.ZodString;
40
+ readonly status: z.ZodString;
41
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
42
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
43
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ readonly _tag: z.ZodLiteral<"missing">;
47
+ readonly checkedAt: z.ZodISODateTime;
48
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
51
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
52
+ readonly lastSubmittedAt: z.ZodISODateTime;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ readonly _tag: z.ZodLiteral<"unknown">;
55
+ }, z.core.$strip>], "_tag">;
56
+ };
57
+ export declare const bingSiteStateV1Schemas: {
58
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ readonly _tag: z.ZodLiteral<"collecting">;
60
+ readonly remoteSiteUrl: z.ZodURL;
61
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
62
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ readonly _tag: z.ZodLiteral<"submitted">;
64
+ readonly checkedAt: z.ZodISODateTime;
65
+ readonly sitemapCount: z.ZodNumber;
66
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
67
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
68
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
69
+ readonly url: z.ZodString;
70
+ readonly status: z.ZodString;
71
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
72
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
73
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ readonly _tag: z.ZodLiteral<"missing">;
77
+ readonly checkedAt: z.ZodISODateTime;
78
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
81
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
82
+ readonly lastSubmittedAt: z.ZodISODateTime;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ readonly _tag: z.ZodLiteral<"unknown">;
85
+ }, z.core.$strip>], "_tag">;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ readonly _tag: z.ZodLiteral<"verification-required">;
88
+ readonly remoteSiteUrl: z.ZodURL;
89
+ readonly verification: z.ZodObject<{
90
+ _tag: z.ZodLiteral<"cname">;
91
+ name: z.ZodString;
92
+ value: z.ZodLiteral<"verify.bing.com">;
93
+ }, z.core.$strict>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ readonly _tag: z.ZodLiteral<"linkable">;
96
+ readonly reason: z.ZodEnum<{
97
+ "permission-lost": "permission-lost";
98
+ "not-linked": "not-linked";
99
+ "binding-stalled": "binding-stalled";
100
+ }>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ readonly _tag: z.ZodLiteral<"grant-required">;
103
+ readonly reason: z.ZodEnum<{
104
+ "reauthorization-required": "reauthorization-required";
105
+ "grant-missing": "grant-missing";
106
+ }>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
109
+ readonly remoteSiteUrl: z.ZodURL;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ readonly _tag: z.ZodLiteral<"unavailable">;
112
+ readonly reason: z.ZodEnum<{
113
+ "not-enabled": "not-enabled";
114
+ }>;
115
+ }, z.core.$strip>], "_tag">;
116
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ readonly _tag: z.ZodLiteral<"collecting">;
118
+ readonly remoteSiteUrl: z.ZodURL;
119
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
120
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
121
+ readonly _tag: z.ZodLiteral<"submitted">;
122
+ readonly checkedAt: z.ZodISODateTime;
123
+ readonly sitemapCount: z.ZodNumber;
124
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
125
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
126
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
127
+ readonly url: z.ZodString;
128
+ readonly status: z.ZodString;
129
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
130
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
131
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ readonly _tag: z.ZodLiteral<"missing">;
135
+ readonly checkedAt: z.ZodISODateTime;
136
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
139
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
140
+ readonly lastSubmittedAt: z.ZodISODateTime;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ readonly _tag: z.ZodLiteral<"unknown">;
143
+ }, z.core.$strip>], "_tag">;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ readonly _tag: z.ZodLiteral<"verification-required">;
146
+ readonly remoteSiteUrl: z.ZodURL;
147
+ readonly verification: z.ZodObject<{
148
+ _tag: z.ZodLiteral<"cname">;
149
+ name: z.ZodString;
150
+ value: z.ZodLiteral<"verify.bing.com">;
151
+ }, z.core.$strict>;
152
+ }, z.core.$strip>, z.ZodObject<{
153
+ readonly _tag: z.ZodLiteral<"linkable">;
154
+ readonly reason: z.ZodEnum<{
155
+ "permission-lost": "permission-lost";
156
+ "not-linked": "not-linked";
157
+ "binding-stalled": "binding-stalled";
158
+ }>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ readonly _tag: z.ZodLiteral<"grant-required">;
161
+ readonly reason: z.ZodEnum<{
162
+ "reauthorization-required": "reauthorization-required";
163
+ "grant-missing": "grant-missing";
164
+ }>;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
167
+ readonly remoteSiteUrl: z.ZodURL;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ readonly _tag: z.ZodLiteral<"unavailable">;
170
+ readonly reason: z.ZodEnum<{
171
+ "not-enabled": "not-enabled";
172
+ }>;
173
+ }, z.core.$strip>], "_tag">;
174
+ };
175
+ /**
176
+ * One Site in the Bing fleet. `callerCanAct` says whether the caller may run
177
+ * the Operation the state names: only the Site owner may link or authorize
178
+ * Bing, and a caller who manages the Site may verify it or submit a Sitemap.
179
+ */
180
+ export declare const bingSiteV1Schemas: CompatibleResponseSchema<z.ZodObject<{
181
+ readonly siteId: z.ZodString;
182
+ readonly siteUrl: z.ZodString;
183
+ readonly teamId: z.ZodNullable<z.ZodString>;
184
+ readonly callerCanAct: z.ZodBoolean;
185
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
186
+ readonly _tag: z.ZodLiteral<"collecting">;
187
+ readonly remoteSiteUrl: z.ZodURL;
188
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
189
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
190
+ readonly _tag: z.ZodLiteral<"submitted">;
191
+ readonly checkedAt: z.ZodISODateTime;
192
+ readonly sitemapCount: z.ZodNumber;
193
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
194
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
195
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
196
+ readonly url: z.ZodString;
197
+ readonly status: z.ZodString;
198
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
199
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
200
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ readonly _tag: z.ZodLiteral<"missing">;
204
+ readonly checkedAt: z.ZodISODateTime;
205
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
208
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
209
+ readonly lastSubmittedAt: z.ZodISODateTime;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ readonly _tag: z.ZodLiteral<"unknown">;
212
+ }, z.core.$strip>], "_tag">;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ readonly _tag: z.ZodLiteral<"verification-required">;
215
+ readonly remoteSiteUrl: z.ZodURL;
216
+ readonly verification: z.ZodObject<{
217
+ _tag: z.ZodLiteral<"cname">;
218
+ name: z.ZodString;
219
+ value: z.ZodLiteral<"verify.bing.com">;
220
+ }, z.core.$strict>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ readonly _tag: z.ZodLiteral<"linkable">;
223
+ readonly reason: z.ZodEnum<{
224
+ "permission-lost": "permission-lost";
225
+ "not-linked": "not-linked";
226
+ "binding-stalled": "binding-stalled";
227
+ }>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ readonly _tag: z.ZodLiteral<"grant-required">;
230
+ readonly reason: z.ZodEnum<{
231
+ "reauthorization-required": "reauthorization-required";
232
+ "grant-missing": "grant-missing";
233
+ }>;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
236
+ readonly remoteSiteUrl: z.ZodURL;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ readonly _tag: z.ZodLiteral<"unavailable">;
239
+ readonly reason: z.ZodEnum<{
240
+ "not-enabled": "not-enabled";
241
+ }>;
242
+ }, z.core.$strip>], "_tag">;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ readonly siteId: z.ZodString;
245
+ readonly siteUrl: z.ZodString;
246
+ readonly teamId: z.ZodNullable<z.ZodString>;
247
+ readonly callerCanAct: z.ZodBoolean;
248
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
249
+ readonly _tag: z.ZodLiteral<"collecting">;
250
+ readonly remoteSiteUrl: z.ZodURL;
251
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
252
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ readonly _tag: z.ZodLiteral<"submitted">;
254
+ readonly checkedAt: z.ZodISODateTime;
255
+ readonly sitemapCount: z.ZodNumber;
256
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
257
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
258
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
259
+ readonly url: z.ZodString;
260
+ readonly status: z.ZodString;
261
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
262
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
263
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ readonly _tag: z.ZodLiteral<"missing">;
267
+ readonly checkedAt: z.ZodISODateTime;
268
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
271
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
272
+ readonly lastSubmittedAt: z.ZodISODateTime;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ readonly _tag: z.ZodLiteral<"unknown">;
275
+ }, z.core.$strip>], "_tag">;
276
+ }, z.core.$strip>, z.ZodObject<{
277
+ readonly _tag: z.ZodLiteral<"verification-required">;
278
+ readonly remoteSiteUrl: z.ZodURL;
279
+ readonly verification: z.ZodObject<{
280
+ _tag: z.ZodLiteral<"cname">;
281
+ name: z.ZodString;
282
+ value: z.ZodLiteral<"verify.bing.com">;
283
+ }, z.core.$strict>;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ readonly _tag: z.ZodLiteral<"linkable">;
286
+ readonly reason: z.ZodEnum<{
287
+ "permission-lost": "permission-lost";
288
+ "not-linked": "not-linked";
289
+ "binding-stalled": "binding-stalled";
290
+ }>;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ readonly _tag: z.ZodLiteral<"grant-required">;
293
+ readonly reason: z.ZodEnum<{
294
+ "reauthorization-required": "reauthorization-required";
295
+ "grant-missing": "grant-missing";
296
+ }>;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
299
+ readonly remoteSiteUrl: z.ZodURL;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ readonly _tag: z.ZodLiteral<"unavailable">;
302
+ readonly reason: z.ZodEnum<{
303
+ "not-enabled": "not-enabled";
304
+ }>;
305
+ }, z.core.$strip>], "_tag">;
306
+ }, z.core.$strip>>;
307
+ export declare const bingGrantV1Schemas: {
308
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
309
+ readonly _tag: z.ZodLiteral<"authorized">;
310
+ readonly scopes: z.ZodArray<z.ZodString>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ readonly _tag: z.ZodLiteral<"missing">;
315
+ }, z.core.$strip>], "_tag">;
316
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
+ readonly _tag: z.ZodLiteral<"authorized">;
318
+ readonly scopes: z.ZodArray<z.ZodString>;
319
+ }, z.core.$strip>, z.ZodObject<{
320
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ readonly _tag: z.ZodLiteral<"missing">;
323
+ }, z.core.$strip>], "_tag">;
324
+ };
325
+ /** `partner.users.indexing.bing.sites.list`: the user's grant and every Site they can see. */
326
+ export declare const bingSitesV1Schemas: CompatibleResponseSchema<z.ZodObject<{
327
+ readonly searchEngine: z.ZodLiteral<"bing">;
328
+ readonly grant: z.ZodDiscriminatedUnion<[z.ZodObject<{
329
+ readonly _tag: z.ZodLiteral<"authorized">;
330
+ readonly scopes: z.ZodArray<z.ZodString>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ readonly _tag: z.ZodLiteral<"missing">;
335
+ }, z.core.$strip>], "_tag">;
336
+ readonly sites: z.ZodArray<z.ZodObject<{
337
+ readonly siteId: z.ZodString;
338
+ readonly siteUrl: z.ZodString;
339
+ readonly teamId: z.ZodNullable<z.ZodString>;
340
+ readonly callerCanAct: z.ZodBoolean;
341
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ readonly _tag: z.ZodLiteral<"collecting">;
343
+ readonly remoteSiteUrl: z.ZodURL;
344
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
345
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
346
+ readonly _tag: z.ZodLiteral<"submitted">;
347
+ readonly checkedAt: z.ZodISODateTime;
348
+ readonly sitemapCount: z.ZodNumber;
349
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
350
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
351
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
352
+ readonly url: z.ZodString;
353
+ readonly status: z.ZodString;
354
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
355
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
356
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
357
+ }, z.core.$strip>>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ readonly _tag: z.ZodLiteral<"missing">;
360
+ readonly checkedAt: z.ZodISODateTime;
361
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
362
+ }, z.core.$strip>, z.ZodObject<{
363
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
364
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
365
+ readonly lastSubmittedAt: z.ZodISODateTime;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ readonly _tag: z.ZodLiteral<"unknown">;
368
+ }, z.core.$strip>], "_tag">;
369
+ }, z.core.$strip>, z.ZodObject<{
370
+ readonly _tag: z.ZodLiteral<"verification-required">;
371
+ readonly remoteSiteUrl: z.ZodURL;
372
+ readonly verification: z.ZodObject<{
373
+ _tag: z.ZodLiteral<"cname">;
374
+ name: z.ZodString;
375
+ value: z.ZodLiteral<"verify.bing.com">;
376
+ }, z.core.$strict>;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ readonly _tag: z.ZodLiteral<"linkable">;
379
+ readonly reason: z.ZodEnum<{
380
+ "permission-lost": "permission-lost";
381
+ "not-linked": "not-linked";
382
+ "binding-stalled": "binding-stalled";
383
+ }>;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ readonly _tag: z.ZodLiteral<"grant-required">;
386
+ readonly reason: z.ZodEnum<{
387
+ "reauthorization-required": "reauthorization-required";
388
+ "grant-missing": "grant-missing";
389
+ }>;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
392
+ readonly remoteSiteUrl: z.ZodURL;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ readonly _tag: z.ZodLiteral<"unavailable">;
395
+ readonly reason: z.ZodEnum<{
396
+ "not-enabled": "not-enabled";
397
+ }>;
398
+ }, z.core.$strip>], "_tag">;
399
+ }, z.core.$strip>>;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ readonly searchEngine: z.ZodLiteral<"bing">;
402
+ readonly grant: z.ZodDiscriminatedUnion<[z.ZodObject<{
403
+ readonly _tag: z.ZodLiteral<"authorized">;
404
+ readonly scopes: z.ZodArray<z.ZodString>;
405
+ }, z.core.$strip>, z.ZodObject<{
406
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
407
+ }, z.core.$strip>, z.ZodObject<{
408
+ readonly _tag: z.ZodLiteral<"missing">;
409
+ }, z.core.$strip>], "_tag">;
410
+ readonly sites: z.ZodArray<z.ZodObject<{
411
+ readonly siteId: z.ZodString;
412
+ readonly siteUrl: z.ZodString;
413
+ readonly teamId: z.ZodNullable<z.ZodString>;
414
+ readonly callerCanAct: z.ZodBoolean;
415
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
416
+ readonly _tag: z.ZodLiteral<"collecting">;
417
+ readonly remoteSiteUrl: z.ZodURL;
418
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
419
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
420
+ readonly _tag: z.ZodLiteral<"submitted">;
421
+ readonly checkedAt: z.ZodISODateTime;
422
+ readonly sitemapCount: z.ZodNumber;
423
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
424
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
425
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
426
+ readonly url: z.ZodString;
427
+ readonly status: z.ZodString;
428
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
429
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
430
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
431
+ }, z.core.$strip>>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ readonly _tag: z.ZodLiteral<"missing">;
434
+ readonly checkedAt: z.ZodISODateTime;
435
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
438
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
439
+ readonly lastSubmittedAt: z.ZodISODateTime;
440
+ }, z.core.$strip>, z.ZodObject<{
441
+ readonly _tag: z.ZodLiteral<"unknown">;
442
+ }, z.core.$strip>], "_tag">;
443
+ }, z.core.$strip>, z.ZodObject<{
444
+ readonly _tag: z.ZodLiteral<"verification-required">;
445
+ readonly remoteSiteUrl: z.ZodURL;
446
+ readonly verification: z.ZodObject<{
447
+ _tag: z.ZodLiteral<"cname">;
448
+ name: z.ZodString;
449
+ value: z.ZodLiteral<"verify.bing.com">;
450
+ }, z.core.$strict>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ readonly _tag: z.ZodLiteral<"linkable">;
453
+ readonly reason: z.ZodEnum<{
454
+ "permission-lost": "permission-lost";
455
+ "not-linked": "not-linked";
456
+ "binding-stalled": "binding-stalled";
457
+ }>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ readonly _tag: z.ZodLiteral<"grant-required">;
460
+ readonly reason: z.ZodEnum<{
461
+ "reauthorization-required": "reauthorization-required";
462
+ "grant-missing": "grant-missing";
463
+ }>;
464
+ }, z.core.$strip>, z.ZodObject<{
465
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
466
+ readonly remoteSiteUrl: z.ZodURL;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ readonly _tag: z.ZodLiteral<"unavailable">;
469
+ readonly reason: z.ZodEnum<{
470
+ "not-enabled": "not-enabled";
471
+ }>;
472
+ }, z.core.$strip>], "_tag">;
473
+ }, z.core.$strip>>;
474
+ }, z.core.$strip>>;
475
+ export declare const bingLinkResultV1Schemas: {
476
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
477
+ readonly _tag: z.ZodLiteral<"linked">;
478
+ readonly site: z.ZodObject<{
479
+ readonly siteId: z.ZodString;
480
+ readonly siteUrl: z.ZodString;
481
+ readonly teamId: z.ZodNullable<z.ZodString>;
482
+ readonly callerCanAct: z.ZodBoolean;
483
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
+ readonly _tag: z.ZodLiteral<"collecting">;
485
+ readonly remoteSiteUrl: z.ZodURL;
486
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
487
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
488
+ readonly _tag: z.ZodLiteral<"submitted">;
489
+ readonly checkedAt: z.ZodISODateTime;
490
+ readonly sitemapCount: z.ZodNumber;
491
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
492
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
493
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
494
+ readonly url: z.ZodString;
495
+ readonly status: z.ZodString;
496
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
497
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
498
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
499
+ }, z.core.$strip>>;
500
+ }, z.core.$strip>, z.ZodObject<{
501
+ readonly _tag: z.ZodLiteral<"missing">;
502
+ readonly checkedAt: z.ZodISODateTime;
503
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
506
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
507
+ readonly lastSubmittedAt: z.ZodISODateTime;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ readonly _tag: z.ZodLiteral<"unknown">;
510
+ }, z.core.$strip>], "_tag">;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ readonly _tag: z.ZodLiteral<"verification-required">;
513
+ readonly remoteSiteUrl: z.ZodURL;
514
+ readonly verification: z.ZodObject<{
515
+ _tag: z.ZodLiteral<"cname">;
516
+ name: z.ZodString;
517
+ value: z.ZodLiteral<"verify.bing.com">;
518
+ }, z.core.$strict>;
519
+ }, z.core.$strip>, z.ZodObject<{
520
+ readonly _tag: z.ZodLiteral<"linkable">;
521
+ readonly reason: z.ZodEnum<{
522
+ "permission-lost": "permission-lost";
523
+ "not-linked": "not-linked";
524
+ "binding-stalled": "binding-stalled";
525
+ }>;
526
+ }, z.core.$strip>, z.ZodObject<{
527
+ readonly _tag: z.ZodLiteral<"grant-required">;
528
+ readonly reason: z.ZodEnum<{
529
+ "reauthorization-required": "reauthorization-required";
530
+ "grant-missing": "grant-missing";
531
+ }>;
532
+ }, z.core.$strip>, z.ZodObject<{
533
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
534
+ readonly remoteSiteUrl: z.ZodURL;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ readonly _tag: z.ZodLiteral<"unavailable">;
537
+ readonly reason: z.ZodEnum<{
538
+ "not-enabled": "not-enabled";
539
+ }>;
540
+ }, z.core.$strip>], "_tag">;
541
+ }, z.core.$strip>;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ readonly _tag: z.ZodLiteral<"grant-required">;
544
+ readonly reason: z.ZodEnum<{
545
+ "reauthorization-required": "reauthorization-required";
546
+ "grant-missing": "grant-missing";
547
+ }>;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ readonly _tag: z.ZodLiteral<"failed">;
550
+ readonly reason: z.ZodEnum<{
551
+ "sites-forbidden": "sites-forbidden";
552
+ "sites-throttled": "sites-throttled";
553
+ "sites-unavailable": "sites-unavailable";
554
+ "oauth-contract": "oauth-contract";
555
+ }>;
556
+ readonly retryable: z.ZodBoolean;
557
+ }, z.core.$strip>], "_tag">;
558
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
559
+ readonly _tag: z.ZodLiteral<"linked">;
560
+ readonly site: z.ZodObject<{
561
+ readonly siteId: z.ZodString;
562
+ readonly siteUrl: z.ZodString;
563
+ readonly teamId: z.ZodNullable<z.ZodString>;
564
+ readonly callerCanAct: z.ZodBoolean;
565
+ readonly state: z.ZodDiscriminatedUnion<[z.ZodObject<{
566
+ readonly _tag: z.ZodLiteral<"collecting">;
567
+ readonly remoteSiteUrl: z.ZodURL;
568
+ readonly lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
569
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
570
+ readonly _tag: z.ZodLiteral<"submitted">;
571
+ readonly checkedAt: z.ZodISODateTime;
572
+ readonly sitemapCount: z.ZodNumber;
573
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
574
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
575
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
576
+ readonly url: z.ZodString;
577
+ readonly status: z.ZodString;
578
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
579
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
580
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ readonly _tag: z.ZodLiteral<"missing">;
584
+ readonly checkedAt: z.ZodISODateTime;
585
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
586
+ }, z.core.$strip>, z.ZodObject<{
587
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
588
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
589
+ readonly lastSubmittedAt: z.ZodISODateTime;
590
+ }, z.core.$strip>, z.ZodObject<{
591
+ readonly _tag: z.ZodLiteral<"unknown">;
592
+ }, z.core.$strip>], "_tag">;
593
+ }, z.core.$strip>, z.ZodObject<{
594
+ readonly _tag: z.ZodLiteral<"verification-required">;
595
+ readonly remoteSiteUrl: z.ZodURL;
596
+ readonly verification: z.ZodObject<{
597
+ _tag: z.ZodLiteral<"cname">;
598
+ name: z.ZodString;
599
+ value: z.ZodLiteral<"verify.bing.com">;
600
+ }, z.core.$strict>;
601
+ }, z.core.$strip>, z.ZodObject<{
602
+ readonly _tag: z.ZodLiteral<"linkable">;
603
+ readonly reason: z.ZodEnum<{
604
+ "permission-lost": "permission-lost";
605
+ "not-linked": "not-linked";
606
+ "binding-stalled": "binding-stalled";
607
+ }>;
608
+ }, z.core.$strip>, z.ZodObject<{
609
+ readonly _tag: z.ZodLiteral<"grant-required">;
610
+ readonly reason: z.ZodEnum<{
611
+ "reauthorization-required": "reauthorization-required";
612
+ "grant-missing": "grant-missing";
613
+ }>;
614
+ }, z.core.$strip>, z.ZodObject<{
615
+ readonly _tag: z.ZodLiteral<"reauthorization-required">;
616
+ readonly remoteSiteUrl: z.ZodURL;
617
+ }, z.core.$strip>, z.ZodObject<{
618
+ readonly _tag: z.ZodLiteral<"unavailable">;
619
+ readonly reason: z.ZodEnum<{
620
+ "not-enabled": "not-enabled";
621
+ }>;
622
+ }, z.core.$strip>], "_tag">;
623
+ }, z.core.$strip>;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ readonly _tag: z.ZodLiteral<"grant-required">;
626
+ readonly reason: z.ZodEnum<{
627
+ "reauthorization-required": "reauthorization-required";
628
+ "grant-missing": "grant-missing";
629
+ }>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ readonly _tag: z.ZodLiteral<"failed">;
632
+ readonly reason: z.ZodEnum<{
633
+ "sites-forbidden": "sites-forbidden";
634
+ "sites-throttled": "sites-throttled";
635
+ "sites-unavailable": "sites-unavailable";
636
+ "oauth-contract": "oauth-contract";
637
+ }>;
638
+ readonly retryable: z.ZodBoolean;
639
+ }, z.core.$strip>], "_tag">;
640
+ };
641
+ /**
642
+ * The body of `partner.sites.indexing.bing.authorization.create`. gscdump
643
+ * returns the browser to `returnUrl` with `bing=connected`,
644
+ * `bing=verification-required`, or `bing=error&reason=<reason>`. It must be a
645
+ * gscdump.com path or an origin gscdump.com allows.
646
+ */
647
+ export declare const bingAuthorizationRequestV1Schema: z.ZodObject<{
648
+ returnUrl: z.ZodOptional<z.ZodString>;
649
+ }, z.core.$strict>;
650
+ export declare const bingAuthorizationV1Schemas: CompatibleResponseSchema<z.ZodObject<{
651
+ readonly authorizeUrl: z.ZodURL;
652
+ readonly expiresAt: z.ZodISODateTime;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ readonly authorizeUrl: z.ZodURL;
655
+ readonly expiresAt: z.ZodISODateTime;
656
+ }, z.core.$strip>>;
657
+ /** The body of `partner.sites.indexing.bing.sitemaps.submit`. Without `url`, gscdump submits the Sitemap it finds on the Site. */
658
+ export declare const bingSitemapSubmitRequestV1Schema: z.ZodObject<{
659
+ url: z.ZodOptional<z.ZodURL>;
660
+ }, z.core.$strict>;
661
+ /** `partner.sites.indexing.bing.sitemaps.submit`. Bing lags after a submit, so `sitemap` usually reads `awaiting-bing`. */
662
+ export declare const bingSitemapSubmitResultV1Schemas: {
663
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
664
+ readonly _tag: z.ZodLiteral<"submitted">;
665
+ readonly sitemapUrl: z.ZodURL;
666
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
667
+ readonly _tag: z.ZodLiteral<"submitted">;
668
+ readonly checkedAt: z.ZodISODateTime;
669
+ readonly sitemapCount: z.ZodNumber;
670
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
671
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
672
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
673
+ readonly url: z.ZodString;
674
+ readonly status: z.ZodString;
675
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
676
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
677
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
678
+ }, z.core.$strip>>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ readonly _tag: z.ZodLiteral<"missing">;
681
+ readonly checkedAt: z.ZodISODateTime;
682
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
685
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
686
+ readonly lastSubmittedAt: z.ZodISODateTime;
687
+ }, z.core.$strip>, z.ZodObject<{
688
+ readonly _tag: z.ZodLiteral<"unknown">;
689
+ }, z.core.$strip>], "_tag">;
690
+ }, z.core.$strip>, z.ZodObject<{
691
+ readonly _tag: z.ZodLiteral<"failed">;
692
+ readonly reason: z.ZodEnum<{
693
+ "grant-required": "grant-required";
694
+ "site-unverified": "site-unverified";
695
+ "no-sitemap-found": "no-sitemap-found";
696
+ throttled: "throttled";
697
+ "provider-unavailable": "provider-unavailable";
698
+ }>;
699
+ readonly retryable: z.ZodBoolean;
700
+ }, z.core.$strip>], "_tag">;
701
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
702
+ readonly _tag: z.ZodLiteral<"submitted">;
703
+ readonly sitemapUrl: z.ZodURL;
704
+ readonly sitemap: z.ZodDiscriminatedUnion<[z.ZodObject<{
705
+ readonly _tag: z.ZodLiteral<"submitted">;
706
+ readonly checkedAt: z.ZodISODateTime;
707
+ readonly sitemapCount: z.ZodNumber;
708
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
709
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
710
+ readonly sitemaps: z.ZodArray<z.ZodObject<{
711
+ readonly url: z.ZodString;
712
+ readonly status: z.ZodString;
713
+ readonly submittedAt: z.ZodNullable<z.ZodISODateTime>;
714
+ readonly lastCrawledAt: z.ZodNullable<z.ZodISODateTime>;
715
+ readonly urlCount: z.ZodNullable<z.ZodNumber>;
716
+ }, z.core.$strip>>;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ readonly _tag: z.ZodLiteral<"missing">;
719
+ readonly checkedAt: z.ZodISODateTime;
720
+ readonly lastSubmittedAt: z.ZodNullable<z.ZodISODateTime>;
721
+ }, z.core.$strip>, z.ZodObject<{
722
+ readonly _tag: z.ZodLiteral<"awaiting-bing">;
723
+ readonly checkedAt: z.ZodNullable<z.ZodISODateTime>;
724
+ readonly lastSubmittedAt: z.ZodISODateTime;
725
+ }, z.core.$strip>, z.ZodObject<{
726
+ readonly _tag: z.ZodLiteral<"unknown">;
727
+ }, z.core.$strip>], "_tag">;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ readonly _tag: z.ZodLiteral<"failed">;
730
+ readonly reason: z.ZodEnum<{
731
+ "grant-required": "grant-required";
732
+ "site-unverified": "site-unverified";
733
+ "no-sitemap-found": "no-sitemap-found";
734
+ throttled: "throttled";
735
+ "provider-unavailable": "provider-unavailable";
736
+ }>;
737
+ readonly retryable: z.ZodBoolean;
738
+ }, z.core.$strip>], "_tag">;
739
+ };
740
+ export type BingSitesQueryV1 = z.infer<typeof bingSitesQueryV1Schema>;
741
+ export type BingSitemapViewV1 = z.infer<typeof bingSitemapViewV1Schemas.producer>;
742
+ export type BingSiteStateV1 = z.infer<typeof bingSiteStateV1Schemas.producer>;
743
+ export type BingSiteV1 = z.infer<typeof bingSiteV1Schemas.producer>;
744
+ export type BingGrantV1 = z.infer<typeof bingGrantV1Schemas.producer>;
745
+ export type BingSitesV1 = z.infer<typeof bingSitesV1Schemas.producer>;
746
+ export type BingLinkResultV1 = z.infer<typeof bingLinkResultV1Schemas.producer>;
747
+ export type BingAuthorizationRequestV1 = z.infer<typeof bingAuthorizationRequestV1Schema>;
748
+ export type BingAuthorizationV1 = z.infer<typeof bingAuthorizationV1Schemas.producer>;
749
+ export type BingSitemapSubmitRequestV1 = z.infer<typeof bingSitemapSubmitRequestV1Schema>;
750
+ export type BingSitemapSubmitResultV1 = z.infer<typeof bingSitemapSubmitResultV1Schemas.producer>;