@expandai/sdk 0.19.0 → 0.20.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/README.md +130 -4
- package/build/dts/AppendixMarkers.d.ts +30 -0
- package/build/dts/AppendixMarkers.d.ts.map +1 -0
- package/build/dts/Client.d.ts +41 -6
- package/build/dts/Client.d.ts.map +1 -1
- package/build/dts/Crawls.d.ts +568 -0
- package/build/dts/Crawls.d.ts.map +1 -0
- package/build/dts/EnvProxyHttpClient.d.ts +28 -0
- package/build/dts/EnvProxyHttpClient.d.ts.map +1 -0
- package/build/dts/FetchJson.d.ts +444 -37
- package/build/dts/FetchJson.d.ts.map +1 -1
- package/build/dts/Generated.d.ts +1545 -788
- package/build/dts/Generated.d.ts.map +1 -1
- package/build/dts/HttpClientHelpers.d.ts +13 -0
- package/build/dts/HttpClientHelpers.d.ts.map +1 -1
- package/build/dts/Internal.d.ts +6 -4
- package/build/dts/Internal.d.ts.map +1 -1
- package/build/dts/ParseErrorBody.d.ts +26 -0
- package/build/dts/ParseErrorBody.d.ts.map +1 -0
- package/build/dts/Playground.d.ts +20 -0
- package/build/dts/Playground.d.ts.map +1 -1
- package/build/dts/RetryAfter.d.ts +40 -0
- package/build/dts/RetryAfter.d.ts.map +1 -0
- package/build/dts/Service.d.ts +94 -45
- package/build/dts/Service.d.ts.map +1 -1
- package/build/dts/StreamPage.d.ts +10 -0
- package/build/dts/StreamPage.d.ts.map +1 -0
- package/build/dts/index.d.ts +9 -2
- package/build/dts/index.d.ts.map +1 -1
- package/build/esm/AppendixMarkers.js +307 -0
- package/build/esm/AppendixMarkers.js.map +1 -0
- package/build/esm/Client.js +96 -15
- package/build/esm/Client.js.map +1 -1
- package/build/esm/Crawls.js +786 -0
- package/build/esm/Crawls.js.map +1 -0
- package/build/esm/EnvProxyHttpClient.js +55 -0
- package/build/esm/EnvProxyHttpClient.js.map +1 -0
- package/build/esm/FetchJson.js +48 -22
- package/build/esm/FetchJson.js.map +1 -1
- package/build/esm/Generated.js +540 -112
- package/build/esm/Generated.js.map +1 -1
- package/build/esm/HttpClientHelpers.js +36 -1
- package/build/esm/HttpClientHelpers.js.map +1 -1
- package/build/esm/Internal.js +140 -33
- package/build/esm/Internal.js.map +1 -1
- package/build/esm/ParseErrorBody.js +41 -0
- package/build/esm/ParseErrorBody.js.map +1 -0
- package/build/esm/Playground.js +38 -0
- package/build/esm/Playground.js.map +1 -1
- package/build/esm/RetryAfter.js +104 -0
- package/build/esm/RetryAfter.js.map +1 -0
- package/build/esm/Service.js +96 -17
- package/build/esm/Service.js.map +1 -1
- package/build/esm/StreamPage.js +46 -0
- package/build/esm/StreamPage.js.map +1 -0
- package/build/esm/index.js +5 -1
- package/build/esm/index.js.map +1 -1
- package/package.json +8 -2
- package/src/AppendixMarkers.ts +370 -0
- package/src/Client.ts +131 -16
- package/src/Crawls.ts +1387 -0
- package/src/EnvProxyHttpClient.ts +71 -0
- package/src/FetchJson.ts +63 -25
- package/src/Generated.ts +738 -162
- package/src/HttpClientHelpers.ts +48 -1
- package/src/Internal.ts +163 -105
- package/src/ParseErrorBody.ts +42 -0
- package/src/Playground.ts +48 -0
- package/src/RetryAfter.ts +138 -0
- package/src/Service.ts +208 -25
- package/src/StreamPage.ts +47 -0
- package/src/index.ts +29 -3
package/build/dts/Generated.d.ts
CHANGED
|
@@ -4,13 +4,25 @@ import * as HttpClientError from '@effect/platform/HttpClientError';
|
|
|
4
4
|
import * as Effect from 'effect/Effect';
|
|
5
5
|
import type { ParseError } from 'effect/ParseResult';
|
|
6
6
|
import * as S from 'effect/Schema';
|
|
7
|
+
declare const FetchFetchParamsAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
8
|
+
export declare class FetchFetchParamsAppendixMarkers extends FetchFetchParamsAppendixMarkers_base {
|
|
9
|
+
}
|
|
7
10
|
declare const FetchFetchParams_base: S.Struct<{
|
|
8
11
|
include: S.optionalWith<typeof S.String, {
|
|
9
12
|
nullable: true;
|
|
10
13
|
}>;
|
|
14
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchParamsAppendixMarkers, {
|
|
15
|
+
nullable: true;
|
|
16
|
+
}>;
|
|
11
17
|
}>;
|
|
12
18
|
export declare class FetchFetchParams extends FetchFetchParams_base {
|
|
13
19
|
}
|
|
20
|
+
declare const FetchFetchRequestIncludeAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
21
|
+
export declare class FetchFetchRequestIncludeAppendixMarkers extends FetchFetchRequestIncludeAppendixMarkers_base {
|
|
22
|
+
}
|
|
23
|
+
declare const FetchFetchRequestDocumentConfigOcr_base: S.Literal<["auto", "never", "always"]>;
|
|
24
|
+
export declare class FetchFetchRequestDocumentConfigOcr extends FetchFetchRequestDocumentConfigOcr_base {
|
|
25
|
+
}
|
|
14
26
|
declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
15
27
|
url: typeof S.String;
|
|
16
28
|
include: S.optionalWith<S.Struct<{
|
|
@@ -60,10 +72,14 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
60
72
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
61
73
|
nullable: true;
|
|
62
74
|
}>;
|
|
75
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchRequestIncludeAppendixMarkers, {
|
|
76
|
+
nullable: true;
|
|
77
|
+
default: () => "compact";
|
|
78
|
+
}>;
|
|
63
79
|
}>, {
|
|
64
80
|
nullable: true;
|
|
65
81
|
}>;
|
|
66
|
-
|
|
82
|
+
highlights: S.optionalWith<S.Struct<{
|
|
67
83
|
query: typeof S.String;
|
|
68
84
|
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
69
85
|
nullable: true;
|
|
@@ -84,6 +100,21 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
84
100
|
}>, {
|
|
85
101
|
nullable: true;
|
|
86
102
|
}>;
|
|
103
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
104
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
105
|
+
nullable: true;
|
|
106
|
+
}>;
|
|
107
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
108
|
+
nullable: true;
|
|
109
|
+
default: () => 3600;
|
|
110
|
+
}>;
|
|
111
|
+
ocr: S.optionalWith<typeof FetchFetchRequestDocumentConfigOcr, {
|
|
112
|
+
nullable: true;
|
|
113
|
+
default: () => "auto";
|
|
114
|
+
}>;
|
|
115
|
+
}>, {
|
|
116
|
+
nullable: true;
|
|
117
|
+
}>;
|
|
87
118
|
}, S.Struct.Encoded<{
|
|
88
119
|
url: typeof S.String;
|
|
89
120
|
include: S.optionalWith<S.Struct<{
|
|
@@ -133,10 +164,14 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
133
164
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
134
165
|
nullable: true;
|
|
135
166
|
}>;
|
|
167
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchRequestIncludeAppendixMarkers, {
|
|
168
|
+
nullable: true;
|
|
169
|
+
default: () => "compact";
|
|
170
|
+
}>;
|
|
136
171
|
}>, {
|
|
137
172
|
nullable: true;
|
|
138
173
|
}>;
|
|
139
|
-
|
|
174
|
+
highlights: S.optionalWith<S.Struct<{
|
|
140
175
|
query: typeof S.String;
|
|
141
176
|
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
142
177
|
nullable: true;
|
|
@@ -157,10 +192,37 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
157
192
|
}>, {
|
|
158
193
|
nullable: true;
|
|
159
194
|
}>;
|
|
195
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
196
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
197
|
+
nullable: true;
|
|
198
|
+
}>;
|
|
199
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
200
|
+
nullable: true;
|
|
201
|
+
default: () => 3600;
|
|
202
|
+
}>;
|
|
203
|
+
ocr: S.optionalWith<typeof FetchFetchRequestDocumentConfigOcr, {
|
|
204
|
+
nullable: true;
|
|
205
|
+
default: () => "auto";
|
|
206
|
+
}>;
|
|
207
|
+
}>, {
|
|
208
|
+
nullable: true;
|
|
209
|
+
}>;
|
|
160
210
|
}>, never, {
|
|
161
211
|
readonly browserConfig?: {
|
|
162
212
|
readonly scrollFullPage: boolean;
|
|
163
213
|
} | undefined;
|
|
214
|
+
} & {
|
|
215
|
+
readonly documentConfig?: {
|
|
216
|
+
readonly maxPages?: number | undefined;
|
|
217
|
+
readonly maxAudioSeconds: number;
|
|
218
|
+
readonly ocr: "always" | "auto" | "never";
|
|
219
|
+
} | undefined;
|
|
220
|
+
} & {
|
|
221
|
+
readonly highlights?: {
|
|
222
|
+
readonly query: string;
|
|
223
|
+
readonly maxResults: number;
|
|
224
|
+
readonly minScore: number;
|
|
225
|
+
} | undefined;
|
|
164
226
|
} & {
|
|
165
227
|
readonly include?: {
|
|
166
228
|
readonly html?: boolean | {
|
|
@@ -183,12 +245,7 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
183
245
|
} | undefined;
|
|
184
246
|
readonly json: boolean;
|
|
185
247
|
readonly appendix?: boolean | undefined;
|
|
186
|
-
|
|
187
|
-
} & {
|
|
188
|
-
readonly search?: {
|
|
189
|
-
readonly query: string;
|
|
190
|
-
readonly maxResults: number;
|
|
191
|
-
readonly minScore: number;
|
|
248
|
+
readonly appendixMarkers: "compact" | "detailed" | "off";
|
|
192
249
|
} | undefined;
|
|
193
250
|
} & {
|
|
194
251
|
readonly url: string;
|
|
@@ -292,6 +349,68 @@ declare const FetchFetch403_base: S.Union<[S.Struct<{
|
|
|
292
349
|
}>, typeof FetchBlocked]>;
|
|
293
350
|
export declare class FetchFetch403 extends FetchFetch403_base {
|
|
294
351
|
}
|
|
352
|
+
declare const FetchOriginNotFoundTag_base: S.Literal<["FetchOriginHttpError"]>;
|
|
353
|
+
export declare class FetchOriginNotFoundTag extends FetchOriginNotFoundTag_base {
|
|
354
|
+
}
|
|
355
|
+
declare const FetchOriginNotFoundStatusCode_base: S.Literal<[404]>;
|
|
356
|
+
export declare class FetchOriginNotFoundStatusCode extends FetchOriginNotFoundStatusCode_base {
|
|
357
|
+
}
|
|
358
|
+
declare const FetchOriginNotFound_base: S.Class<FetchOriginNotFound, {
|
|
359
|
+
_tag: typeof FetchOriginNotFoundTag;
|
|
360
|
+
url: typeof S.String;
|
|
361
|
+
statusCode: typeof FetchOriginNotFoundStatusCode;
|
|
362
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
363
|
+
nullable: true;
|
|
364
|
+
}>;
|
|
365
|
+
}, S.Struct.Encoded<{
|
|
366
|
+
_tag: typeof FetchOriginNotFoundTag;
|
|
367
|
+
url: typeof S.String;
|
|
368
|
+
statusCode: typeof FetchOriginNotFoundStatusCode;
|
|
369
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
370
|
+
nullable: true;
|
|
371
|
+
}>;
|
|
372
|
+
}>, never, {
|
|
373
|
+
readonly contentType?: string | undefined;
|
|
374
|
+
} & {
|
|
375
|
+
readonly _tag: "FetchOriginHttpError";
|
|
376
|
+
} & {
|
|
377
|
+
readonly statusCode: 404;
|
|
378
|
+
} & {
|
|
379
|
+
readonly url: string;
|
|
380
|
+
}, {}, {}>;
|
|
381
|
+
export declare class FetchOriginNotFound extends FetchOriginNotFound_base {
|
|
382
|
+
}
|
|
383
|
+
declare const FetchOriginGoneTag_base: S.Literal<["FetchOriginHttpError"]>;
|
|
384
|
+
export declare class FetchOriginGoneTag extends FetchOriginGoneTag_base {
|
|
385
|
+
}
|
|
386
|
+
declare const FetchOriginGoneStatusCode_base: S.Literal<[410]>;
|
|
387
|
+
export declare class FetchOriginGoneStatusCode extends FetchOriginGoneStatusCode_base {
|
|
388
|
+
}
|
|
389
|
+
declare const FetchOriginGone_base: S.Class<FetchOriginGone, {
|
|
390
|
+
_tag: typeof FetchOriginGoneTag;
|
|
391
|
+
url: typeof S.String;
|
|
392
|
+
statusCode: typeof FetchOriginGoneStatusCode;
|
|
393
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
394
|
+
nullable: true;
|
|
395
|
+
}>;
|
|
396
|
+
}, S.Struct.Encoded<{
|
|
397
|
+
_tag: typeof FetchOriginGoneTag;
|
|
398
|
+
url: typeof S.String;
|
|
399
|
+
statusCode: typeof FetchOriginGoneStatusCode;
|
|
400
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
401
|
+
nullable: true;
|
|
402
|
+
}>;
|
|
403
|
+
}>, never, {
|
|
404
|
+
readonly contentType?: string | undefined;
|
|
405
|
+
} & {
|
|
406
|
+
readonly _tag: "FetchOriginHttpError";
|
|
407
|
+
} & {
|
|
408
|
+
readonly statusCode: 410;
|
|
409
|
+
} & {
|
|
410
|
+
readonly url: string;
|
|
411
|
+
}, {}, {}>;
|
|
412
|
+
export declare class FetchOriginGone extends FetchOriginGone_base {
|
|
413
|
+
}
|
|
295
414
|
declare const PayloadTooLargeTag_base: S.Literal<["PayloadTooLarge"]>;
|
|
296
415
|
export declare class PayloadTooLargeTag extends PayloadTooLargeTag_base {
|
|
297
416
|
}
|
|
@@ -300,7 +419,7 @@ declare const PayloadTooLarge_base: S.Struct<{
|
|
|
300
419
|
}>;
|
|
301
420
|
export declare class PayloadTooLarge extends PayloadTooLarge_base {
|
|
302
421
|
}
|
|
303
|
-
declare const FetchPageTooLargeLimitKind_base: S.Literal<["transfer_bytes", "domsnapshot_bytes", "ast_bytes"]>;
|
|
422
|
+
declare const FetchPageTooLargeLimitKind_base: S.Literal<["transfer_bytes", "domsnapshot_bytes", "ast_bytes", "document_frame_bytes", "document_pages", "audio_seconds"]>;
|
|
304
423
|
export declare class FetchPageTooLargeLimitKind extends FetchPageTooLargeLimitKind_base {
|
|
305
424
|
}
|
|
306
425
|
declare const FetchPageTooLargeTag_base: S.Literal<["FetchPageTooLarge"]>;
|
|
@@ -317,6 +436,12 @@ declare const FetchPageTooLarge_base: S.Struct<{
|
|
|
317
436
|
measuredBytes: S.optionalWith<typeof S.Number, {
|
|
318
437
|
nullable: true;
|
|
319
438
|
}>;
|
|
439
|
+
limit: S.optionalWith<typeof S.Number, {
|
|
440
|
+
nullable: true;
|
|
441
|
+
}>;
|
|
442
|
+
measured: S.optionalWith<typeof S.Number, {
|
|
443
|
+
nullable: true;
|
|
444
|
+
}>;
|
|
320
445
|
_tag: typeof FetchPageTooLargeTag;
|
|
321
446
|
}>;
|
|
322
447
|
export declare class FetchPageTooLarge extends FetchPageTooLarge_base {
|
|
@@ -324,81 +449,226 @@ export declare class FetchPageTooLarge extends FetchPageTooLarge_base {
|
|
|
324
449
|
declare const FetchFetch413_base: S.Union<[typeof PayloadTooLarge, typeof FetchPageTooLarge]>;
|
|
325
450
|
export declare class FetchFetch413 extends FetchFetch413_base {
|
|
326
451
|
}
|
|
327
|
-
declare const
|
|
328
|
-
export declare class
|
|
452
|
+
declare const FetchUnsupportedContentTypeTag_base: S.Literal<["FetchUnsupportedContentType"]>;
|
|
453
|
+
export declare class FetchUnsupportedContentTypeTag extends FetchUnsupportedContentTypeTag_base {
|
|
329
454
|
}
|
|
330
|
-
declare const
|
|
331
|
-
|
|
455
|
+
declare const FetchUnsupportedContentType_base: S.Class<FetchUnsupportedContentType, {
|
|
456
|
+
url: typeof S.String;
|
|
457
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
458
|
+
nullable: true;
|
|
459
|
+
}>;
|
|
460
|
+
_tag: typeof FetchUnsupportedContentTypeTag;
|
|
332
461
|
}, S.Struct.Encoded<{
|
|
333
|
-
|
|
462
|
+
url: typeof S.String;
|
|
463
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
464
|
+
nullable: true;
|
|
465
|
+
}>;
|
|
466
|
+
_tag: typeof FetchUnsupportedContentTypeTag;
|
|
467
|
+
}>, never, {
|
|
468
|
+
readonly contentType?: string | undefined;
|
|
469
|
+
} & {
|
|
470
|
+
readonly _tag: "FetchUnsupportedContentType";
|
|
471
|
+
} & {
|
|
472
|
+
readonly url: string;
|
|
473
|
+
}, {}, {}>;
|
|
474
|
+
export declare class FetchUnsupportedContentType extends FetchUnsupportedContentType_base {
|
|
475
|
+
}
|
|
476
|
+
declare const FetchVideoUnavailableAvailability_base: S.Literal<["private", "removed", "geoRestricted", "ageRestricted", "membersOnly", "live", "upcoming", "unknown"]>;
|
|
477
|
+
export declare class FetchVideoUnavailableAvailability extends FetchVideoUnavailableAvailability_base {
|
|
478
|
+
}
|
|
479
|
+
declare const FetchVideoUnavailableTag_base: S.Literal<["FetchVideoUnavailable"]>;
|
|
480
|
+
export declare class FetchVideoUnavailableTag extends FetchVideoUnavailableTag_base {
|
|
481
|
+
}
|
|
482
|
+
declare const FetchVideoUnavailable_base: S.Class<FetchVideoUnavailable, {
|
|
483
|
+
url: typeof S.String;
|
|
484
|
+
availability: typeof FetchVideoUnavailableAvailability;
|
|
485
|
+
message: S.optionalWith<typeof S.String, {
|
|
486
|
+
nullable: true;
|
|
487
|
+
}>;
|
|
488
|
+
_tag: typeof FetchVideoUnavailableTag;
|
|
489
|
+
}, S.Struct.Encoded<{
|
|
490
|
+
url: typeof S.String;
|
|
491
|
+
availability: typeof FetchVideoUnavailableAvailability;
|
|
492
|
+
message: S.optionalWith<typeof S.String, {
|
|
493
|
+
nullable: true;
|
|
494
|
+
}>;
|
|
495
|
+
_tag: typeof FetchVideoUnavailableTag;
|
|
334
496
|
}>, never, {
|
|
335
|
-
readonly
|
|
497
|
+
readonly message?: string | undefined;
|
|
498
|
+
} & {
|
|
499
|
+
readonly _tag: "FetchVideoUnavailable";
|
|
500
|
+
} & {
|
|
501
|
+
readonly availability: "ageRestricted" | "geoRestricted" | "live" | "membersOnly" | "private" | "removed" | "unknown" | "upcoming";
|
|
502
|
+
} & {
|
|
503
|
+
readonly url: string;
|
|
336
504
|
}, {}, {}>;
|
|
505
|
+
export declare class FetchVideoUnavailable extends FetchVideoUnavailable_base {
|
|
506
|
+
}
|
|
507
|
+
declare const TooManyRequestsRetryable_base: S.Literal<[true]>;
|
|
508
|
+
export declare class TooManyRequestsRetryable extends TooManyRequestsRetryable_base {
|
|
509
|
+
}
|
|
510
|
+
declare const TooManyRequestsTag_base: S.Literal<["TooManyRequests"]>;
|
|
511
|
+
export declare class TooManyRequestsTag extends TooManyRequestsTag_base {
|
|
512
|
+
}
|
|
513
|
+
declare const TooManyRequests_base: S.Struct<{
|
|
514
|
+
retryable: S.optionalWith<typeof TooManyRequestsRetryable, {
|
|
515
|
+
default: () => true;
|
|
516
|
+
}>;
|
|
517
|
+
retryAfterSeconds: S.optionalWith<typeof S.Number, {
|
|
518
|
+
nullable: true;
|
|
519
|
+
}>;
|
|
520
|
+
_tag: typeof TooManyRequestsTag;
|
|
521
|
+
}>;
|
|
337
522
|
export declare class TooManyRequests extends TooManyRequests_base {
|
|
338
523
|
}
|
|
524
|
+
declare const FetchConcurrencyLimitExceededRetryable_base: S.Literal<[true]>;
|
|
525
|
+
export declare class FetchConcurrencyLimitExceededRetryable extends FetchConcurrencyLimitExceededRetryable_base {
|
|
526
|
+
}
|
|
527
|
+
declare const FetchConcurrencyLimitExceededTag_base: S.Literal<["FetchConcurrencyLimitExceeded"]>;
|
|
528
|
+
export declare class FetchConcurrencyLimitExceededTag extends FetchConcurrencyLimitExceededTag_base {
|
|
529
|
+
}
|
|
530
|
+
declare const FetchConcurrencyLimitExceeded_base: S.Struct<{
|
|
531
|
+
retryable: S.optionalWith<typeof FetchConcurrencyLimitExceededRetryable, {
|
|
532
|
+
default: () => true;
|
|
533
|
+
}>;
|
|
534
|
+
retryAfterSeconds: typeof S.Number;
|
|
535
|
+
maxConcurrency: typeof S.Number;
|
|
536
|
+
message: S.optionalWith<typeof S.String, {
|
|
537
|
+
nullable: true;
|
|
538
|
+
}>;
|
|
539
|
+
requestId: S.optionalWith<typeof S.String, {
|
|
540
|
+
nullable: true;
|
|
541
|
+
}>;
|
|
542
|
+
_tag: typeof FetchConcurrencyLimitExceededTag;
|
|
543
|
+
}>;
|
|
544
|
+
export declare class FetchConcurrencyLimitExceeded extends FetchConcurrencyLimitExceeded_base {
|
|
545
|
+
}
|
|
546
|
+
declare const FetchFetch429_base: S.Union<[typeof TooManyRequests, typeof FetchConcurrencyLimitExceeded]>;
|
|
547
|
+
export declare class FetchFetch429 extends FetchFetch429_base {
|
|
548
|
+
}
|
|
549
|
+
declare const InternalErrorRetryable_base: S.Literal<[true]>;
|
|
550
|
+
export declare class InternalErrorRetryable extends InternalErrorRetryable_base {
|
|
551
|
+
}
|
|
339
552
|
declare const InternalErrorTag_base: S.Literal<["InternalError"]>;
|
|
340
553
|
export declare class InternalErrorTag extends InternalErrorTag_base {
|
|
341
554
|
}
|
|
342
555
|
declare const InternalError_base: S.Class<InternalError, {
|
|
556
|
+
retryable: S.optionalWith<typeof InternalErrorRetryable, {
|
|
557
|
+
default: () => true;
|
|
558
|
+
}>;
|
|
343
559
|
_tag: typeof InternalErrorTag;
|
|
344
560
|
}, S.Struct.Encoded<{
|
|
561
|
+
retryable: S.optionalWith<typeof InternalErrorRetryable, {
|
|
562
|
+
default: () => true;
|
|
563
|
+
}>;
|
|
345
564
|
_tag: typeof InternalErrorTag;
|
|
346
565
|
}>, never, {
|
|
566
|
+
readonly retryable?: true | undefined;
|
|
567
|
+
} & {
|
|
347
568
|
readonly _tag: "InternalError";
|
|
348
569
|
}, {}, {}>;
|
|
349
570
|
export declare class InternalError extends InternalError_base {
|
|
350
571
|
}
|
|
572
|
+
declare const FetchCaptureFailedFailureType_base: S.Literal<["pageNeverSettled", "capabilityFailed"]>;
|
|
573
|
+
export declare class FetchCaptureFailedFailureType extends FetchCaptureFailedFailureType_base {
|
|
574
|
+
}
|
|
575
|
+
declare const FetchCaptureFailedRetryable_base: S.Literal<[false]>;
|
|
576
|
+
export declare class FetchCaptureFailedRetryable extends FetchCaptureFailedRetryable_base {
|
|
577
|
+
}
|
|
578
|
+
declare const FetchCaptureFailedTag_base: S.Literal<["FetchCaptureFailed"]>;
|
|
579
|
+
export declare class FetchCaptureFailedTag extends FetchCaptureFailedTag_base {
|
|
580
|
+
}
|
|
581
|
+
declare const FetchCaptureFailed_base: S.Struct<{
|
|
582
|
+
url: typeof S.String;
|
|
583
|
+
failureType: typeof FetchCaptureFailedFailureType;
|
|
584
|
+
retryable: S.optionalWith<typeof FetchCaptureFailedRetryable, {
|
|
585
|
+
default: () => false;
|
|
586
|
+
}>;
|
|
587
|
+
_tag: typeof FetchCaptureFailedTag;
|
|
588
|
+
}>;
|
|
589
|
+
export declare class FetchCaptureFailed extends FetchCaptureFailed_base {
|
|
590
|
+
}
|
|
351
591
|
declare const FetchNavigationFailedFailureType_base: S.Literal<["browserInternalDocument"]>;
|
|
352
592
|
export declare class FetchNavigationFailedFailureType extends FetchNavigationFailedFailureType_base {
|
|
353
593
|
}
|
|
594
|
+
declare const FetchNavigationFailedRetryable_base: S.Literal<[false]>;
|
|
595
|
+
export declare class FetchNavigationFailedRetryable extends FetchNavigationFailedRetryable_base {
|
|
596
|
+
}
|
|
354
597
|
declare const FetchNavigationFailedTag_base: S.Literal<["FetchNavigationFailed"]>;
|
|
355
598
|
export declare class FetchNavigationFailedTag extends FetchNavigationFailedTag_base {
|
|
356
599
|
}
|
|
357
|
-
declare const FetchNavigationFailed_base: S.
|
|
358
|
-
url: typeof S.String;
|
|
359
|
-
failureType: typeof FetchNavigationFailedFailureType;
|
|
360
|
-
_tag: typeof FetchNavigationFailedTag;
|
|
361
|
-
}, S.Struct.Encoded<{
|
|
600
|
+
declare const FetchNavigationFailed_base: S.Struct<{
|
|
362
601
|
url: typeof S.String;
|
|
363
602
|
failureType: typeof FetchNavigationFailedFailureType;
|
|
603
|
+
retryable: S.optionalWith<typeof FetchNavigationFailedRetryable, {
|
|
604
|
+
default: () => false;
|
|
605
|
+
}>;
|
|
364
606
|
_tag: typeof FetchNavigationFailedTag;
|
|
365
|
-
}
|
|
366
|
-
readonly _tag: "FetchNavigationFailed";
|
|
367
|
-
} & {
|
|
368
|
-
readonly failureType: "browserInternalDocument";
|
|
369
|
-
} & {
|
|
370
|
-
readonly url: string;
|
|
371
|
-
}, {}, {}>;
|
|
607
|
+
}>;
|
|
372
608
|
export declare class FetchNavigationFailed extends FetchNavigationFailed_base {
|
|
373
609
|
}
|
|
610
|
+
declare const FetchOriginHttpErrorTag_base: S.Literal<["FetchOriginHttpError"]>;
|
|
611
|
+
export declare class FetchOriginHttpErrorTag extends FetchOriginHttpErrorTag_base {
|
|
612
|
+
}
|
|
613
|
+
declare const FetchOriginHttpError_base: S.Struct<{
|
|
614
|
+
url: typeof S.String;
|
|
615
|
+
statusCode: typeof S.Number;
|
|
616
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
617
|
+
nullable: true;
|
|
618
|
+
}>;
|
|
619
|
+
_tag: typeof FetchOriginHttpErrorTag;
|
|
620
|
+
}>;
|
|
621
|
+
export declare class FetchOriginHttpError extends FetchOriginHttpError_base {
|
|
622
|
+
}
|
|
623
|
+
declare const FetchFetch502_base: S.Union<[typeof FetchCaptureFailed, typeof FetchNavigationFailed, typeof FetchOriginHttpError]>;
|
|
624
|
+
export declare class FetchFetch502 extends FetchFetch502_base {
|
|
625
|
+
}
|
|
626
|
+
declare const ServiceUnavailableDispatchOutcome_base: S.Literal<["cancelled_before_start", "cancelled_after_start", "unknown"]>;
|
|
627
|
+
export declare class ServiceUnavailableDispatchOutcome extends ServiceUnavailableDispatchOutcome_base {
|
|
628
|
+
}
|
|
629
|
+
declare const ServiceUnavailableRetryable_base: S.Literal<[true]>;
|
|
630
|
+
export declare class ServiceUnavailableRetryable extends ServiceUnavailableRetryable_base {
|
|
631
|
+
}
|
|
374
632
|
declare const ServiceUnavailableTag_base: S.Literal<["ServiceUnavailable"]>;
|
|
375
633
|
export declare class ServiceUnavailableTag extends ServiceUnavailableTag_base {
|
|
376
634
|
}
|
|
377
|
-
declare const ServiceUnavailable_base: S.
|
|
635
|
+
declare const ServiceUnavailable_base: S.Struct<{
|
|
378
636
|
message: S.optionalWith<typeof S.String, {
|
|
379
637
|
nullable: true;
|
|
380
638
|
}>;
|
|
381
639
|
requestId: S.optionalWith<typeof S.String, {
|
|
382
640
|
nullable: true;
|
|
383
641
|
}>;
|
|
384
|
-
|
|
385
|
-
}, S.Struct.Encoded<{
|
|
386
|
-
message: S.optionalWith<typeof S.String, {
|
|
642
|
+
dispatchOutcome: S.optionalWith<typeof ServiceUnavailableDispatchOutcome, {
|
|
387
643
|
nullable: true;
|
|
388
644
|
}>;
|
|
389
|
-
|
|
390
|
-
|
|
645
|
+
retryable: S.optionalWith<typeof ServiceUnavailableRetryable, {
|
|
646
|
+
default: () => true;
|
|
391
647
|
}>;
|
|
392
648
|
_tag: typeof ServiceUnavailableTag;
|
|
393
|
-
}
|
|
394
|
-
readonly message?: string | undefined;
|
|
395
|
-
} & {
|
|
396
|
-
readonly requestId?: string | undefined;
|
|
397
|
-
} & {
|
|
398
|
-
readonly _tag: "ServiceUnavailable";
|
|
399
|
-
}, {}, {}>;
|
|
649
|
+
}>;
|
|
400
650
|
export declare class ServiceUnavailable extends ServiceUnavailable_base {
|
|
401
651
|
}
|
|
652
|
+
declare const FetchDocumentProcessingUnavailableOperation_base: S.Literal<["ocr", "transcription", "video"]>;
|
|
653
|
+
export declare class FetchDocumentProcessingUnavailableOperation extends FetchDocumentProcessingUnavailableOperation_base {
|
|
654
|
+
}
|
|
655
|
+
declare const FetchDocumentProcessingUnavailableTag_base: S.Literal<["FetchDocumentProcessingUnavailable"]>;
|
|
656
|
+
export declare class FetchDocumentProcessingUnavailableTag extends FetchDocumentProcessingUnavailableTag_base {
|
|
657
|
+
}
|
|
658
|
+
declare const FetchDocumentProcessingUnavailable_base: S.Struct<{
|
|
659
|
+
url: typeof S.String;
|
|
660
|
+
operation: typeof FetchDocumentProcessingUnavailableOperation;
|
|
661
|
+
message: typeof S.String;
|
|
662
|
+
_tag: typeof FetchDocumentProcessingUnavailableTag;
|
|
663
|
+
}>;
|
|
664
|
+
export declare class FetchDocumentProcessingUnavailable extends FetchDocumentProcessingUnavailable_base {
|
|
665
|
+
}
|
|
666
|
+
declare const FetchFetch503_base: S.Union<[typeof ServiceUnavailable, typeof FetchDocumentProcessingUnavailable]>;
|
|
667
|
+
export declare class FetchFetch503 extends FetchFetch503_base {
|
|
668
|
+
}
|
|
669
|
+
declare const FetchCaptureTimeoutRetryable_base: S.Literal<[false]>;
|
|
670
|
+
export declare class FetchCaptureTimeoutRetryable extends FetchCaptureTimeoutRetryable_base {
|
|
671
|
+
}
|
|
402
672
|
declare const FetchCaptureTimeoutTag_base: S.Literal<["FetchCaptureTimeout"]>;
|
|
403
673
|
export declare class FetchCaptureTimeoutTag extends FetchCaptureTimeoutTag_base {
|
|
404
674
|
}
|
|
@@ -407,15 +677,23 @@ declare const FetchCaptureTimeout_base: S.Class<FetchCaptureTimeout, {
|
|
|
407
677
|
timeoutMs: S.optionalWith<typeof S.Number, {
|
|
408
678
|
nullable: true;
|
|
409
679
|
}>;
|
|
680
|
+
retryable: S.optionalWith<typeof FetchCaptureTimeoutRetryable, {
|
|
681
|
+
default: () => false;
|
|
682
|
+
}>;
|
|
410
683
|
_tag: typeof FetchCaptureTimeoutTag;
|
|
411
684
|
}, S.Struct.Encoded<{
|
|
412
685
|
url: typeof S.String;
|
|
413
686
|
timeoutMs: S.optionalWith<typeof S.Number, {
|
|
414
687
|
nullable: true;
|
|
415
688
|
}>;
|
|
689
|
+
retryable: S.optionalWith<typeof FetchCaptureTimeoutRetryable, {
|
|
690
|
+
default: () => false;
|
|
691
|
+
}>;
|
|
416
692
|
_tag: typeof FetchCaptureTimeoutTag;
|
|
417
693
|
}>, never, {
|
|
418
694
|
readonly timeoutMs?: number | undefined;
|
|
695
|
+
} & {
|
|
696
|
+
readonly retryable?: false | undefined;
|
|
419
697
|
} & {
|
|
420
698
|
readonly _tag: "FetchCaptureTimeout";
|
|
421
699
|
} & {
|
|
@@ -423,6 +701,9 @@ declare const FetchCaptureTimeout_base: S.Class<FetchCaptureTimeout, {
|
|
|
423
701
|
}, {}, {}>;
|
|
424
702
|
export declare class FetchCaptureTimeout extends FetchCaptureTimeout_base {
|
|
425
703
|
}
|
|
704
|
+
declare const FetchCapacityTimeoutRetryable_base: S.Literal<[true]>;
|
|
705
|
+
export declare class FetchCapacityTimeoutRetryable extends FetchCapacityTimeoutRetryable_base {
|
|
706
|
+
}
|
|
426
707
|
declare const FetchCapacityTimeoutTag_base: S.Literal<["FetchCapacityTimeout"]>;
|
|
427
708
|
export declare class FetchCapacityTimeoutTag extends FetchCapacityTimeoutTag_base {
|
|
428
709
|
}
|
|
@@ -431,15 +712,23 @@ declare const FetchCapacityTimeout_base: S.Class<FetchCapacityTimeout, {
|
|
|
431
712
|
timeoutMs: S.optionalWith<typeof S.Number, {
|
|
432
713
|
nullable: true;
|
|
433
714
|
}>;
|
|
715
|
+
retryable: S.optionalWith<typeof FetchCapacityTimeoutRetryable, {
|
|
716
|
+
default: () => true;
|
|
717
|
+
}>;
|
|
434
718
|
_tag: typeof FetchCapacityTimeoutTag;
|
|
435
719
|
}, S.Struct.Encoded<{
|
|
436
720
|
url: typeof S.String;
|
|
437
721
|
timeoutMs: S.optionalWith<typeof S.Number, {
|
|
438
722
|
nullable: true;
|
|
439
723
|
}>;
|
|
724
|
+
retryable: S.optionalWith<typeof FetchCapacityTimeoutRetryable, {
|
|
725
|
+
default: () => true;
|
|
726
|
+
}>;
|
|
440
727
|
_tag: typeof FetchCapacityTimeoutTag;
|
|
441
728
|
}>, never, {
|
|
442
729
|
readonly timeoutMs?: number | undefined;
|
|
730
|
+
} & {
|
|
731
|
+
readonly retryable?: true | undefined;
|
|
443
732
|
} & {
|
|
444
733
|
readonly _tag: "FetchCapacityTimeout";
|
|
445
734
|
} & {
|
|
@@ -447,13 +736,25 @@ declare const FetchCapacityTimeout_base: S.Class<FetchCapacityTimeout, {
|
|
|
447
736
|
}, {}, {}>;
|
|
448
737
|
export declare class FetchCapacityTimeout extends FetchCapacityTimeout_base {
|
|
449
738
|
}
|
|
739
|
+
declare const FetchFetchJsonParamsAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
740
|
+
export declare class FetchFetchJsonParamsAppendixMarkers extends FetchFetchJsonParamsAppendixMarkers_base {
|
|
741
|
+
}
|
|
450
742
|
declare const FetchFetchJsonParams_base: S.Struct<{
|
|
451
743
|
include: S.optionalWith<typeof S.String, {
|
|
452
744
|
nullable: true;
|
|
453
745
|
}>;
|
|
746
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchJsonParamsAppendixMarkers, {
|
|
747
|
+
nullable: true;
|
|
748
|
+
}>;
|
|
454
749
|
}>;
|
|
455
750
|
export declare class FetchFetchJsonParams extends FetchFetchJsonParams_base {
|
|
456
751
|
}
|
|
752
|
+
declare const FetchFetchJsonRequestIncludeAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
753
|
+
export declare class FetchFetchJsonRequestIncludeAppendixMarkers extends FetchFetchJsonRequestIncludeAppendixMarkers_base {
|
|
754
|
+
}
|
|
755
|
+
declare const FetchFetchJsonRequestDocumentConfigOcr_base: S.Literal<["auto", "never", "always"]>;
|
|
756
|
+
export declare class FetchFetchJsonRequestDocumentConfigOcr extends FetchFetchJsonRequestDocumentConfigOcr_base {
|
|
757
|
+
}
|
|
457
758
|
declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
458
759
|
url: typeof S.String;
|
|
459
760
|
include: S.optionalWith<S.Struct<{
|
|
@@ -503,10 +804,14 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
503
804
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
504
805
|
nullable: true;
|
|
505
806
|
}>;
|
|
807
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchJsonRequestIncludeAppendixMarkers, {
|
|
808
|
+
nullable: true;
|
|
809
|
+
default: () => "compact";
|
|
810
|
+
}>;
|
|
506
811
|
}>, {
|
|
507
812
|
nullable: true;
|
|
508
813
|
}>;
|
|
509
|
-
|
|
814
|
+
highlights: S.optionalWith<S.Struct<{
|
|
510
815
|
query: typeof S.String;
|
|
511
816
|
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
512
817
|
nullable: true;
|
|
@@ -527,6 +832,21 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
527
832
|
}>, {
|
|
528
833
|
nullable: true;
|
|
529
834
|
}>;
|
|
835
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
836
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
837
|
+
nullable: true;
|
|
838
|
+
}>;
|
|
839
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
840
|
+
nullable: true;
|
|
841
|
+
default: () => 3600;
|
|
842
|
+
}>;
|
|
843
|
+
ocr: S.optionalWith<typeof FetchFetchJsonRequestDocumentConfigOcr, {
|
|
844
|
+
nullable: true;
|
|
845
|
+
default: () => "auto";
|
|
846
|
+
}>;
|
|
847
|
+
}>, {
|
|
848
|
+
nullable: true;
|
|
849
|
+
}>;
|
|
530
850
|
}, S.Struct.Encoded<{
|
|
531
851
|
url: typeof S.String;
|
|
532
852
|
include: S.optionalWith<S.Struct<{
|
|
@@ -576,10 +896,14 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
576
896
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
577
897
|
nullable: true;
|
|
578
898
|
}>;
|
|
899
|
+
appendixMarkers: S.optionalWith<typeof FetchFetchJsonRequestIncludeAppendixMarkers, {
|
|
900
|
+
nullable: true;
|
|
901
|
+
default: () => "compact";
|
|
902
|
+
}>;
|
|
579
903
|
}>, {
|
|
580
904
|
nullable: true;
|
|
581
905
|
}>;
|
|
582
|
-
|
|
906
|
+
highlights: S.optionalWith<S.Struct<{
|
|
583
907
|
query: typeof S.String;
|
|
584
908
|
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
585
909
|
nullable: true;
|
|
@@ -600,10 +924,37 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
600
924
|
}>, {
|
|
601
925
|
nullable: true;
|
|
602
926
|
}>;
|
|
927
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
928
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
929
|
+
nullable: true;
|
|
930
|
+
}>;
|
|
931
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
932
|
+
nullable: true;
|
|
933
|
+
default: () => 3600;
|
|
934
|
+
}>;
|
|
935
|
+
ocr: S.optionalWith<typeof FetchFetchJsonRequestDocumentConfigOcr, {
|
|
936
|
+
nullable: true;
|
|
937
|
+
default: () => "auto";
|
|
938
|
+
}>;
|
|
939
|
+
}>, {
|
|
940
|
+
nullable: true;
|
|
941
|
+
}>;
|
|
603
942
|
}>, never, {
|
|
604
943
|
readonly browserConfig?: {
|
|
605
944
|
readonly scrollFullPage: boolean;
|
|
606
945
|
} | undefined;
|
|
946
|
+
} & {
|
|
947
|
+
readonly documentConfig?: {
|
|
948
|
+
readonly maxPages?: number | undefined;
|
|
949
|
+
readonly maxAudioSeconds: number;
|
|
950
|
+
readonly ocr: "always" | "auto" | "never";
|
|
951
|
+
} | undefined;
|
|
952
|
+
} & {
|
|
953
|
+
readonly highlights?: {
|
|
954
|
+
readonly query: string;
|
|
955
|
+
readonly maxResults: number;
|
|
956
|
+
readonly minScore: number;
|
|
957
|
+
} | undefined;
|
|
607
958
|
} & {
|
|
608
959
|
readonly include?: {
|
|
609
960
|
readonly html?: boolean | {
|
|
@@ -626,12 +977,7 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
626
977
|
} | undefined;
|
|
627
978
|
readonly json: boolean;
|
|
628
979
|
readonly appendix?: boolean | undefined;
|
|
629
|
-
|
|
630
|
-
} & {
|
|
631
|
-
readonly search?: {
|
|
632
|
-
readonly query: string;
|
|
633
|
-
readonly maxResults: number;
|
|
634
|
-
readonly minScore: number;
|
|
980
|
+
readonly appendixMarkers: "compact" | "detailed" | "off";
|
|
635
981
|
} | undefined;
|
|
636
982
|
} & {
|
|
637
983
|
readonly url: string;
|
|
@@ -641,15 +987,47 @@ export declare class FetchFetchJsonRequest extends FetchFetchJsonRequest_base {
|
|
|
641
987
|
declare const FetchObjectModeMetaVersion_base: S.Literal<[1]>;
|
|
642
988
|
export declare class FetchObjectModeMetaVersion extends FetchObjectModeMetaVersion_base {
|
|
643
989
|
}
|
|
990
|
+
export declare class Int extends S.Int {
|
|
991
|
+
}
|
|
644
992
|
declare const FetchObjectModeAppendixLinks_base: S.Struct<{
|
|
645
993
|
sameDomain: typeof S.Number;
|
|
646
994
|
external: typeof S.Number;
|
|
647
995
|
}>;
|
|
648
996
|
export declare class FetchObjectModeAppendixLinks extends FetchObjectModeAppendixLinks_base {
|
|
649
997
|
}
|
|
998
|
+
declare const FetchObjectModeAppendixOmitted_base: S.Struct<{
|
|
999
|
+
blocks: typeof S.Number;
|
|
1000
|
+
approxTokens: typeof S.Number;
|
|
1001
|
+
}>;
|
|
1002
|
+
export declare class FetchObjectModeAppendixOmitted extends FetchObjectModeAppendixOmitted_base {
|
|
1003
|
+
}
|
|
1004
|
+
declare const FetchObjectModeAppendixMarker_base: S.Struct<{
|
|
1005
|
+
evidenceId: S.optionalWith<typeof S.Number, {
|
|
1006
|
+
nullable: true;
|
|
1007
|
+
}>;
|
|
1008
|
+
links: typeof S.Number;
|
|
1009
|
+
approxTokens: typeof S.Number;
|
|
1010
|
+
label: S.optionalWith<typeof S.String, {
|
|
1011
|
+
nullable: true;
|
|
1012
|
+
}>;
|
|
1013
|
+
preview: S.optionalWith<typeof S.String, {
|
|
1014
|
+
nullable: true;
|
|
1015
|
+
}>;
|
|
1016
|
+
moreBlocks: S.optionalWith<typeof S.Number, {
|
|
1017
|
+
nullable: true;
|
|
1018
|
+
}>;
|
|
1019
|
+
}>;
|
|
1020
|
+
export declare class FetchObjectModeAppendixMarker extends FetchObjectModeAppendixMarker_base {
|
|
1021
|
+
}
|
|
650
1022
|
declare const FetchObjectModeAppendixHint_base: S.Struct<{
|
|
651
1023
|
url: typeof S.String;
|
|
652
1024
|
links: typeof FetchObjectModeAppendixLinks;
|
|
1025
|
+
omitted: S.optionalWith<typeof FetchObjectModeAppendixOmitted, {
|
|
1026
|
+
nullable: true;
|
|
1027
|
+
}>;
|
|
1028
|
+
markers: S.optionalWith<S.Array$<typeof FetchObjectModeAppendixMarker>, {
|
|
1029
|
+
nullable: true;
|
|
1030
|
+
}>;
|
|
653
1031
|
}>;
|
|
654
1032
|
export declare class FetchObjectModeAppendixHint extends FetchObjectModeAppendixHint_base {
|
|
655
1033
|
}
|
|
@@ -666,6 +1044,17 @@ declare const FetchObjectModeMarkdownHint_base: S.Struct<{
|
|
|
666
1044
|
}>;
|
|
667
1045
|
export declare class FetchObjectModeMarkdownHint extends FetchObjectModeMarkdownHint_base {
|
|
668
1046
|
}
|
|
1047
|
+
declare const FetchObjectModeResourcesVersion_base: S.Literal<[1]>;
|
|
1048
|
+
export declare class FetchObjectModeResourcesVersion extends FetchObjectModeResourcesVersion_base {
|
|
1049
|
+
}
|
|
1050
|
+
declare const FetchObjectModeResources_base: S.Struct<{
|
|
1051
|
+
version: typeof FetchObjectModeResourcesVersion;
|
|
1052
|
+
snapshotId: typeof S.String;
|
|
1053
|
+
url: typeof S.String;
|
|
1054
|
+
markdownUrl: typeof S.String;
|
|
1055
|
+
}>;
|
|
1056
|
+
export declare class FetchObjectModeResources extends FetchObjectModeResources_base {
|
|
1057
|
+
}
|
|
669
1058
|
declare const FetchObjectModeMeta_base: S.Struct<{
|
|
670
1059
|
version: typeof FetchObjectModeMetaVersion;
|
|
671
1060
|
url: typeof S.String;
|
|
@@ -674,12 +1063,18 @@ declare const FetchObjectModeMeta_base: S.Struct<{
|
|
|
674
1063
|
lang: typeof S.String;
|
|
675
1064
|
pageType: typeof S.String;
|
|
676
1065
|
playground: typeof S.String;
|
|
1066
|
+
citationEvidenceIds: S.optionalWith<S.filter<S.Array$<typeof Int>>, {
|
|
1067
|
+
nullable: true;
|
|
1068
|
+
}>;
|
|
677
1069
|
title: S.optionalWith<typeof S.String, {
|
|
678
1070
|
nullable: true;
|
|
679
1071
|
}>;
|
|
680
1072
|
finalUrl: S.optionalWith<typeof S.String, {
|
|
681
1073
|
nullable: true;
|
|
682
1074
|
}>;
|
|
1075
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
1076
|
+
nullable: true;
|
|
1077
|
+
}>;
|
|
683
1078
|
canonical: S.optionalWith<typeof S.String, {
|
|
684
1079
|
nullable: true;
|
|
685
1080
|
}>;
|
|
@@ -710,6 +1105,9 @@ declare const FetchObjectModeMeta_base: S.Struct<{
|
|
|
710
1105
|
markdown: S.optionalWith<typeof FetchObjectModeMarkdownHint, {
|
|
711
1106
|
nullable: true;
|
|
712
1107
|
}>;
|
|
1108
|
+
resources: S.optionalWith<typeof FetchObjectModeResources, {
|
|
1109
|
+
nullable: true;
|
|
1110
|
+
}>;
|
|
713
1111
|
blocked: S.optionalWith<typeof S.String, {
|
|
714
1112
|
nullable: true;
|
|
715
1113
|
}>;
|
|
@@ -735,7 +1133,7 @@ declare const FetchObjectModeEvidence_base: S.Struct<{
|
|
|
735
1133
|
id: typeof S.Number;
|
|
736
1134
|
kind: typeof FetchObjectModeEvidenceKind;
|
|
737
1135
|
role: typeof FetchObjectModeEvidenceRole;
|
|
738
|
-
score: typeof S.Number
|
|
1136
|
+
score: S.filter<typeof S.Number>;
|
|
739
1137
|
url: S.optionalWith<typeof S.String, {
|
|
740
1138
|
nullable: true;
|
|
741
1139
|
}>;
|
|
@@ -774,7 +1172,7 @@ export declare class FetchAssetReference extends FetchAssetReference_base {
|
|
|
774
1172
|
declare const FetchDegradedInfoReason_base: S.Literal<["pageTooLarge", "modelInputTooLarge"]>;
|
|
775
1173
|
export declare class FetchDegradedInfoReason extends FetchDegradedInfoReason_base {
|
|
776
1174
|
}
|
|
777
|
-
declare const FetchDegradedInfoLimitKind_base: S.Literal<["domsnapshot_bytes", "ast_bytes", "hfc_tokens"]>;
|
|
1175
|
+
declare const FetchDegradedInfoLimitKind_base: S.Literal<["domsnapshot_bytes", "ast_bytes", "document_frame_bytes", "hfc_tokens"]>;
|
|
778
1176
|
export declare class FetchDegradedInfoLimitKind extends FetchDegradedInfoLimitKind_base {
|
|
779
1177
|
}
|
|
780
1178
|
declare const FetchDegradedInfo_base: S.Struct<{
|
|
@@ -796,9 +1194,7 @@ declare const FetchDegradedInfo_base: S.Struct<{
|
|
|
796
1194
|
}>;
|
|
797
1195
|
export declare class FetchDegradedInfo extends FetchDegradedInfo_base {
|
|
798
1196
|
}
|
|
799
|
-
|
|
800
|
-
}
|
|
801
|
-
declare const FetchSearchSnippetLocation_base: S.Struct<{
|
|
1197
|
+
declare const FetchHighlightsSnippetLocation_base: S.Struct<{
|
|
802
1198
|
evidenceId: S.optionalWith<typeof Int, {
|
|
803
1199
|
nullable: true;
|
|
804
1200
|
}>;
|
|
@@ -815,37 +1211,37 @@ declare const FetchSearchSnippetLocation_base: S.Struct<{
|
|
|
815
1211
|
nullable: true;
|
|
816
1212
|
}>;
|
|
817
1213
|
}>;
|
|
818
|
-
export declare class
|
|
1214
|
+
export declare class FetchHighlightsSnippetLocation extends FetchHighlightsSnippetLocation_base {
|
|
819
1215
|
}
|
|
820
|
-
declare const
|
|
821
|
-
export declare class
|
|
1216
|
+
declare const FetchHighlightsSourceMetaSource_base: S.Literal<["markdown", "appendix", "statejson"]>;
|
|
1217
|
+
export declare class FetchHighlightsSourceMetaSource extends FetchHighlightsSourceMetaSource_base {
|
|
822
1218
|
}
|
|
823
|
-
declare const
|
|
824
|
-
export declare class
|
|
1219
|
+
declare const FetchHighlightsSourceMetaRanker_base: S.Literal<["zeroentropy", "mixedbread", "local_lexical"]>;
|
|
1220
|
+
export declare class FetchHighlightsSourceMetaRanker extends FetchHighlightsSourceMetaRanker_base {
|
|
825
1221
|
}
|
|
826
|
-
declare const
|
|
827
|
-
export declare class
|
|
1222
|
+
declare const FetchHighlightsSourceMetaFallbackReason_base: S.Literal<["timeout", "error"]>;
|
|
1223
|
+
export declare class FetchHighlightsSourceMetaFallbackReason extends FetchHighlightsSourceMetaFallbackReason_base {
|
|
828
1224
|
}
|
|
829
|
-
declare const
|
|
830
|
-
source: typeof
|
|
1225
|
+
declare const FetchHighlightsSourceMeta_base: S.Struct<{
|
|
1226
|
+
source: typeof FetchHighlightsSourceMetaSource;
|
|
831
1227
|
chunkCount: S.filter<typeof S.Int>;
|
|
832
1228
|
batchCount: S.filter<typeof S.Int>;
|
|
833
|
-
ranker: typeof
|
|
1229
|
+
ranker: typeof FetchHighlightsSourceMetaRanker;
|
|
834
1230
|
fallback: typeof S.Boolean;
|
|
835
|
-
fallbackReason: S.optionalWith<typeof
|
|
1231
|
+
fallbackReason: S.optionalWith<typeof FetchHighlightsSourceMetaFallbackReason, {
|
|
836
1232
|
nullable: true;
|
|
837
1233
|
}>;
|
|
838
1234
|
durationMs: S.filter<typeof S.Number>;
|
|
839
1235
|
}>;
|
|
840
|
-
export declare class
|
|
1236
|
+
export declare class FetchHighlightsSourceMeta extends FetchHighlightsSourceMeta_base {
|
|
841
1237
|
}
|
|
842
|
-
declare const
|
|
1238
|
+
declare const FetchHighlightsMeta_base: S.Struct<{
|
|
843
1239
|
durationMs: S.filter<typeof S.Number>;
|
|
844
|
-
sources: S.Array$<typeof
|
|
1240
|
+
sources: S.Array$<typeof FetchHighlightsSourceMeta>;
|
|
845
1241
|
}>;
|
|
846
|
-
export declare class
|
|
1242
|
+
export declare class FetchHighlightsMeta extends FetchHighlightsMeta_base {
|
|
847
1243
|
}
|
|
848
|
-
declare const
|
|
1244
|
+
declare const FetchHighlightsResult_base: S.Struct<{
|
|
849
1245
|
query: typeof S.String;
|
|
850
1246
|
snippets: S.Array$<S.Struct<{
|
|
851
1247
|
type: S.optionalWith<S.Literal<["text"]>, {
|
|
@@ -855,17 +1251,56 @@ declare const FetchSearchResult_base: S.Struct<{
|
|
|
855
1251
|
source: S.Literal<["markdown", "appendix", "statejson"]>;
|
|
856
1252
|
text: typeof S.String;
|
|
857
1253
|
score: S.filter<S.filter<typeof S.Number>>;
|
|
858
|
-
location: S.optionalWith<typeof
|
|
1254
|
+
location: S.optionalWith<typeof FetchHighlightsSnippetLocation, {
|
|
859
1255
|
nullable: true;
|
|
860
1256
|
}>;
|
|
861
1257
|
}>>;
|
|
862
|
-
meta: S.optionalWith<typeof
|
|
1258
|
+
meta: S.optionalWith<typeof FetchHighlightsMeta, {
|
|
1259
|
+
nullable: true;
|
|
1260
|
+
}>;
|
|
1261
|
+
}>;
|
|
1262
|
+
export declare class FetchHighlightsResult extends FetchHighlightsResult_base {
|
|
1263
|
+
}
|
|
1264
|
+
declare const FetchObjectModeResultDataVideoProvider_base: S.Literal<["youtube"]>;
|
|
1265
|
+
export declare class FetchObjectModeResultDataVideoProvider extends FetchObjectModeResultDataVideoProvider_base {
|
|
1266
|
+
}
|
|
1267
|
+
declare const FetchObjectModeResultDataVideoTranscriptSource_base: S.Literal<["captions", "transcription"]>;
|
|
1268
|
+
export declare class FetchObjectModeResultDataVideoTranscriptSource extends FetchObjectModeResultDataVideoTranscriptSource_base {
|
|
1269
|
+
}
|
|
1270
|
+
declare const FetchObjectModeResultDataVideoTranscriptKind_base: S.Literal<["manual", "auto"]>;
|
|
1271
|
+
export declare class FetchObjectModeResultDataVideoTranscriptKind extends FetchObjectModeResultDataVideoTranscriptKind_base {
|
|
1272
|
+
}
|
|
1273
|
+
declare const FetchHttpOriginErrorKind_base: S.Literal<["http"]>;
|
|
1274
|
+
export declare class FetchHttpOriginErrorKind extends FetchHttpOriginErrorKind_base {
|
|
1275
|
+
}
|
|
1276
|
+
declare const FetchHttpOriginErrorContentAvailable_base: S.Literal<[false]>;
|
|
1277
|
+
export declare class FetchHttpOriginErrorContentAvailable extends FetchHttpOriginErrorContentAvailable_base {
|
|
1278
|
+
}
|
|
1279
|
+
declare const FetchHttpOriginErrorRedirectLimitReached_base: S.Literal<[true]>;
|
|
1280
|
+
export declare class FetchHttpOriginErrorRedirectLimitReached extends FetchHttpOriginErrorRedirectLimitReached_base {
|
|
1281
|
+
}
|
|
1282
|
+
declare const FetchHttpOriginErrorTag_base: S.Literal<["FetchOriginError"]>;
|
|
1283
|
+
export declare class FetchHttpOriginErrorTag extends FetchHttpOriginErrorTag_base {
|
|
1284
|
+
}
|
|
1285
|
+
declare const FetchHttpOriginError_base: S.Struct<{
|
|
1286
|
+
url: typeof S.String;
|
|
1287
|
+
kind: typeof FetchHttpOriginErrorKind;
|
|
1288
|
+
contentAvailable: S.optionalWith<typeof FetchHttpOriginErrorContentAvailable, {
|
|
1289
|
+
nullable: true;
|
|
1290
|
+
}>;
|
|
1291
|
+
finalUrl: S.optionalWith<typeof S.String, {
|
|
863
1292
|
nullable: true;
|
|
864
1293
|
}>;
|
|
1294
|
+
redirectLimitReached: S.optionalWith<typeof FetchHttpOriginErrorRedirectLimitReached, {
|
|
1295
|
+
nullable: true;
|
|
1296
|
+
}>;
|
|
1297
|
+
originStatusCode: typeof S.Number;
|
|
1298
|
+
retryable: typeof S.Boolean;
|
|
1299
|
+
_tag: typeof FetchHttpOriginErrorTag;
|
|
865
1300
|
}>;
|
|
866
|
-
export declare class
|
|
1301
|
+
export declare class FetchHttpOriginError extends FetchHttpOriginError_base {
|
|
867
1302
|
}
|
|
868
|
-
declare const FetchObjectModeResult_base: S.
|
|
1303
|
+
declare const FetchObjectModeResult_base: S.Struct<{
|
|
869
1304
|
meta: typeof FetchObjectModeMeta;
|
|
870
1305
|
markdown: typeof S.String;
|
|
871
1306
|
json: S.Array$<typeof FetchObjectModeEvidence>;
|
|
@@ -876,7 +1311,7 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
876
1311
|
degraded: S.optionalWith<typeof FetchDegradedInfo, {
|
|
877
1312
|
nullable: true;
|
|
878
1313
|
}>;
|
|
879
|
-
|
|
1314
|
+
highlights: S.optionalWith<typeof FetchHighlightsResult, {
|
|
880
1315
|
nullable: true;
|
|
881
1316
|
}>;
|
|
882
1317
|
screenshot: S.optionalWith<S.Struct<{
|
|
@@ -885,138 +1320,138 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
885
1320
|
}>, {
|
|
886
1321
|
nullable: true;
|
|
887
1322
|
}>;
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
markdown: typeof S.String;
|
|
894
|
-
json: S.Array$<typeof FetchObjectModeEvidence>;
|
|
895
|
-
data: S.optionalWith<S.Struct<{
|
|
896
|
-
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
897
|
-
nullable: true;
|
|
898
|
-
}>;
|
|
899
|
-
degraded: S.optionalWith<typeof FetchDegradedInfo, {
|
|
1323
|
+
document: S.optionalWith<S.Struct<{
|
|
1324
|
+
url: typeof S.String;
|
|
1325
|
+
contentType: typeof S.String;
|
|
1326
|
+
sizeBytes: typeof S.Number;
|
|
1327
|
+
}>, {
|
|
900
1328
|
nullable: true;
|
|
901
1329
|
}>;
|
|
902
|
-
|
|
1330
|
+
usage: S.optionalWith<S.Struct<{
|
|
1331
|
+
documentPages: typeof Int;
|
|
1332
|
+
ocrPages: typeof Int;
|
|
1333
|
+
audioSeconds: S.filter<typeof S.Number>;
|
|
1334
|
+
videos: S.optionalWith<typeof Int, {
|
|
1335
|
+
nullable: true;
|
|
1336
|
+
}>;
|
|
1337
|
+
}>, {
|
|
903
1338
|
nullable: true;
|
|
904
1339
|
}>;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
1340
|
+
video: S.optionalWith<S.Struct<{
|
|
1341
|
+
provider: typeof FetchObjectModeResultDataVideoProvider;
|
|
1342
|
+
videoId: typeof S.String;
|
|
1343
|
+
title: typeof S.String;
|
|
1344
|
+
channel: S.optionalWith<typeof S.String, {
|
|
1345
|
+
nullable: true;
|
|
1346
|
+
}>;
|
|
1347
|
+
channelUrl: S.optionalWith<typeof S.String, {
|
|
1348
|
+
nullable: true;
|
|
1349
|
+
}>;
|
|
1350
|
+
durationSeconds: S.optionalWith<typeof S.Number, {
|
|
1351
|
+
nullable: true;
|
|
1352
|
+
}>;
|
|
1353
|
+
publishedAt: S.optionalWith<typeof S.String, {
|
|
1354
|
+
nullable: true;
|
|
1355
|
+
}>;
|
|
1356
|
+
viewCount: S.optionalWith<typeof S.Number, {
|
|
1357
|
+
nullable: true;
|
|
1358
|
+
}>;
|
|
1359
|
+
language: S.optionalWith<typeof S.String, {
|
|
1360
|
+
nullable: true;
|
|
1361
|
+
}>;
|
|
1362
|
+
transcript: S.Struct<{
|
|
1363
|
+
source: typeof FetchObjectModeResultDataVideoTranscriptSource;
|
|
1364
|
+
kind: S.optionalWith<typeof FetchObjectModeResultDataVideoTranscriptKind, {
|
|
1365
|
+
nullable: true;
|
|
1366
|
+
}>;
|
|
1367
|
+
language: S.optionalWith<typeof S.String, {
|
|
1368
|
+
nullable: true;
|
|
1369
|
+
}>;
|
|
1370
|
+
}>;
|
|
1371
|
+
segments: S.optionalWith<S.Array$<S.Struct<{
|
|
1372
|
+
startSeconds: typeof S.Number;
|
|
1373
|
+
text: typeof S.String;
|
|
1374
|
+
}>>, {
|
|
1375
|
+
nullable: true;
|
|
1376
|
+
}>;
|
|
1377
|
+
chapters: S.optionalWith<S.Array$<S.Struct<{
|
|
1378
|
+
title: typeof S.String;
|
|
1379
|
+
startSeconds: typeof S.Number;
|
|
1380
|
+
}>>, {
|
|
1381
|
+
nullable: true;
|
|
1382
|
+
}>;
|
|
1383
|
+
storyboard: S.optionalWith<S.Struct<{
|
|
1384
|
+
frameWidth: typeof S.Int;
|
|
1385
|
+
frameHeight: typeof S.Int;
|
|
1386
|
+
rows: typeof S.Int;
|
|
1387
|
+
columns: typeof S.Int;
|
|
1388
|
+
sheets: S.Array$<S.Struct<{
|
|
1389
|
+
url: typeof S.String;
|
|
1390
|
+
durationSeconds: typeof S.Number;
|
|
1391
|
+
}>>;
|
|
1392
|
+
}>, {
|
|
1393
|
+
nullable: true;
|
|
1394
|
+
}>;
|
|
908
1395
|
}>, {
|
|
909
1396
|
nullable: true;
|
|
910
1397
|
}>;
|
|
911
1398
|
}>, {
|
|
912
1399
|
nullable: true;
|
|
913
1400
|
}>;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
readonly kind: "data-url";
|
|
919
|
-
readonly placeholder: string;
|
|
920
|
-
readonly archiveKey: string;
|
|
921
|
-
readonly mimeType: string;
|
|
922
|
-
readonly sha256: string;
|
|
923
|
-
readonly bytes: number;
|
|
924
|
-
}[] | undefined;
|
|
925
|
-
readonly degraded?: {
|
|
926
|
-
readonly reason: "modelInputTooLarge" | "pageTooLarge";
|
|
927
|
-
readonly skipped: readonly "hfc"[];
|
|
928
|
-
readonly limitKind: "ast_bytes" | "domsnapshot_bytes" | "hfc_tokens";
|
|
929
|
-
readonly measuredBytes?: number | undefined;
|
|
930
|
-
readonly thresholdBytes?: number | undefined;
|
|
931
|
-
readonly measuredTokens?: number | undefined;
|
|
932
|
-
readonly thresholdTokens?: number | undefined;
|
|
933
|
-
} | undefined;
|
|
934
|
-
readonly search?: {
|
|
935
|
-
readonly query: string;
|
|
936
|
-
readonly snippets: readonly {
|
|
937
|
-
readonly type: "text";
|
|
938
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
939
|
-
readonly text: string;
|
|
940
|
-
readonly score: number;
|
|
941
|
-
readonly location?: {
|
|
942
|
-
readonly evidenceId?: number | undefined;
|
|
943
|
-
readonly markdownBlockId?: string | undefined;
|
|
944
|
-
readonly nodeIds?: readonly number[] | undefined;
|
|
945
|
-
readonly stateJsonSourceId?: number | undefined;
|
|
946
|
-
readonly jsonPath?: string | undefined;
|
|
947
|
-
} | undefined;
|
|
948
|
-
}[];
|
|
949
|
-
readonly meta?: {
|
|
950
|
-
readonly durationMs: number;
|
|
951
|
-
readonly sources: readonly {
|
|
952
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
953
|
-
readonly chunkCount: number;
|
|
954
|
-
readonly batchCount: number;
|
|
955
|
-
readonly ranker: "local_lexical" | "mixedbread" | "zeroentropy";
|
|
956
|
-
readonly fallback: boolean;
|
|
957
|
-
readonly fallbackReason?: "error" | "timeout" | undefined;
|
|
958
|
-
readonly durationMs: number;
|
|
959
|
-
}[];
|
|
960
|
-
} | undefined;
|
|
961
|
-
} | undefined;
|
|
962
|
-
readonly screenshot?: {
|
|
963
|
-
readonly url: string;
|
|
964
|
-
readonly fullPage: boolean;
|
|
965
|
-
} | undefined;
|
|
966
|
-
} | undefined;
|
|
967
|
-
} & {
|
|
968
|
-
readonly json: readonly {
|
|
969
|
-
readonly id: number;
|
|
970
|
-
readonly kind: "inline" | "network";
|
|
971
|
-
readonly role: "apollo-state" | "application-json" | "data-attribute" | "initial-state" | "ld+json" | "network-json" | "network-response" | "next-data" | "nuxt" | "other" | "script-tag";
|
|
972
|
-
readonly score: number;
|
|
973
|
-
readonly url?: string | undefined;
|
|
974
|
-
readonly method?: string | undefined;
|
|
975
|
-
readonly moreTokens?: number | undefined;
|
|
976
|
-
readonly keys?: readonly string[] | undefined;
|
|
977
|
-
readonly urlRedacted?: true | undefined;
|
|
978
|
-
readonly urlOmitted?: "invalid" | "too-long" | "unsafe" | undefined;
|
|
979
|
-
}[];
|
|
980
|
-
} & {
|
|
981
|
-
readonly markdown: string;
|
|
982
|
-
} & {
|
|
983
|
-
readonly meta: {
|
|
984
|
-
readonly version: 1;
|
|
985
|
-
readonly url: string;
|
|
986
|
-
readonly capturedAt: string;
|
|
987
|
-
readonly snapshotId: string;
|
|
988
|
-
readonly lang: string;
|
|
989
|
-
readonly pageType: string;
|
|
990
|
-
readonly playground: string;
|
|
991
|
-
readonly title?: string | undefined;
|
|
992
|
-
readonly finalUrl?: string | undefined;
|
|
993
|
-
readonly canonical?: string | undefined;
|
|
994
|
-
readonly description?: string | undefined;
|
|
995
|
-
readonly author?: string | undefined;
|
|
996
|
-
readonly createdAt?: string | undefined;
|
|
997
|
-
readonly updatedAt?: string | undefined;
|
|
998
|
-
readonly image?: string | undefined;
|
|
999
|
-
readonly paginationNext?: string | undefined;
|
|
1000
|
-
readonly appendix?: {
|
|
1001
|
-
readonly url: string;
|
|
1002
|
-
readonly links: {
|
|
1003
|
-
readonly sameDomain: number;
|
|
1004
|
-
readonly external: number;
|
|
1005
|
-
};
|
|
1006
|
-
} | undefined;
|
|
1007
|
-
readonly stateJson?: {
|
|
1008
|
-
readonly moreTokens: number;
|
|
1009
|
-
} | undefined;
|
|
1010
|
-
readonly markdown?: {
|
|
1011
|
-
readonly url: string;
|
|
1012
|
-
readonly moreTokens?: number | undefined;
|
|
1013
|
-
} | undefined;
|
|
1014
|
-
readonly blocked?: string | undefined;
|
|
1015
|
-
readonly loadingStatus?: string | undefined;
|
|
1016
|
-
};
|
|
1017
|
-
}, {}, {}>;
|
|
1401
|
+
originError: S.optionalWith<typeof FetchHttpOriginError, {
|
|
1402
|
+
nullable: true;
|
|
1403
|
+
}>;
|
|
1404
|
+
}>;
|
|
1018
1405
|
export declare class FetchObjectModeResult extends FetchObjectModeResult_base {
|
|
1019
1406
|
}
|
|
1407
|
+
declare const FetchNetworkOriginErrorKind_base: S.Literal<["dns", "tls", "connectionRefused", "connectionReset", "connectionClosed", "addressUnreachable", "emptyResponse", "connectionTimeout"]>;
|
|
1408
|
+
export declare class FetchNetworkOriginErrorKind extends FetchNetworkOriginErrorKind_base {
|
|
1409
|
+
}
|
|
1410
|
+
declare const FetchNetworkOriginErrorTag_base: S.Literal<["FetchOriginError"]>;
|
|
1411
|
+
export declare class FetchNetworkOriginErrorTag extends FetchNetworkOriginErrorTag_base {
|
|
1412
|
+
}
|
|
1413
|
+
declare const FetchNetworkOriginError_base: S.Struct<{
|
|
1414
|
+
url: typeof S.String;
|
|
1415
|
+
kind: typeof FetchNetworkOriginErrorKind;
|
|
1416
|
+
upstreamError: S.optionalWith<typeof S.String, {
|
|
1417
|
+
nullable: true;
|
|
1418
|
+
}>;
|
|
1419
|
+
retryable: typeof S.Boolean;
|
|
1420
|
+
_tag: typeof FetchNetworkOriginErrorTag;
|
|
1421
|
+
}>;
|
|
1422
|
+
export declare class FetchNetworkOriginError extends FetchNetworkOriginError_base {
|
|
1423
|
+
}
|
|
1424
|
+
declare const FetchHttpOriginRefusalTag_base: S.Literal<["FetchOriginError"]>;
|
|
1425
|
+
export declare class FetchHttpOriginRefusalTag extends FetchHttpOriginRefusalTag_base {
|
|
1426
|
+
}
|
|
1427
|
+
declare const FetchHttpOriginRefusalKind_base: S.Literal<["http"]>;
|
|
1428
|
+
export declare class FetchHttpOriginRefusalKind extends FetchHttpOriginRefusalKind_base {
|
|
1429
|
+
}
|
|
1430
|
+
declare const FetchHttpOriginRefusalContentAvailable_base: S.Literal<[false]>;
|
|
1431
|
+
export declare class FetchHttpOriginRefusalContentAvailable extends FetchHttpOriginRefusalContentAvailable_base {
|
|
1432
|
+
}
|
|
1433
|
+
declare const FetchHttpOriginRefusalRedirectLimitReached_base: S.Literal<[true]>;
|
|
1434
|
+
export declare class FetchHttpOriginRefusalRedirectLimitReached extends FetchHttpOriginRefusalRedirectLimitReached_base {
|
|
1435
|
+
}
|
|
1436
|
+
declare const FetchHttpOriginRefusal_base: S.Struct<{
|
|
1437
|
+
_tag: typeof FetchHttpOriginRefusalTag;
|
|
1438
|
+
url: typeof S.String;
|
|
1439
|
+
kind: typeof FetchHttpOriginRefusalKind;
|
|
1440
|
+
contentAvailable: typeof FetchHttpOriginRefusalContentAvailable;
|
|
1441
|
+
finalUrl: S.optionalWith<typeof S.String, {
|
|
1442
|
+
nullable: true;
|
|
1443
|
+
}>;
|
|
1444
|
+
redirectLimitReached: S.optionalWith<typeof FetchHttpOriginRefusalRedirectLimitReached, {
|
|
1445
|
+
nullable: true;
|
|
1446
|
+
}>;
|
|
1447
|
+
originStatusCode: typeof S.Number;
|
|
1448
|
+
retryable: typeof S.Boolean;
|
|
1449
|
+
}>;
|
|
1450
|
+
export declare class FetchHttpOriginRefusal extends FetchHttpOriginRefusal_base {
|
|
1451
|
+
}
|
|
1452
|
+
declare const FetchFetchJson200_base: S.Union<[typeof FetchObjectModeResult, typeof FetchNetworkOriginError, typeof FetchHttpOriginRefusal]>;
|
|
1453
|
+
export declare class FetchFetchJson200 extends FetchFetchJson200_base {
|
|
1454
|
+
}
|
|
1020
1455
|
declare const FetchFetchJson400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
|
|
1021
1456
|
export declare class FetchFetchJson400 extends FetchFetchJson400_base {
|
|
1022
1457
|
}
|
|
@@ -1032,19 +1467,30 @@ export declare class FetchFetchJson403 extends FetchFetchJson403_base {
|
|
|
1032
1467
|
declare const FetchFetchJson413_base: S.Union<[typeof PayloadTooLarge, typeof FetchPageTooLarge]>;
|
|
1033
1468
|
export declare class FetchFetchJson413 extends FetchFetchJson413_base {
|
|
1034
1469
|
}
|
|
1035
|
-
declare const
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1470
|
+
declare const FetchFetchJson429_base: S.Union<[typeof TooManyRequests, typeof FetchConcurrencyLimitExceeded]>;
|
|
1471
|
+
export declare class FetchFetchJson429 extends FetchFetchJson429_base {
|
|
1472
|
+
}
|
|
1473
|
+
declare const FetchFetchJson502_base: S.Union<[typeof FetchCaptureFailed, typeof FetchNavigationFailed, typeof FetchOriginHttpError]>;
|
|
1474
|
+
export declare class FetchFetchJson502 extends FetchFetchJson502_base {
|
|
1475
|
+
}
|
|
1476
|
+
declare const FetchFetchJson503_base: S.Union<[typeof ServiceUnavailable, typeof FetchDocumentProcessingUnavailable]>;
|
|
1477
|
+
export declare class FetchFetchJson503 extends FetchFetchJson503_base {
|
|
1478
|
+
}
|
|
1479
|
+
declare const FetchBatchedParams_base: S.Struct<{
|
|
1480
|
+
'x-idempotency-key': S.optionalWith<S.filter<S.filter<typeof S.String>>, {
|
|
1481
|
+
nullable: true;
|
|
1047
1482
|
}>;
|
|
1483
|
+
}>;
|
|
1484
|
+
export declare class FetchBatchedParams extends FetchBatchedParams_base {
|
|
1485
|
+
}
|
|
1486
|
+
declare const FetchBatchedRequestIncludeAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
1487
|
+
export declare class FetchBatchedRequestIncludeAppendixMarkers extends FetchBatchedRequestIncludeAppendixMarkers_base {
|
|
1488
|
+
}
|
|
1489
|
+
declare const FetchBatchedRequestDocumentConfigOcr_base: S.Literal<["auto", "never", "always"]>;
|
|
1490
|
+
export declare class FetchBatchedRequestDocumentConfigOcr extends FetchBatchedRequestDocumentConfigOcr_base {
|
|
1491
|
+
}
|
|
1492
|
+
declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
1493
|
+
urls: S.NonEmptyArray<typeof S.String>;
|
|
1048
1494
|
include: S.optionalWith<S.Struct<{
|
|
1049
1495
|
html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1050
1496
|
nullable: true;
|
|
@@ -1092,22 +1538,38 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
1092
1538
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
1093
1539
|
nullable: true;
|
|
1094
1540
|
}>;
|
|
1541
|
+
appendixMarkers: S.optionalWith<typeof FetchBatchedRequestIncludeAppendixMarkers, {
|
|
1542
|
+
nullable: true;
|
|
1543
|
+
default: () => "compact";
|
|
1544
|
+
}>;
|
|
1095
1545
|
}>, {
|
|
1096
1546
|
nullable: true;
|
|
1097
1547
|
}>;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
search: S.Struct<{
|
|
1101
|
-
query: typeof S.String;
|
|
1102
|
-
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1548
|
+
browserConfig: S.optionalWith<S.Struct<{
|
|
1549
|
+
scrollFullPage: S.optionalWith<typeof S.Boolean, {
|
|
1103
1550
|
nullable: true;
|
|
1104
|
-
default: () =>
|
|
1551
|
+
default: () => false;
|
|
1105
1552
|
}>;
|
|
1106
|
-
|
|
1553
|
+
}>, {
|
|
1554
|
+
nullable: true;
|
|
1555
|
+
}>;
|
|
1556
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
1557
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
1107
1558
|
nullable: true;
|
|
1108
|
-
default: () => 0.6;
|
|
1109
1559
|
}>;
|
|
1560
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1561
|
+
nullable: true;
|
|
1562
|
+
default: () => 3600;
|
|
1563
|
+
}>;
|
|
1564
|
+
ocr: S.optionalWith<typeof FetchBatchedRequestDocumentConfigOcr, {
|
|
1565
|
+
nullable: true;
|
|
1566
|
+
default: () => "auto";
|
|
1567
|
+
}>;
|
|
1568
|
+
}>, {
|
|
1569
|
+
nullable: true;
|
|
1110
1570
|
}>;
|
|
1571
|
+
}, S.Struct.Encoded<{
|
|
1572
|
+
urls: S.NonEmptyArray<typeof S.String>;
|
|
1111
1573
|
include: S.optionalWith<S.Struct<{
|
|
1112
1574
|
html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1113
1575
|
nullable: true;
|
|
@@ -1155,10 +1617,47 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
1155
1617
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
1156
1618
|
nullable: true;
|
|
1157
1619
|
}>;
|
|
1620
|
+
appendixMarkers: S.optionalWith<typeof FetchBatchedRequestIncludeAppendixMarkers, {
|
|
1621
|
+
nullable: true;
|
|
1622
|
+
default: () => "compact";
|
|
1623
|
+
}>;
|
|
1624
|
+
}>, {
|
|
1625
|
+
nullable: true;
|
|
1626
|
+
}>;
|
|
1627
|
+
browserConfig: S.optionalWith<S.Struct<{
|
|
1628
|
+
scrollFullPage: S.optionalWith<typeof S.Boolean, {
|
|
1629
|
+
nullable: true;
|
|
1630
|
+
default: () => false;
|
|
1631
|
+
}>;
|
|
1632
|
+
}>, {
|
|
1633
|
+
nullable: true;
|
|
1634
|
+
}>;
|
|
1635
|
+
documentConfig: S.optionalWith<S.Struct<{
|
|
1636
|
+
maxPages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
1637
|
+
nullable: true;
|
|
1638
|
+
}>;
|
|
1639
|
+
maxAudioSeconds: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1640
|
+
nullable: true;
|
|
1641
|
+
default: () => 3600;
|
|
1642
|
+
}>;
|
|
1643
|
+
ocr: S.optionalWith<typeof FetchBatchedRequestDocumentConfigOcr, {
|
|
1644
|
+
nullable: true;
|
|
1645
|
+
default: () => "auto";
|
|
1646
|
+
}>;
|
|
1158
1647
|
}>, {
|
|
1159
1648
|
nullable: true;
|
|
1160
1649
|
}>;
|
|
1161
1650
|
}>, never, {
|
|
1651
|
+
readonly browserConfig?: {
|
|
1652
|
+
readonly scrollFullPage: boolean;
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
} & {
|
|
1655
|
+
readonly documentConfig?: {
|
|
1656
|
+
readonly maxPages?: number | undefined;
|
|
1657
|
+
readonly maxAudioSeconds: number;
|
|
1658
|
+
readonly ocr: "always" | "auto" | "never";
|
|
1659
|
+
} | undefined;
|
|
1660
|
+
} & {
|
|
1162
1661
|
readonly include?: {
|
|
1163
1662
|
readonly html?: boolean | {
|
|
1164
1663
|
readonly [x: string]: unknown;
|
|
@@ -1180,17 +1679,81 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
1180
1679
|
} | undefined;
|
|
1181
1680
|
readonly json: boolean;
|
|
1182
1681
|
readonly appendix?: boolean | undefined;
|
|
1682
|
+
readonly appendixMarkers: "compact" | "detailed" | "off";
|
|
1183
1683
|
} | undefined;
|
|
1184
1684
|
} & {
|
|
1185
|
-
readonly
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1685
|
+
readonly urls: readonly [string, ...string[]];
|
|
1686
|
+
}, {}, {}>;
|
|
1687
|
+
export declare class FetchBatchedRequest extends FetchBatchedRequest_base {
|
|
1688
|
+
}
|
|
1689
|
+
declare const BatchedRun_base: S.Class<BatchedRun, {
|
|
1690
|
+
id: typeof S.String;
|
|
1691
|
+
}, S.Struct.Encoded<{
|
|
1692
|
+
id: typeof S.String;
|
|
1693
|
+
}>, never, {
|
|
1694
|
+
readonly id: string;
|
|
1695
|
+
}, {}, {}>;
|
|
1696
|
+
export declare class BatchedRun extends BatchedRun_base {
|
|
1697
|
+
}
|
|
1698
|
+
declare const FetchBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
|
|
1699
|
+
export declare class FetchBatched400 extends FetchBatched400_base {
|
|
1700
|
+
}
|
|
1701
|
+
declare const FetchBatched403Tag_base: S.Literal<["AccessBlocked"]>;
|
|
1702
|
+
export declare class FetchBatched403Tag extends FetchBatched403Tag_base {
|
|
1703
|
+
}
|
|
1704
|
+
declare const FetchBatched403_base: S.Struct<{
|
|
1705
|
+
organizationId: S.filter<typeof S.String>;
|
|
1706
|
+
blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
|
|
1707
|
+
nullable: true;
|
|
1708
|
+
}>;
|
|
1709
|
+
_tag: typeof FetchBatched403Tag;
|
|
1710
|
+
}>;
|
|
1711
|
+
export declare class FetchBatched403 extends FetchBatched403_base {
|
|
1712
|
+
}
|
|
1713
|
+
declare const BatchedIdempotencyConflictReason_base: S.Literal<["payload_mismatch"]>;
|
|
1714
|
+
export declare class BatchedIdempotencyConflictReason extends BatchedIdempotencyConflictReason_base {
|
|
1715
|
+
}
|
|
1716
|
+
declare const BatchedIdempotencyConflictTag_base: S.Literal<["BatchedIdempotencyConflict"]>;
|
|
1717
|
+
export declare class BatchedIdempotencyConflictTag extends BatchedIdempotencyConflictTag_base {
|
|
1718
|
+
}
|
|
1719
|
+
declare const BatchedIdempotencyConflict_base: S.Class<BatchedIdempotencyConflict, {
|
|
1720
|
+
existingRunId: typeof S.String;
|
|
1721
|
+
reason: typeof BatchedIdempotencyConflictReason;
|
|
1722
|
+
_tag: typeof BatchedIdempotencyConflictTag;
|
|
1723
|
+
}, S.Struct.Encoded<{
|
|
1724
|
+
existingRunId: typeof S.String;
|
|
1725
|
+
reason: typeof BatchedIdempotencyConflictReason;
|
|
1726
|
+
_tag: typeof BatchedIdempotencyConflictTag;
|
|
1727
|
+
}>, never, {
|
|
1728
|
+
readonly _tag: "BatchedIdempotencyConflict";
|
|
1190
1729
|
} & {
|
|
1191
|
-
readonly
|
|
1730
|
+
readonly existingRunId: string;
|
|
1731
|
+
} & {
|
|
1732
|
+
readonly reason: "payload_mismatch";
|
|
1192
1733
|
}, {}, {}>;
|
|
1193
|
-
export declare class
|
|
1734
|
+
export declare class BatchedIdempotencyConflict extends BatchedIdempotencyConflict_base {
|
|
1735
|
+
}
|
|
1736
|
+
declare const FetchGetBatchedParams_base: S.Struct<{
|
|
1737
|
+
limit: S.optionalWith<typeof S.String, {
|
|
1738
|
+
nullable: true;
|
|
1739
|
+
}>;
|
|
1740
|
+
offset: S.optionalWith<typeof S.String, {
|
|
1741
|
+
nullable: true;
|
|
1742
|
+
}>;
|
|
1743
|
+
include: S.optionalWith<typeof S.String, {
|
|
1744
|
+
nullable: true;
|
|
1745
|
+
}>;
|
|
1746
|
+
}>;
|
|
1747
|
+
export declare class FetchGetBatchedParams extends FetchGetBatchedParams_base {
|
|
1748
|
+
}
|
|
1749
|
+
declare const BatchedStatusStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1750
|
+
export declare class BatchedStatusStatus extends BatchedStatusStatus_base {
|
|
1751
|
+
}
|
|
1752
|
+
declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1753
|
+
export declare class BatchedStatusBatchedStatus extends BatchedStatusBatchedStatus_base {
|
|
1754
|
+
}
|
|
1755
|
+
declare const BatchedFetchItemStatus_base: S.Literal<["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"]>;
|
|
1756
|
+
export declare class BatchedFetchItemStatus extends BatchedFetchItemStatus_base {
|
|
1194
1757
|
}
|
|
1195
1758
|
export declare class URL extends S.String {
|
|
1196
1759
|
}
|
|
@@ -1205,173 +1768,583 @@ declare const ResponseInfo_base: S.Struct<{
|
|
|
1205
1768
|
redirectStatusCode: S.optionalWith<typeof S.Number, {
|
|
1206
1769
|
nullable: true;
|
|
1207
1770
|
}>;
|
|
1771
|
+
contentType: S.optionalWith<typeof S.String, {
|
|
1772
|
+
nullable: true;
|
|
1773
|
+
}>;
|
|
1208
1774
|
headers: S.optionalWith<S.Struct<{}>, {
|
|
1209
1775
|
nullable: true;
|
|
1210
1776
|
}>;
|
|
1211
1777
|
}>;
|
|
1212
1778
|
export declare class ResponseInfo extends ResponseInfo_base {
|
|
1213
1779
|
}
|
|
1214
|
-
declare const
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
readonly search: {
|
|
1240
|
-
readonly query: string;
|
|
1241
|
-
readonly snippets: readonly {
|
|
1242
|
-
readonly type: "text";
|
|
1243
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
1244
|
-
readonly text: string;
|
|
1245
|
-
readonly score: number;
|
|
1246
|
-
readonly location?: {
|
|
1247
|
-
readonly evidenceId?: number | undefined;
|
|
1248
|
-
readonly markdownBlockId?: string | undefined;
|
|
1249
|
-
readonly nodeIds?: readonly number[] | undefined;
|
|
1250
|
-
readonly stateJsonSourceId?: number | undefined;
|
|
1251
|
-
readonly jsonPath?: string | undefined;
|
|
1252
|
-
} | undefined;
|
|
1253
|
-
}[];
|
|
1254
|
-
readonly meta?: {
|
|
1255
|
-
readonly durationMs: number;
|
|
1256
|
-
readonly sources: readonly {
|
|
1257
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
1258
|
-
readonly chunkCount: number;
|
|
1259
|
-
readonly batchCount: number;
|
|
1260
|
-
readonly ranker: "local_lexical" | "mixedbread" | "zeroentropy";
|
|
1261
|
-
readonly fallback: boolean;
|
|
1262
|
-
readonly fallbackReason?: "error" | "timeout" | undefined;
|
|
1263
|
-
readonly durationMs: number;
|
|
1264
|
-
}[];
|
|
1265
|
-
} | undefined;
|
|
1266
|
-
};
|
|
1267
|
-
} & {
|
|
1268
|
-
readonly snapshotId: string;
|
|
1269
|
-
}, {}, {}>;
|
|
1270
|
-
export declare class FetchSnapshotSearchResult extends FetchSnapshotSearchResult_base {
|
|
1780
|
+
declare const IconMeta_base: S.Struct<{
|
|
1781
|
+
href: S.filter<typeof S.String>;
|
|
1782
|
+
rel: S.filter<typeof S.String>;
|
|
1783
|
+
type: S.optionalWith<S.filter<typeof S.String>, {
|
|
1784
|
+
nullable: true;
|
|
1785
|
+
}>;
|
|
1786
|
+
sizes: S.optionalWith<S.filter<typeof S.String>, {
|
|
1787
|
+
nullable: true;
|
|
1788
|
+
}>;
|
|
1789
|
+
}>;
|
|
1790
|
+
export declare class IconMeta extends IconMeta_base {
|
|
1791
|
+
}
|
|
1792
|
+
declare const OgImage_base: S.Struct<{
|
|
1793
|
+
url: S.filter<typeof S.String>;
|
|
1794
|
+
width: S.optionalWith<typeof S.Number, {
|
|
1795
|
+
nullable: true;
|
|
1796
|
+
}>;
|
|
1797
|
+
height: S.optionalWith<typeof S.Number, {
|
|
1798
|
+
nullable: true;
|
|
1799
|
+
}>;
|
|
1800
|
+
alt: S.optionalWith<typeof S.String, {
|
|
1801
|
+
nullable: true;
|
|
1802
|
+
}>;
|
|
1803
|
+
}>;
|
|
1804
|
+
export declare class OgImage extends OgImage_base {
|
|
1271
1805
|
}
|
|
1272
|
-
declare const
|
|
1273
|
-
|
|
1806
|
+
declare const OpenGraphMeta_base: S.Struct<{
|
|
1807
|
+
title: S.optionalWith<typeof S.String, {
|
|
1808
|
+
nullable: true;
|
|
1809
|
+
}>;
|
|
1810
|
+
description: S.optionalWith<typeof S.String, {
|
|
1811
|
+
nullable: true;
|
|
1812
|
+
}>;
|
|
1813
|
+
type: S.optionalWith<S.filter<typeof S.String>, {
|
|
1814
|
+
nullable: true;
|
|
1815
|
+
}>;
|
|
1816
|
+
url: S.optionalWith<S.filter<typeof S.String>, {
|
|
1817
|
+
nullable: true;
|
|
1818
|
+
}>;
|
|
1819
|
+
siteName: S.optionalWith<typeof S.String, {
|
|
1820
|
+
nullable: true;
|
|
1821
|
+
}>;
|
|
1822
|
+
locale: S.optionalWith<typeof S.String, {
|
|
1823
|
+
nullable: true;
|
|
1824
|
+
}>;
|
|
1825
|
+
images: S.optionalWith<S.Array$<typeof OgImage>, {
|
|
1826
|
+
nullable: true;
|
|
1827
|
+
}>;
|
|
1828
|
+
}>;
|
|
1829
|
+
export declare class OpenGraphMeta extends OpenGraphMeta_base {
|
|
1274
1830
|
}
|
|
1275
|
-
declare const
|
|
1276
|
-
|
|
1831
|
+
declare const TwitterCardMeta_base: S.Struct<{
|
|
1832
|
+
card: S.optionalWith<S.filter<typeof S.String>, {
|
|
1833
|
+
nullable: true;
|
|
1834
|
+
}>;
|
|
1835
|
+
site: S.optionalWith<typeof S.String, {
|
|
1836
|
+
nullable: true;
|
|
1837
|
+
}>;
|
|
1838
|
+
creator: S.optionalWith<typeof S.String, {
|
|
1839
|
+
nullable: true;
|
|
1840
|
+
}>;
|
|
1841
|
+
title: S.optionalWith<typeof S.String, {
|
|
1842
|
+
nullable: true;
|
|
1843
|
+
}>;
|
|
1844
|
+
description: S.optionalWith<typeof S.String, {
|
|
1845
|
+
nullable: true;
|
|
1846
|
+
}>;
|
|
1847
|
+
image: S.optionalWith<S.filter<typeof S.String>, {
|
|
1848
|
+
nullable: true;
|
|
1849
|
+
}>;
|
|
1850
|
+
}>;
|
|
1851
|
+
export declare class TwitterCardMeta extends TwitterCardMeta_base {
|
|
1277
1852
|
}
|
|
1278
|
-
declare const
|
|
1279
|
-
|
|
1280
|
-
|
|
1853
|
+
declare const PageMeta_base: S.Struct<{
|
|
1854
|
+
title: S.optionalWith<typeof S.String, {
|
|
1855
|
+
nullable: true;
|
|
1856
|
+
}>;
|
|
1857
|
+
description: S.optionalWith<typeof S.String, {
|
|
1858
|
+
nullable: true;
|
|
1859
|
+
}>;
|
|
1860
|
+
canonicalUrl: S.optionalWith<S.filter<typeof S.String>, {
|
|
1861
|
+
nullable: true;
|
|
1862
|
+
}>;
|
|
1863
|
+
language: S.optionalWith<S.filter<typeof S.String>, {
|
|
1864
|
+
nullable: true;
|
|
1865
|
+
}>;
|
|
1866
|
+
charset: S.optionalWith<S.filter<typeof S.String>, {
|
|
1867
|
+
nullable: true;
|
|
1868
|
+
}>;
|
|
1869
|
+
favicon: S.optionalWith<S.filter<typeof S.String>, {
|
|
1870
|
+
nullable: true;
|
|
1871
|
+
}>;
|
|
1872
|
+
icons: S.optionalWith<S.Array$<typeof IconMeta>, {
|
|
1873
|
+
nullable: true;
|
|
1874
|
+
}>;
|
|
1875
|
+
openGraph: S.optionalWith<typeof OpenGraphMeta, {
|
|
1876
|
+
nullable: true;
|
|
1877
|
+
}>;
|
|
1878
|
+
twitter: S.optionalWith<typeof TwitterCardMeta, {
|
|
1281
1879
|
nullable: true;
|
|
1282
1880
|
}>;
|
|
1283
|
-
_tag: typeof FetchFetchSearch403Tag;
|
|
1284
1881
|
}>;
|
|
1285
|
-
export declare class
|
|
1882
|
+
export declare class PageMeta extends PageMeta_base {
|
|
1286
1883
|
}
|
|
1287
1884
|
declare const NonEmptyString_base: S.filter<typeof S.String>;
|
|
1288
1885
|
export declare class NonEmptyString extends NonEmptyString_base {
|
|
1289
1886
|
}
|
|
1290
|
-
declare const
|
|
1291
|
-
export declare class
|
|
1887
|
+
declare const BatchedFetchItemDataVideoProvider_base: S.Literal<["youtube"]>;
|
|
1888
|
+
export declare class BatchedFetchItemDataVideoProvider extends BatchedFetchItemDataVideoProvider_base {
|
|
1292
1889
|
}
|
|
1293
|
-
declare const
|
|
1294
|
-
|
|
1295
|
-
_tag: typeof FetchSnapshotSearchNotFoundTag;
|
|
1296
|
-
}, S.Struct.Encoded<{
|
|
1297
|
-
snapshotId: typeof NonEmptyString;
|
|
1298
|
-
_tag: typeof FetchSnapshotSearchNotFoundTag;
|
|
1299
|
-
}>, never, {
|
|
1300
|
-
readonly _tag: "FetchSnapshotSearchNotFound";
|
|
1301
|
-
} & {
|
|
1302
|
-
readonly snapshotId: string;
|
|
1303
|
-
}, {}, {}>;
|
|
1304
|
-
export declare class FetchSnapshotSearchNotFound extends FetchSnapshotSearchNotFound_base {
|
|
1890
|
+
declare const BatchedFetchItemDataVideoTranscriptSource_base: S.Literal<["captions", "transcription"]>;
|
|
1891
|
+
export declare class BatchedFetchItemDataVideoTranscriptSource extends BatchedFetchItemDataVideoTranscriptSource_base {
|
|
1305
1892
|
}
|
|
1306
|
-
declare const
|
|
1307
|
-
|
|
1893
|
+
declare const BatchedFetchItemDataVideoTranscriptKind_base: S.Literal<["manual", "auto"]>;
|
|
1894
|
+
export declare class BatchedFetchItemDataVideoTranscriptKind extends BatchedFetchItemDataVideoTranscriptKind_base {
|
|
1895
|
+
}
|
|
1896
|
+
declare const FetchLink_base: S.Struct<{
|
|
1897
|
+
url: typeof S.String;
|
|
1898
|
+
text: S.optionalWith<typeof S.String, {
|
|
1308
1899
|
nullable: true;
|
|
1309
1900
|
}>;
|
|
1310
1901
|
}>;
|
|
1311
|
-
export declare class
|
|
1902
|
+
export declare class FetchLink extends FetchLink_base {
|
|
1312
1903
|
}
|
|
1313
|
-
declare const
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1904
|
+
declare const RenderEnginesInfoCapture_base: S.Literal<["rust"]>;
|
|
1905
|
+
export declare class RenderEnginesInfoCapture extends RenderEnginesInfoCapture_base {
|
|
1906
|
+
}
|
|
1907
|
+
declare const RenderEnginesInfoMarkdown_base: S.Literal<["rust"]>;
|
|
1908
|
+
export declare class RenderEnginesInfoMarkdown extends RenderEnginesInfoMarkdown_base {
|
|
1909
|
+
}
|
|
1910
|
+
declare const RenderEnginesInfoTree_base: S.Literal<["rust"]>;
|
|
1911
|
+
export declare class RenderEnginesInfoTree extends RenderEnginesInfoTree_base {
|
|
1912
|
+
}
|
|
1913
|
+
declare const RenderEnginesInfo_base: S.Struct<{
|
|
1914
|
+
capture: S.optionalWith<typeof RenderEnginesInfoCapture, {
|
|
1915
|
+
nullable: true;
|
|
1916
|
+
}>;
|
|
1917
|
+
markdown: S.optionalWith<typeof RenderEnginesInfoMarkdown, {
|
|
1918
|
+
nullable: true;
|
|
1919
|
+
}>;
|
|
1920
|
+
tree: S.optionalWith<typeof RenderEnginesInfoTree, {
|
|
1921
|
+
nullable: true;
|
|
1922
|
+
}>;
|
|
1923
|
+
}>;
|
|
1924
|
+
export declare class RenderEnginesInfo extends RenderEnginesInfo_base {
|
|
1925
|
+
}
|
|
1926
|
+
declare const BatchedFetchItem_base: S.Struct<{
|
|
1927
|
+
status: typeof BatchedFetchItemStatus;
|
|
1928
|
+
data: S.optionalWith<S.Struct<{
|
|
1929
|
+
response: typeof ResponseInfo;
|
|
1930
|
+
meta: S.optionalWith<typeof PageMeta, {
|
|
1317
1931
|
nullable: true;
|
|
1318
1932
|
}>;
|
|
1319
|
-
|
|
1933
|
+
json: S.optionalWith<S.Array$<S.Struct<{}>>, {
|
|
1320
1934
|
nullable: true;
|
|
1321
1935
|
}>;
|
|
1322
|
-
|
|
1323
|
-
|
|
1936
|
+
snapshotId: S.optionalWith<typeof NonEmptyString, {
|
|
1937
|
+
nullable: true;
|
|
1938
|
+
}>;
|
|
1939
|
+
html: S.optionalWith<S.filter<typeof S.String>, {
|
|
1940
|
+
nullable: true;
|
|
1941
|
+
}>;
|
|
1942
|
+
markdown: S.optionalWith<S.filter<typeof S.String>, {
|
|
1943
|
+
nullable: true;
|
|
1944
|
+
}>;
|
|
1945
|
+
screenshot: S.optionalWith<S.Struct<{
|
|
1946
|
+
url: typeof S.String;
|
|
1947
|
+
fullPage: typeof S.Boolean;
|
|
1948
|
+
}>, {
|
|
1949
|
+
nullable: true;
|
|
1950
|
+
}>;
|
|
1951
|
+
document: S.optionalWith<S.Struct<{
|
|
1952
|
+
url: typeof S.String;
|
|
1953
|
+
contentType: typeof S.String;
|
|
1954
|
+
sizeBytes: typeof S.Number;
|
|
1955
|
+
}>, {
|
|
1956
|
+
nullable: true;
|
|
1957
|
+
}>;
|
|
1958
|
+
usage: S.optionalWith<S.Struct<{
|
|
1959
|
+
documentPages: typeof Int;
|
|
1960
|
+
ocrPages: typeof Int;
|
|
1961
|
+
audioSeconds: S.filter<typeof S.Number>;
|
|
1962
|
+
videos: S.optionalWith<typeof Int, {
|
|
1324
1963
|
nullable: true;
|
|
1325
1964
|
}>;
|
|
1326
|
-
}
|
|
1965
|
+
}>, {
|
|
1327
1966
|
nullable: true;
|
|
1328
1967
|
}>;
|
|
1329
|
-
|
|
1330
|
-
|
|
1968
|
+
video: S.optionalWith<S.Struct<{
|
|
1969
|
+
provider: typeof BatchedFetchItemDataVideoProvider;
|
|
1970
|
+
videoId: typeof S.String;
|
|
1971
|
+
title: typeof S.String;
|
|
1972
|
+
channel: S.optionalWith<typeof S.String, {
|
|
1331
1973
|
nullable: true;
|
|
1332
|
-
default: () => true;
|
|
1333
1974
|
}>;
|
|
1334
|
-
|
|
1975
|
+
channelUrl: S.optionalWith<typeof S.String, {
|
|
1335
1976
|
nullable: true;
|
|
1336
1977
|
}>;
|
|
1337
|
-
|
|
1978
|
+
durationSeconds: S.optionalWith<typeof S.Number, {
|
|
1338
1979
|
nullable: true;
|
|
1339
1980
|
}>;
|
|
1340
|
-
|
|
1981
|
+
publishedAt: S.optionalWith<typeof S.String, {
|
|
1982
|
+
nullable: true;
|
|
1983
|
+
}>;
|
|
1984
|
+
viewCount: S.optionalWith<typeof S.Number, {
|
|
1985
|
+
nullable: true;
|
|
1986
|
+
}>;
|
|
1987
|
+
language: S.optionalWith<typeof S.String, {
|
|
1988
|
+
nullable: true;
|
|
1989
|
+
}>;
|
|
1990
|
+
transcript: S.Struct<{
|
|
1991
|
+
source: typeof BatchedFetchItemDataVideoTranscriptSource;
|
|
1992
|
+
kind: S.optionalWith<typeof BatchedFetchItemDataVideoTranscriptKind, {
|
|
1993
|
+
nullable: true;
|
|
1994
|
+
}>;
|
|
1995
|
+
language: S.optionalWith<typeof S.String, {
|
|
1996
|
+
nullable: true;
|
|
1997
|
+
}>;
|
|
1998
|
+
}>;
|
|
1999
|
+
segments: S.optionalWith<S.Array$<S.Struct<{
|
|
2000
|
+
startSeconds: typeof S.Number;
|
|
2001
|
+
text: typeof S.String;
|
|
2002
|
+
}>>, {
|
|
2003
|
+
nullable: true;
|
|
2004
|
+
}>;
|
|
2005
|
+
chapters: S.optionalWith<S.Array$<S.Struct<{
|
|
2006
|
+
title: typeof S.String;
|
|
2007
|
+
startSeconds: typeof S.Number;
|
|
2008
|
+
}>>, {
|
|
2009
|
+
nullable: true;
|
|
2010
|
+
}>;
|
|
2011
|
+
storyboard: S.optionalWith<S.Struct<{
|
|
2012
|
+
frameWidth: typeof S.Int;
|
|
2013
|
+
frameHeight: typeof S.Int;
|
|
2014
|
+
rows: typeof S.Int;
|
|
2015
|
+
columns: typeof S.Int;
|
|
2016
|
+
sheets: S.Array$<S.Struct<{
|
|
2017
|
+
url: typeof S.String;
|
|
2018
|
+
durationSeconds: typeof S.Number;
|
|
2019
|
+
}>>;
|
|
2020
|
+
}>, {
|
|
2021
|
+
nullable: true;
|
|
2022
|
+
}>;
|
|
2023
|
+
}>, {
|
|
1341
2024
|
nullable: true;
|
|
1342
2025
|
}>;
|
|
1343
|
-
|
|
2026
|
+
links: S.optionalWith<S.Array$<typeof FetchLink>, {
|
|
1344
2027
|
nullable: true;
|
|
1345
|
-
default: () => true;
|
|
1346
2028
|
}>;
|
|
1347
|
-
|
|
1348
|
-
includeHeaders: S.optionalWith<typeof S.Boolean, {
|
|
1349
|
-
nullable: true;
|
|
1350
|
-
default: () => false;
|
|
1351
|
-
}>;
|
|
1352
|
-
}>, {
|
|
2029
|
+
appendix: S.optionalWith<S.filter<typeof S.String>, {
|
|
1353
2030
|
nullable: true;
|
|
1354
2031
|
}>;
|
|
1355
|
-
|
|
2032
|
+
renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
|
|
1356
2033
|
nullable: true;
|
|
1357
|
-
default: () => false;
|
|
1358
2034
|
}>;
|
|
1359
|
-
|
|
2035
|
+
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
1360
2036
|
nullable: true;
|
|
1361
2037
|
}>;
|
|
1362
|
-
|
|
1363
|
-
nullable: true;
|
|
1364
|
-
}>;
|
|
1365
|
-
browserConfig: S.optionalWith<S.Struct<{
|
|
1366
|
-
scrollFullPage: S.optionalWith<typeof S.Boolean, {
|
|
2038
|
+
degraded: S.optionalWith<typeof FetchDegradedInfo, {
|
|
1367
2039
|
nullable: true;
|
|
1368
|
-
default: () => false;
|
|
1369
2040
|
}>;
|
|
1370
2041
|
}>, {
|
|
1371
2042
|
nullable: true;
|
|
1372
2043
|
}>;
|
|
2044
|
+
error: S.optionalWith<S.Union<[typeof FetchBlocked, typeof FetchPageTooLarge, typeof FetchNavigationFailed, typeof FetchUnsupportedContentType, typeof FetchOriginHttpError, S.Union<[typeof FetchNetworkOriginError, typeof FetchHttpOriginRefusal]>, typeof FetchDocumentProcessingUnavailable, typeof FetchVideoUnavailable, typeof FetchCaptureFailed, typeof FetchCaptureTimeout, typeof FetchCapacityTimeout]>, {
|
|
2045
|
+
nullable: true;
|
|
2046
|
+
}>;
|
|
2047
|
+
originError: S.optionalWith<typeof FetchHttpOriginError, {
|
|
2048
|
+
nullable: true;
|
|
2049
|
+
}>;
|
|
2050
|
+
}>;
|
|
2051
|
+
export declare class BatchedFetchItem extends BatchedFetchItem_base {
|
|
2052
|
+
}
|
|
2053
|
+
declare const PaginationMeta_base: S.Struct<{
|
|
2054
|
+
total: typeof S.Number;
|
|
2055
|
+
limit: typeof S.Number;
|
|
2056
|
+
offset: typeof S.Number;
|
|
2057
|
+
hasMore: typeof S.Boolean;
|
|
2058
|
+
}>;
|
|
2059
|
+
export declare class PaginationMeta extends PaginationMeta_base {
|
|
2060
|
+
}
|
|
2061
|
+
declare const BatchedStatus_base: S.Class<BatchedStatus, {
|
|
2062
|
+
id: typeof S.String;
|
|
2063
|
+
status: typeof BatchedStatusStatus;
|
|
2064
|
+
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
2065
|
+
totalUrls: typeof S.Number;
|
|
2066
|
+
results: S.Array$<typeof BatchedFetchItem>;
|
|
2067
|
+
pagination: typeof PaginationMeta;
|
|
1373
2068
|
}, S.Struct.Encoded<{
|
|
1374
|
-
|
|
2069
|
+
id: typeof S.String;
|
|
2070
|
+
status: typeof BatchedStatusStatus;
|
|
2071
|
+
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
2072
|
+
totalUrls: typeof S.Number;
|
|
2073
|
+
results: S.Array$<typeof BatchedFetchItem>;
|
|
2074
|
+
pagination: typeof PaginationMeta;
|
|
2075
|
+
}>, never, {
|
|
2076
|
+
readonly batchedStatus: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
2077
|
+
} & {
|
|
2078
|
+
readonly id: string;
|
|
2079
|
+
} & {
|
|
2080
|
+
readonly pagination: {
|
|
2081
|
+
readonly total: number;
|
|
2082
|
+
readonly limit: number;
|
|
2083
|
+
readonly offset: number;
|
|
2084
|
+
readonly hasMore: boolean;
|
|
2085
|
+
};
|
|
2086
|
+
} & {
|
|
2087
|
+
readonly results: readonly {
|
|
2088
|
+
readonly status: "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "SUCCEEDED";
|
|
2089
|
+
readonly data?: {
|
|
2090
|
+
readonly response: {
|
|
2091
|
+
readonly url: string;
|
|
2092
|
+
readonly requestedUrl?: string | undefined;
|
|
2093
|
+
readonly originStatusCode?: number | undefined;
|
|
2094
|
+
readonly redirectStatusCode?: number | undefined;
|
|
2095
|
+
readonly contentType?: string | undefined;
|
|
2096
|
+
readonly headers?: {} | undefined;
|
|
2097
|
+
};
|
|
2098
|
+
readonly meta?: {
|
|
2099
|
+
readonly title?: string | undefined;
|
|
2100
|
+
readonly description?: string | undefined;
|
|
2101
|
+
readonly canonicalUrl?: string | undefined;
|
|
2102
|
+
readonly language?: string | undefined;
|
|
2103
|
+
readonly charset?: string | undefined;
|
|
2104
|
+
readonly favicon?: string | undefined;
|
|
2105
|
+
readonly icons?: readonly {
|
|
2106
|
+
readonly href: string;
|
|
2107
|
+
readonly rel: string;
|
|
2108
|
+
readonly type?: string | undefined;
|
|
2109
|
+
readonly sizes?: string | undefined;
|
|
2110
|
+
}[] | undefined;
|
|
2111
|
+
readonly openGraph?: {
|
|
2112
|
+
readonly title?: string | undefined;
|
|
2113
|
+
readonly description?: string | undefined;
|
|
2114
|
+
readonly type?: string | undefined;
|
|
2115
|
+
readonly url?: string | undefined;
|
|
2116
|
+
readonly siteName?: string | undefined;
|
|
2117
|
+
readonly locale?: string | undefined;
|
|
2118
|
+
readonly images?: readonly {
|
|
2119
|
+
readonly url: string;
|
|
2120
|
+
readonly width?: number | undefined;
|
|
2121
|
+
readonly height?: number | undefined;
|
|
2122
|
+
readonly alt?: string | undefined;
|
|
2123
|
+
}[] | undefined;
|
|
2124
|
+
} | undefined;
|
|
2125
|
+
readonly twitter?: {
|
|
2126
|
+
readonly card?: string | undefined;
|
|
2127
|
+
readonly site?: string | undefined;
|
|
2128
|
+
readonly creator?: string | undefined;
|
|
2129
|
+
readonly title?: string | undefined;
|
|
2130
|
+
readonly description?: string | undefined;
|
|
2131
|
+
readonly image?: string | undefined;
|
|
2132
|
+
} | undefined;
|
|
2133
|
+
} | undefined;
|
|
2134
|
+
readonly json?: readonly {}[] | undefined;
|
|
2135
|
+
readonly snapshotId?: string | undefined;
|
|
2136
|
+
readonly html?: string | undefined;
|
|
2137
|
+
readonly markdown?: string | undefined;
|
|
2138
|
+
readonly screenshot?: {
|
|
2139
|
+
readonly url: string;
|
|
2140
|
+
readonly fullPage: boolean;
|
|
2141
|
+
} | undefined;
|
|
2142
|
+
readonly document?: {
|
|
2143
|
+
readonly url: string;
|
|
2144
|
+
readonly contentType: string;
|
|
2145
|
+
readonly sizeBytes: number;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
readonly usage?: {
|
|
2148
|
+
readonly documentPages: number;
|
|
2149
|
+
readonly ocrPages: number;
|
|
2150
|
+
readonly audioSeconds: number;
|
|
2151
|
+
readonly videos?: number | undefined;
|
|
2152
|
+
} | undefined;
|
|
2153
|
+
readonly video?: {
|
|
2154
|
+
readonly provider: "youtube";
|
|
2155
|
+
readonly videoId: string;
|
|
2156
|
+
readonly title: string;
|
|
2157
|
+
readonly channel?: string | undefined;
|
|
2158
|
+
readonly channelUrl?: string | undefined;
|
|
2159
|
+
readonly durationSeconds?: number | undefined;
|
|
2160
|
+
readonly publishedAt?: string | undefined;
|
|
2161
|
+
readonly viewCount?: number | undefined;
|
|
2162
|
+
readonly language?: string | undefined;
|
|
2163
|
+
readonly transcript: {
|
|
2164
|
+
readonly source: "captions" | "transcription";
|
|
2165
|
+
readonly kind?: "auto" | "manual" | undefined;
|
|
2166
|
+
readonly language?: string | undefined;
|
|
2167
|
+
};
|
|
2168
|
+
readonly segments?: readonly {
|
|
2169
|
+
readonly startSeconds: number;
|
|
2170
|
+
readonly text: string;
|
|
2171
|
+
}[] | undefined;
|
|
2172
|
+
readonly chapters?: readonly {
|
|
2173
|
+
readonly title: string;
|
|
2174
|
+
readonly startSeconds: number;
|
|
2175
|
+
}[] | undefined;
|
|
2176
|
+
readonly storyboard?: {
|
|
2177
|
+
readonly frameWidth: number;
|
|
2178
|
+
readonly frameHeight: number;
|
|
2179
|
+
readonly rows: number;
|
|
2180
|
+
readonly columns: number;
|
|
2181
|
+
readonly sheets: readonly {
|
|
2182
|
+
readonly url: string;
|
|
2183
|
+
readonly durationSeconds: number;
|
|
2184
|
+
}[];
|
|
2185
|
+
} | undefined;
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
readonly links?: readonly {
|
|
2188
|
+
readonly url: string;
|
|
2189
|
+
readonly text?: string | undefined;
|
|
2190
|
+
}[] | undefined;
|
|
2191
|
+
readonly appendix?: string | undefined;
|
|
2192
|
+
readonly renderEngines?: {
|
|
2193
|
+
readonly capture?: "rust" | undefined;
|
|
2194
|
+
readonly markdown?: "rust" | undefined;
|
|
2195
|
+
readonly tree?: "rust" | undefined;
|
|
2196
|
+
} | undefined;
|
|
2197
|
+
readonly assets?: readonly {
|
|
2198
|
+
readonly id: string;
|
|
2199
|
+
readonly kind: "data-url";
|
|
2200
|
+
readonly placeholder: string;
|
|
2201
|
+
readonly archiveKey: string;
|
|
2202
|
+
readonly mimeType: string;
|
|
2203
|
+
readonly sha256: string;
|
|
2204
|
+
readonly bytes: number;
|
|
2205
|
+
}[] | undefined;
|
|
2206
|
+
readonly degraded?: {
|
|
2207
|
+
readonly reason: "modelInputTooLarge" | "pageTooLarge";
|
|
2208
|
+
readonly skipped: readonly "hfc"[];
|
|
2209
|
+
readonly limitKind: "ast_bytes" | "document_frame_bytes" | "domsnapshot_bytes" | "hfc_tokens";
|
|
2210
|
+
readonly measuredBytes?: number | undefined;
|
|
2211
|
+
readonly thresholdBytes?: number | undefined;
|
|
2212
|
+
readonly measuredTokens?: number | undefined;
|
|
2213
|
+
readonly thresholdTokens?: number | undefined;
|
|
2214
|
+
} | undefined;
|
|
2215
|
+
} | undefined;
|
|
2216
|
+
readonly error?: FetchCapacityTimeout | FetchCaptureTimeout | FetchUnsupportedContentType | FetchVideoUnavailable | {
|
|
2217
|
+
readonly url: string;
|
|
2218
|
+
readonly blockedType?: string | undefined;
|
|
2219
|
+
readonly _tag: "FetchBlocked";
|
|
2220
|
+
} | {
|
|
2221
|
+
readonly url: string;
|
|
2222
|
+
readonly limitKind?: "ast_bytes" | "audio_seconds" | "document_frame_bytes" | "document_pages" | "domsnapshot_bytes" | "transfer_bytes" | undefined;
|
|
2223
|
+
readonly limitBytes?: number | undefined;
|
|
2224
|
+
readonly measuredBytes?: number | undefined;
|
|
2225
|
+
readonly limit?: number | undefined;
|
|
2226
|
+
readonly measured?: number | undefined;
|
|
2227
|
+
readonly _tag: "FetchPageTooLarge";
|
|
2228
|
+
} | {
|
|
2229
|
+
readonly url: string;
|
|
2230
|
+
readonly failureType: "capabilityFailed" | "pageNeverSettled";
|
|
2231
|
+
readonly retryable: false;
|
|
2232
|
+
readonly _tag: "FetchCaptureFailed";
|
|
2233
|
+
} | {
|
|
2234
|
+
readonly url: string;
|
|
2235
|
+
readonly failureType: "browserInternalDocument";
|
|
2236
|
+
readonly retryable: false;
|
|
2237
|
+
readonly _tag: "FetchNavigationFailed";
|
|
2238
|
+
} | {
|
|
2239
|
+
readonly url: string;
|
|
2240
|
+
readonly statusCode: number;
|
|
2241
|
+
readonly contentType?: string | undefined;
|
|
2242
|
+
readonly _tag: "FetchOriginHttpError";
|
|
2243
|
+
} | {
|
|
2244
|
+
readonly url: string;
|
|
2245
|
+
readonly operation: "ocr" | "transcription" | "video";
|
|
2246
|
+
readonly message: string;
|
|
2247
|
+
readonly _tag: "FetchDocumentProcessingUnavailable";
|
|
2248
|
+
} | {
|
|
2249
|
+
readonly url: string;
|
|
2250
|
+
readonly kind: "addressUnreachable" | "connectionClosed" | "connectionRefused" | "connectionReset" | "connectionTimeout" | "dns" | "emptyResponse" | "tls";
|
|
2251
|
+
readonly upstreamError?: string | undefined;
|
|
2252
|
+
readonly retryable: boolean;
|
|
2253
|
+
readonly _tag: "FetchOriginError";
|
|
2254
|
+
} | {
|
|
2255
|
+
readonly _tag: "FetchOriginError";
|
|
2256
|
+
readonly url: string;
|
|
2257
|
+
readonly kind: "http";
|
|
2258
|
+
readonly contentAvailable: false;
|
|
2259
|
+
readonly finalUrl?: string | undefined;
|
|
2260
|
+
readonly redirectLimitReached?: true | undefined;
|
|
2261
|
+
readonly originStatusCode: number;
|
|
2262
|
+
readonly retryable: boolean;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
readonly originError?: {
|
|
2265
|
+
readonly url: string;
|
|
2266
|
+
readonly kind: "http";
|
|
2267
|
+
readonly contentAvailable?: false | undefined;
|
|
2268
|
+
readonly finalUrl?: string | undefined;
|
|
2269
|
+
readonly redirectLimitReached?: true | undefined;
|
|
2270
|
+
readonly originStatusCode: number;
|
|
2271
|
+
readonly retryable: boolean;
|
|
2272
|
+
readonly _tag: "FetchOriginError";
|
|
2273
|
+
} | undefined;
|
|
2274
|
+
}[];
|
|
2275
|
+
} & {
|
|
2276
|
+
readonly status: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
2277
|
+
} & {
|
|
2278
|
+
readonly totalUrls: number;
|
|
2279
|
+
}, {}, {}>;
|
|
2280
|
+
export declare class BatchedStatus extends BatchedStatus_base {
|
|
2281
|
+
}
|
|
2282
|
+
declare const BatchedIncludeUnsupportedTag_base: S.Literal<["BatchedIncludeUnsupported"]>;
|
|
2283
|
+
export declare class BatchedIncludeUnsupportedTag extends BatchedIncludeUnsupportedTag_base {
|
|
2284
|
+
}
|
|
2285
|
+
declare const BatchedIncludeUnsupported_base: S.Struct<{
|
|
2286
|
+
unsupportedFields: S.Array$<typeof S.String>;
|
|
2287
|
+
_tag: typeof BatchedIncludeUnsupportedTag;
|
|
2288
|
+
}>;
|
|
2289
|
+
export declare class BatchedIncludeUnsupported extends BatchedIncludeUnsupported_base {
|
|
2290
|
+
}
|
|
2291
|
+
declare const FetchGetBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BatchedIncludeUnsupported]>;
|
|
2292
|
+
export declare class FetchGetBatched400 extends FetchGetBatched400_base {
|
|
2293
|
+
}
|
|
2294
|
+
declare const BatchedCancellationStatus_base: S.Literal<["CANCELLING", "CANCELLED"]>;
|
|
2295
|
+
export declare class BatchedCancellationStatus extends BatchedCancellationStatus_base {
|
|
2296
|
+
}
|
|
2297
|
+
declare const BatchedCancellation_base: S.Class<BatchedCancellation, {
|
|
2298
|
+
id: typeof S.String;
|
|
2299
|
+
status: typeof BatchedCancellationStatus;
|
|
2300
|
+
}, S.Struct.Encoded<{
|
|
2301
|
+
id: typeof S.String;
|
|
2302
|
+
status: typeof BatchedCancellationStatus;
|
|
2303
|
+
}>, never, {
|
|
2304
|
+
readonly id: string;
|
|
2305
|
+
} & {
|
|
2306
|
+
readonly status: "CANCELLED" | "CANCELLING";
|
|
2307
|
+
}, {}, {}>;
|
|
2308
|
+
export declare class BatchedCancellation extends BatchedCancellation_base {
|
|
2309
|
+
}
|
|
2310
|
+
declare const BatchedCancellationConflictStatus_base: S.Literal<["COMPLETED", "FAILED"]>;
|
|
2311
|
+
export declare class BatchedCancellationConflictStatus extends BatchedCancellationConflictStatus_base {
|
|
2312
|
+
}
|
|
2313
|
+
declare const BatchedCancellationConflictTag_base: S.Literal<["BatchedCancellationConflict"]>;
|
|
2314
|
+
export declare class BatchedCancellationConflictTag extends BatchedCancellationConflictTag_base {
|
|
2315
|
+
}
|
|
2316
|
+
declare const BatchedCancellationConflict_base: S.Class<BatchedCancellationConflict, {
|
|
2317
|
+
id: typeof S.String;
|
|
2318
|
+
status: typeof BatchedCancellationConflictStatus;
|
|
2319
|
+
_tag: typeof BatchedCancellationConflictTag;
|
|
2320
|
+
}, S.Struct.Encoded<{
|
|
2321
|
+
id: typeof S.String;
|
|
2322
|
+
status: typeof BatchedCancellationConflictStatus;
|
|
2323
|
+
_tag: typeof BatchedCancellationConflictTag;
|
|
2324
|
+
}>, never, {
|
|
2325
|
+
readonly _tag: "BatchedCancellationConflict";
|
|
2326
|
+
} & {
|
|
2327
|
+
readonly id: string;
|
|
2328
|
+
} & {
|
|
2329
|
+
readonly status: "COMPLETED" | "FAILED";
|
|
2330
|
+
}, {}, {}>;
|
|
2331
|
+
export declare class BatchedCancellationConflict extends BatchedCancellationConflict_base {
|
|
2332
|
+
}
|
|
2333
|
+
declare const SnapshotHighlightsInputIncludeAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
|
|
2334
|
+
export declare class SnapshotHighlightsInputIncludeAppendixMarkers extends SnapshotHighlightsInputIncludeAppendixMarkers_base {
|
|
2335
|
+
}
|
|
2336
|
+
declare const SnapshotHighlightsInput_base: S.Class<SnapshotHighlightsInput, {
|
|
2337
|
+
highlights: S.Struct<{
|
|
2338
|
+
query: typeof S.String;
|
|
2339
|
+
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2340
|
+
nullable: true;
|
|
2341
|
+
default: () => 5;
|
|
2342
|
+
}>;
|
|
2343
|
+
minScore: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2344
|
+
nullable: true;
|
|
2345
|
+
default: () => 0.6;
|
|
2346
|
+
}>;
|
|
2347
|
+
}>;
|
|
1375
2348
|
include: S.optionalWith<S.Struct<{
|
|
1376
2349
|
html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1377
2350
|
nullable: true;
|
|
@@ -1419,25 +2392,83 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1419
2392
|
appendix: S.optionalWith<typeof S.Boolean, {
|
|
1420
2393
|
nullable: true;
|
|
1421
2394
|
}>;
|
|
2395
|
+
appendixMarkers: S.optionalWith<typeof SnapshotHighlightsInputIncludeAppendixMarkers, {
|
|
2396
|
+
nullable: true;
|
|
2397
|
+
default: () => "compact";
|
|
2398
|
+
}>;
|
|
1422
2399
|
}>, {
|
|
1423
2400
|
nullable: true;
|
|
1424
2401
|
}>;
|
|
1425
|
-
|
|
1426
|
-
|
|
2402
|
+
}, S.Struct.Encoded<{
|
|
2403
|
+
highlights: S.Struct<{
|
|
2404
|
+
query: typeof S.String;
|
|
2405
|
+
maxResults: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1427
2406
|
nullable: true;
|
|
1428
|
-
default: () =>
|
|
2407
|
+
default: () => 5;
|
|
2408
|
+
}>;
|
|
2409
|
+
minScore: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2410
|
+
nullable: true;
|
|
2411
|
+
default: () => 0.6;
|
|
1429
2412
|
}>;
|
|
1430
|
-
}>, {
|
|
1431
|
-
nullable: true;
|
|
1432
2413
|
}>;
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
2414
|
+
include: S.optionalWith<S.Struct<{
|
|
2415
|
+
html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
2416
|
+
nullable: true;
|
|
2417
|
+
}>;
|
|
2418
|
+
markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
2419
|
+
nullable: true;
|
|
2420
|
+
}>;
|
|
2421
|
+
screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
2422
|
+
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
2423
|
+
nullable: true;
|
|
2424
|
+
}>;
|
|
2425
|
+
}>]>, {
|
|
2426
|
+
nullable: true;
|
|
2427
|
+
}>;
|
|
2428
|
+
links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
2429
|
+
sameDomainOnly: S.optionalWith<typeof S.Boolean, {
|
|
2430
|
+
nullable: true;
|
|
2431
|
+
default: () => true;
|
|
2432
|
+
}>;
|
|
2433
|
+
includePatterns: S.optionalWith<S.Array$<typeof S.String>, {
|
|
2434
|
+
nullable: true;
|
|
2435
|
+
}>;
|
|
2436
|
+
excludePatterns: S.optionalWith<S.Array$<typeof S.String>, {
|
|
2437
|
+
nullable: true;
|
|
2438
|
+
}>;
|
|
2439
|
+
}>]>, {
|
|
2440
|
+
nullable: true;
|
|
2441
|
+
}>;
|
|
2442
|
+
meta: S.optionalWith<typeof S.Boolean, {
|
|
2443
|
+
nullable: true;
|
|
2444
|
+
default: () => true;
|
|
2445
|
+
}>;
|
|
2446
|
+
response: S.optionalWith<S.Struct<{
|
|
2447
|
+
includeHeaders: S.optionalWith<typeof S.Boolean, {
|
|
2448
|
+
nullable: true;
|
|
2449
|
+
default: () => false;
|
|
2450
|
+
}>;
|
|
2451
|
+
}>, {
|
|
2452
|
+
nullable: true;
|
|
2453
|
+
}>;
|
|
2454
|
+
json: S.optionalWith<typeof S.Boolean, {
|
|
2455
|
+
nullable: true;
|
|
2456
|
+
default: () => false;
|
|
2457
|
+
}>;
|
|
2458
|
+
appendix: S.optionalWith<typeof S.Boolean, {
|
|
2459
|
+
nullable: true;
|
|
2460
|
+
}>;
|
|
2461
|
+
appendixMarkers: S.optionalWith<typeof SnapshotHighlightsInputIncludeAppendixMarkers, {
|
|
2462
|
+
nullable: true;
|
|
2463
|
+
default: () => "compact";
|
|
2464
|
+
}>;
|
|
2465
|
+
}>, {
|
|
2466
|
+
nullable: true;
|
|
2467
|
+
}>;
|
|
2468
|
+
}>, never, {
|
|
2469
|
+
readonly include?: {
|
|
2470
|
+
readonly html?: boolean | {
|
|
2471
|
+
readonly [x: string]: unknown;
|
|
1441
2472
|
} | undefined;
|
|
1442
2473
|
readonly markdown?: boolean | {
|
|
1443
2474
|
readonly [x: string]: unknown;
|
|
@@ -1456,481 +2487,206 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1456
2487
|
} | undefined;
|
|
1457
2488
|
readonly json: boolean;
|
|
1458
2489
|
readonly appendix?: boolean | undefined;
|
|
2490
|
+
readonly appendixMarkers: "compact" | "detailed" | "off";
|
|
1459
2491
|
} | undefined;
|
|
1460
2492
|
} & {
|
|
1461
|
-
readonly
|
|
2493
|
+
readonly highlights: {
|
|
2494
|
+
readonly query: string;
|
|
2495
|
+
readonly maxResults: number;
|
|
2496
|
+
readonly minScore: number;
|
|
2497
|
+
};
|
|
1462
2498
|
}, {}, {}>;
|
|
1463
|
-
export declare class
|
|
2499
|
+
export declare class SnapshotHighlightsInput extends SnapshotHighlightsInput_base {
|
|
1464
2500
|
}
|
|
1465
|
-
declare const
|
|
1466
|
-
|
|
2501
|
+
declare const FetchSnapshotHighlightsResult_base: S.Class<FetchSnapshotHighlightsResult, {
|
|
2502
|
+
snapshotId: S.filter<typeof S.String>;
|
|
2503
|
+
response: typeof ResponseInfo;
|
|
2504
|
+
highlights: typeof FetchHighlightsResult;
|
|
2505
|
+
durationMs: S.filter<typeof S.Number>;
|
|
2506
|
+
playground: typeof S.String;
|
|
1467
2507
|
}, S.Struct.Encoded<{
|
|
1468
|
-
|
|
2508
|
+
snapshotId: S.filter<typeof S.String>;
|
|
2509
|
+
response: typeof ResponseInfo;
|
|
2510
|
+
highlights: typeof FetchHighlightsResult;
|
|
2511
|
+
durationMs: S.filter<typeof S.Number>;
|
|
2512
|
+
playground: typeof S.String;
|
|
1469
2513
|
}>, never, {
|
|
1470
|
-
readonly
|
|
2514
|
+
readonly durationMs: number;
|
|
2515
|
+
} & {
|
|
2516
|
+
readonly highlights: {
|
|
2517
|
+
readonly query: string;
|
|
2518
|
+
readonly snippets: readonly {
|
|
2519
|
+
readonly type: "text";
|
|
2520
|
+
readonly source: "appendix" | "markdown" | "statejson";
|
|
2521
|
+
readonly text: string;
|
|
2522
|
+
readonly score: number;
|
|
2523
|
+
readonly location?: {
|
|
2524
|
+
readonly evidenceId?: number | undefined;
|
|
2525
|
+
readonly markdownBlockId?: string | undefined;
|
|
2526
|
+
readonly nodeIds?: readonly number[] | undefined;
|
|
2527
|
+
readonly stateJsonSourceId?: number | undefined;
|
|
2528
|
+
readonly jsonPath?: string | undefined;
|
|
2529
|
+
} | undefined;
|
|
2530
|
+
}[];
|
|
2531
|
+
readonly meta?: {
|
|
2532
|
+
readonly durationMs: number;
|
|
2533
|
+
readonly sources: readonly {
|
|
2534
|
+
readonly source: "appendix" | "markdown" | "statejson";
|
|
2535
|
+
readonly chunkCount: number;
|
|
2536
|
+
readonly batchCount: number;
|
|
2537
|
+
readonly ranker: "local_lexical" | "mixedbread" | "zeroentropy";
|
|
2538
|
+
readonly fallback: boolean;
|
|
2539
|
+
readonly fallbackReason?: "error" | "timeout" | undefined;
|
|
2540
|
+
readonly durationMs: number;
|
|
2541
|
+
}[];
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
};
|
|
2544
|
+
} & {
|
|
2545
|
+
readonly playground: string;
|
|
2546
|
+
} & {
|
|
2547
|
+
readonly response: {
|
|
2548
|
+
readonly url: string;
|
|
2549
|
+
readonly requestedUrl?: string | undefined;
|
|
2550
|
+
readonly originStatusCode?: number | undefined;
|
|
2551
|
+
readonly redirectStatusCode?: number | undefined;
|
|
2552
|
+
readonly contentType?: string | undefined;
|
|
2553
|
+
readonly headers?: {} | undefined;
|
|
2554
|
+
};
|
|
2555
|
+
} & {
|
|
2556
|
+
readonly snapshotId: string;
|
|
1471
2557
|
}, {}, {}>;
|
|
1472
|
-
export declare class
|
|
2558
|
+
export declare class FetchSnapshotHighlightsResult extends FetchSnapshotHighlightsResult_base {
|
|
1473
2559
|
}
|
|
1474
|
-
declare const
|
|
1475
|
-
export declare class
|
|
2560
|
+
declare const SnapshotsHighlights400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
|
|
2561
|
+
export declare class SnapshotsHighlights400 extends SnapshotsHighlights400_base {
|
|
1476
2562
|
}
|
|
1477
|
-
declare const
|
|
1478
|
-
export declare class
|
|
2563
|
+
declare const SnapshotsHighlights403Tag_base: S.Literal<["AccessBlocked"]>;
|
|
2564
|
+
export declare class SnapshotsHighlights403Tag extends SnapshotsHighlights403Tag_base {
|
|
1479
2565
|
}
|
|
1480
|
-
declare const
|
|
2566
|
+
declare const SnapshotsHighlights403_base: S.Struct<{
|
|
1481
2567
|
organizationId: S.filter<typeof S.String>;
|
|
1482
2568
|
blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
|
|
1483
2569
|
nullable: true;
|
|
1484
2570
|
}>;
|
|
1485
|
-
_tag: typeof
|
|
2571
|
+
_tag: typeof SnapshotsHighlights403Tag;
|
|
1486
2572
|
}>;
|
|
1487
|
-
export declare class
|
|
1488
|
-
}
|
|
1489
|
-
declare const BatchedIdempotencyConflictReason_base: S.Literal<["payload_mismatch"]>;
|
|
1490
|
-
export declare class BatchedIdempotencyConflictReason extends BatchedIdempotencyConflictReason_base {
|
|
2573
|
+
export declare class SnapshotsHighlights403 extends SnapshotsHighlights403_base {
|
|
1491
2574
|
}
|
|
1492
|
-
declare const
|
|
1493
|
-
export declare class
|
|
2575
|
+
declare const FetchSnapshotHighlightsNotFoundTag_base: S.Literal<["FetchSnapshotHighlightsNotFound"]>;
|
|
2576
|
+
export declare class FetchSnapshotHighlightsNotFoundTag extends FetchSnapshotHighlightsNotFoundTag_base {
|
|
1494
2577
|
}
|
|
1495
|
-
declare const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
_tag: typeof BatchedIdempotencyConflictTag;
|
|
2578
|
+
declare const FetchSnapshotHighlightsNotFound_base: S.Class<FetchSnapshotHighlightsNotFound, {
|
|
2579
|
+
snapshotId: typeof NonEmptyString;
|
|
2580
|
+
_tag: typeof FetchSnapshotHighlightsNotFoundTag;
|
|
1499
2581
|
}, S.Struct.Encoded<{
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
_tag: typeof BatchedIdempotencyConflictTag;
|
|
2582
|
+
snapshotId: typeof NonEmptyString;
|
|
2583
|
+
_tag: typeof FetchSnapshotHighlightsNotFoundTag;
|
|
1503
2584
|
}>, never, {
|
|
1504
|
-
readonly _tag: "
|
|
1505
|
-
} & {
|
|
1506
|
-
readonly existingRunId: string;
|
|
2585
|
+
readonly _tag: "FetchSnapshotHighlightsNotFound";
|
|
1507
2586
|
} & {
|
|
1508
|
-
readonly
|
|
2587
|
+
readonly snapshotId: string;
|
|
1509
2588
|
}, {}, {}>;
|
|
1510
|
-
export declare class
|
|
1511
|
-
}
|
|
1512
|
-
declare const FetchGetBatchedParams_base: S.Struct<{
|
|
1513
|
-
limit: S.optionalWith<typeof S.String, {
|
|
1514
|
-
nullable: true;
|
|
1515
|
-
}>;
|
|
1516
|
-
offset: S.optionalWith<typeof S.String, {
|
|
1517
|
-
nullable: true;
|
|
1518
|
-
}>;
|
|
1519
|
-
include: S.optionalWith<typeof S.String, {
|
|
1520
|
-
nullable: true;
|
|
1521
|
-
}>;
|
|
1522
|
-
}>;
|
|
1523
|
-
export declare class FetchGetBatchedParams extends FetchGetBatchedParams_base {
|
|
2589
|
+
export declare class FetchSnapshotHighlightsNotFound extends FetchSnapshotHighlightsNotFound_base {
|
|
1524
2590
|
}
|
|
1525
|
-
declare const
|
|
1526
|
-
export declare class
|
|
1527
|
-
}
|
|
1528
|
-
declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1529
|
-
export declare class BatchedStatusBatchedStatus extends BatchedStatusBatchedStatus_base {
|
|
2591
|
+
declare const SnapshotsHighlights429_base: S.Union<[typeof TooManyRequests, typeof FetchConcurrencyLimitExceeded]>;
|
|
2592
|
+
export declare class SnapshotsHighlights429 extends SnapshotsHighlights429_base {
|
|
1530
2593
|
}
|
|
1531
|
-
declare const
|
|
1532
|
-
export declare class
|
|
2594
|
+
declare const PublicSnapshotsGetCatalogParamsFormat_base: S.Literal<["json", "markdown"]>;
|
|
2595
|
+
export declare class PublicSnapshotsGetCatalogParamsFormat extends PublicSnapshotsGetCatalogParamsFormat_base {
|
|
1533
2596
|
}
|
|
1534
|
-
declare const
|
|
1535
|
-
|
|
1536
|
-
rel: S.filter<typeof S.String>;
|
|
1537
|
-
type: S.optionalWith<S.filter<typeof S.String>, {
|
|
1538
|
-
nullable: true;
|
|
1539
|
-
}>;
|
|
1540
|
-
sizes: S.optionalWith<S.filter<typeof S.String>, {
|
|
2597
|
+
declare const PublicSnapshotsGetCatalogParams_base: S.Struct<{
|
|
2598
|
+
format: S.optionalWith<typeof PublicSnapshotsGetCatalogParamsFormat, {
|
|
1541
2599
|
nullable: true;
|
|
1542
2600
|
}>;
|
|
1543
2601
|
}>;
|
|
1544
|
-
export declare class
|
|
2602
|
+
export declare class PublicSnapshotsGetCatalogParams extends PublicSnapshotsGetCatalogParams_base {
|
|
1545
2603
|
}
|
|
1546
|
-
declare const
|
|
1547
|
-
|
|
1548
|
-
width: S.optionalWith<typeof S.Number, {
|
|
1549
|
-
nullable: true;
|
|
1550
|
-
}>;
|
|
1551
|
-
height: S.optionalWith<typeof S.Number, {
|
|
1552
|
-
nullable: true;
|
|
1553
|
-
}>;
|
|
1554
|
-
alt: S.optionalWith<typeof S.String, {
|
|
1555
|
-
nullable: true;
|
|
1556
|
-
}>;
|
|
1557
|
-
}>;
|
|
1558
|
-
export declare class OgImage extends OgImage_base {
|
|
2604
|
+
declare const SnapshotCatalogVersion_base: S.Literal<[1]>;
|
|
2605
|
+
export declare class SnapshotCatalogVersion extends SnapshotCatalogVersion_base {
|
|
1559
2606
|
}
|
|
1560
|
-
declare const
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
nullable: true;
|
|
1569
|
-
}>;
|
|
1570
|
-
url: S.optionalWith<S.filter<typeof S.String>, {
|
|
1571
|
-
nullable: true;
|
|
2607
|
+
declare const SnapshotCatalog_base: S.Class<SnapshotCatalog, {
|
|
2608
|
+
version: typeof SnapshotCatalogVersion;
|
|
2609
|
+
snapshotId: typeof S.String;
|
|
2610
|
+
collections: S.Struct<{
|
|
2611
|
+
evidence: typeof S.String;
|
|
2612
|
+
network: typeof S.String;
|
|
2613
|
+
assets: typeof S.String;
|
|
2614
|
+
artifacts: typeof S.String;
|
|
1572
2615
|
}>;
|
|
1573
|
-
|
|
1574
|
-
|
|
2616
|
+
artifacts: S.Array$<S.Struct<{
|
|
2617
|
+
id: typeof S.String;
|
|
2618
|
+
kind: typeof S.String;
|
|
2619
|
+
url: typeof S.String;
|
|
2620
|
+
preview: S.optionalWith<typeof S.String, {
|
|
2621
|
+
nullable: true;
|
|
2622
|
+
}>;
|
|
2623
|
+
}>>;
|
|
2624
|
+
links: S.Struct<{
|
|
2625
|
+
markdown: typeof S.String;
|
|
2626
|
+
json: typeof S.String;
|
|
1575
2627
|
}>;
|
|
1576
|
-
|
|
1577
|
-
|
|
2628
|
+
}, S.Struct.Encoded<{
|
|
2629
|
+
version: typeof SnapshotCatalogVersion;
|
|
2630
|
+
snapshotId: typeof S.String;
|
|
2631
|
+
collections: S.Struct<{
|
|
2632
|
+
evidence: typeof S.String;
|
|
2633
|
+
network: typeof S.String;
|
|
2634
|
+
assets: typeof S.String;
|
|
2635
|
+
artifacts: typeof S.String;
|
|
1578
2636
|
}>;
|
|
1579
|
-
|
|
1580
|
-
|
|
2637
|
+
artifacts: S.Array$<S.Struct<{
|
|
2638
|
+
id: typeof S.String;
|
|
2639
|
+
kind: typeof S.String;
|
|
2640
|
+
url: typeof S.String;
|
|
2641
|
+
preview: S.optionalWith<typeof S.String, {
|
|
2642
|
+
nullable: true;
|
|
2643
|
+
}>;
|
|
2644
|
+
}>>;
|
|
2645
|
+
links: S.Struct<{
|
|
2646
|
+
markdown: typeof S.String;
|
|
2647
|
+
json: typeof S.String;
|
|
1581
2648
|
}>;
|
|
1582
|
-
}
|
|
1583
|
-
|
|
2649
|
+
}>, never, {
|
|
2650
|
+
readonly artifacts: readonly {
|
|
2651
|
+
readonly id: string;
|
|
2652
|
+
readonly kind: string;
|
|
2653
|
+
readonly url: string;
|
|
2654
|
+
readonly preview?: string | undefined;
|
|
2655
|
+
}[];
|
|
2656
|
+
} & {
|
|
2657
|
+
readonly collections: {
|
|
2658
|
+
readonly evidence: string;
|
|
2659
|
+
readonly network: string;
|
|
2660
|
+
readonly assets: string;
|
|
2661
|
+
readonly artifacts: string;
|
|
2662
|
+
};
|
|
2663
|
+
} & {
|
|
2664
|
+
readonly links: {
|
|
2665
|
+
readonly markdown: string;
|
|
2666
|
+
readonly json: string;
|
|
2667
|
+
};
|
|
2668
|
+
} & {
|
|
2669
|
+
readonly snapshotId: string;
|
|
2670
|
+
} & {
|
|
2671
|
+
readonly version: 1;
|
|
2672
|
+
}, {}, {}>;
|
|
2673
|
+
export declare class SnapshotCatalog extends SnapshotCatalog_base {
|
|
1584
2674
|
}
|
|
1585
|
-
declare const
|
|
1586
|
-
|
|
1587
|
-
nullable: true;
|
|
1588
|
-
}>;
|
|
1589
|
-
site: S.optionalWith<typeof S.String, {
|
|
1590
|
-
nullable: true;
|
|
1591
|
-
}>;
|
|
1592
|
-
creator: S.optionalWith<typeof S.String, {
|
|
1593
|
-
nullable: true;
|
|
1594
|
-
}>;
|
|
1595
|
-
title: S.optionalWith<typeof S.String, {
|
|
1596
|
-
nullable: true;
|
|
1597
|
-
}>;
|
|
1598
|
-
description: S.optionalWith<typeof S.String, {
|
|
1599
|
-
nullable: true;
|
|
1600
|
-
}>;
|
|
1601
|
-
image: S.optionalWith<S.filter<typeof S.String>, {
|
|
1602
|
-
nullable: true;
|
|
1603
|
-
}>;
|
|
1604
|
-
}>;
|
|
1605
|
-
export declare class TwitterCardMeta extends TwitterCardMeta_base {
|
|
2675
|
+
declare const SnapshotNotFoundTag_base: S.Literal<["SnapshotNotFound"]>;
|
|
2676
|
+
export declare class SnapshotNotFoundTag extends SnapshotNotFoundTag_base {
|
|
1606
2677
|
}
|
|
1607
|
-
declare const
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}>;
|
|
1611
|
-
description: S.optionalWith<typeof S.String, {
|
|
1612
|
-
nullable: true;
|
|
1613
|
-
}>;
|
|
1614
|
-
canonicalUrl: S.optionalWith<S.filter<typeof S.String>, {
|
|
1615
|
-
nullable: true;
|
|
1616
|
-
}>;
|
|
1617
|
-
language: S.optionalWith<S.filter<typeof S.String>, {
|
|
1618
|
-
nullable: true;
|
|
1619
|
-
}>;
|
|
1620
|
-
charset: S.optionalWith<S.filter<typeof S.String>, {
|
|
1621
|
-
nullable: true;
|
|
1622
|
-
}>;
|
|
1623
|
-
favicon: S.optionalWith<S.filter<typeof S.String>, {
|
|
1624
|
-
nullable: true;
|
|
1625
|
-
}>;
|
|
1626
|
-
icons: S.optionalWith<S.Array$<typeof IconMeta>, {
|
|
1627
|
-
nullable: true;
|
|
1628
|
-
}>;
|
|
1629
|
-
openGraph: S.optionalWith<typeof OpenGraphMeta, {
|
|
1630
|
-
nullable: true;
|
|
1631
|
-
}>;
|
|
1632
|
-
twitter: S.optionalWith<typeof TwitterCardMeta, {
|
|
1633
|
-
nullable: true;
|
|
1634
|
-
}>;
|
|
1635
|
-
}>;
|
|
1636
|
-
export declare class PageMeta extends PageMeta_base {
|
|
1637
|
-
}
|
|
1638
|
-
declare const FetchLink_base: S.Struct<{
|
|
1639
|
-
url: typeof S.String;
|
|
1640
|
-
text: S.optionalWith<typeof S.String, {
|
|
1641
|
-
nullable: true;
|
|
1642
|
-
}>;
|
|
1643
|
-
}>;
|
|
1644
|
-
export declare class FetchLink extends FetchLink_base {
|
|
1645
|
-
}
|
|
1646
|
-
declare const RenderEnginesInfoCapture_base: S.Literal<["rust"]>;
|
|
1647
|
-
export declare class RenderEnginesInfoCapture extends RenderEnginesInfoCapture_base {
|
|
1648
|
-
}
|
|
1649
|
-
declare const RenderEnginesInfoMarkdown_base: S.Literal<["rust"]>;
|
|
1650
|
-
export declare class RenderEnginesInfoMarkdown extends RenderEnginesInfoMarkdown_base {
|
|
1651
|
-
}
|
|
1652
|
-
declare const RenderEnginesInfoTree_base: S.Literal<["rust"]>;
|
|
1653
|
-
export declare class RenderEnginesInfoTree extends RenderEnginesInfoTree_base {
|
|
1654
|
-
}
|
|
1655
|
-
declare const RenderEnginesInfo_base: S.Struct<{
|
|
1656
|
-
capture: S.optionalWith<typeof RenderEnginesInfoCapture, {
|
|
1657
|
-
nullable: true;
|
|
1658
|
-
}>;
|
|
1659
|
-
markdown: S.optionalWith<typeof RenderEnginesInfoMarkdown, {
|
|
1660
|
-
nullable: true;
|
|
1661
|
-
}>;
|
|
1662
|
-
tree: S.optionalWith<typeof RenderEnginesInfoTree, {
|
|
1663
|
-
nullable: true;
|
|
1664
|
-
}>;
|
|
1665
|
-
}>;
|
|
1666
|
-
export declare class RenderEnginesInfo extends RenderEnginesInfo_base {
|
|
1667
|
-
}
|
|
1668
|
-
declare const BatchedFetchItem_base: S.Struct<{
|
|
1669
|
-
status: typeof BatchedFetchItemStatus;
|
|
1670
|
-
data: S.optionalWith<S.Struct<{
|
|
1671
|
-
response: typeof ResponseInfo;
|
|
1672
|
-
meta: S.optionalWith<typeof PageMeta, {
|
|
1673
|
-
nullable: true;
|
|
1674
|
-
}>;
|
|
1675
|
-
json: S.optionalWith<S.Array$<S.Struct<{}>>, {
|
|
1676
|
-
nullable: true;
|
|
1677
|
-
}>;
|
|
1678
|
-
snapshotId: S.optionalWith<typeof NonEmptyString, {
|
|
1679
|
-
nullable: true;
|
|
1680
|
-
}>;
|
|
1681
|
-
html: S.optionalWith<S.filter<typeof S.String>, {
|
|
1682
|
-
nullable: true;
|
|
1683
|
-
}>;
|
|
1684
|
-
markdown: S.optionalWith<S.filter<typeof S.String>, {
|
|
1685
|
-
nullable: true;
|
|
1686
|
-
}>;
|
|
1687
|
-
screenshot: S.optionalWith<S.Struct<{
|
|
1688
|
-
url: typeof S.String;
|
|
1689
|
-
fullPage: typeof S.Boolean;
|
|
1690
|
-
}>, {
|
|
1691
|
-
nullable: true;
|
|
1692
|
-
}>;
|
|
1693
|
-
search: S.optionalWith<typeof FetchSearchResult, {
|
|
1694
|
-
nullable: true;
|
|
1695
|
-
}>;
|
|
1696
|
-
links: S.optionalWith<S.Array$<typeof FetchLink>, {
|
|
1697
|
-
nullable: true;
|
|
1698
|
-
}>;
|
|
1699
|
-
appendix: S.optionalWith<S.filter<typeof S.String>, {
|
|
1700
|
-
nullable: true;
|
|
1701
|
-
}>;
|
|
1702
|
-
renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
|
|
1703
|
-
nullable: true;
|
|
1704
|
-
}>;
|
|
1705
|
-
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
1706
|
-
nullable: true;
|
|
1707
|
-
}>;
|
|
1708
|
-
degraded: S.optionalWith<typeof FetchDegradedInfo, {
|
|
1709
|
-
nullable: true;
|
|
1710
|
-
}>;
|
|
1711
|
-
}>, {
|
|
1712
|
-
nullable: true;
|
|
1713
|
-
}>;
|
|
1714
|
-
error: S.optionalWith<S.Union<[typeof FetchBlocked, typeof FetchPageTooLarge, typeof FetchNavigationFailed, typeof FetchCaptureTimeout, typeof FetchCapacityTimeout]>, {
|
|
1715
|
-
nullable: true;
|
|
1716
|
-
}>;
|
|
1717
|
-
}>;
|
|
1718
|
-
export declare class BatchedFetchItem extends BatchedFetchItem_base {
|
|
1719
|
-
}
|
|
1720
|
-
declare const PaginationMeta_base: S.Struct<{
|
|
1721
|
-
total: typeof S.Number;
|
|
1722
|
-
limit: typeof S.Number;
|
|
1723
|
-
offset: typeof S.Number;
|
|
1724
|
-
hasMore: typeof S.Boolean;
|
|
1725
|
-
}>;
|
|
1726
|
-
export declare class PaginationMeta extends PaginationMeta_base {
|
|
1727
|
-
}
|
|
1728
|
-
declare const BatchedStatus_base: S.Class<BatchedStatus, {
|
|
1729
|
-
id: typeof S.String;
|
|
1730
|
-
status: typeof BatchedStatusStatus;
|
|
1731
|
-
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
1732
|
-
totalUrls: typeof S.Number;
|
|
1733
|
-
results: S.Array$<typeof BatchedFetchItem>;
|
|
1734
|
-
pagination: typeof PaginationMeta;
|
|
1735
|
-
}, S.Struct.Encoded<{
|
|
1736
|
-
id: typeof S.String;
|
|
1737
|
-
status: typeof BatchedStatusStatus;
|
|
1738
|
-
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
1739
|
-
totalUrls: typeof S.Number;
|
|
1740
|
-
results: S.Array$<typeof BatchedFetchItem>;
|
|
1741
|
-
pagination: typeof PaginationMeta;
|
|
1742
|
-
}>, never, {
|
|
1743
|
-
readonly batchedStatus: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
1744
|
-
} & {
|
|
1745
|
-
readonly id: string;
|
|
1746
|
-
} & {
|
|
1747
|
-
readonly pagination: {
|
|
1748
|
-
readonly total: number;
|
|
1749
|
-
readonly limit: number;
|
|
1750
|
-
readonly offset: number;
|
|
1751
|
-
readonly hasMore: boolean;
|
|
1752
|
-
};
|
|
1753
|
-
} & {
|
|
1754
|
-
readonly results: readonly {
|
|
1755
|
-
readonly status: "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "SUCCEEDED";
|
|
1756
|
-
readonly data?: {
|
|
1757
|
-
readonly response: {
|
|
1758
|
-
readonly url: string;
|
|
1759
|
-
readonly requestedUrl?: string | undefined;
|
|
1760
|
-
readonly originStatusCode?: number | undefined;
|
|
1761
|
-
readonly redirectStatusCode?: number | undefined;
|
|
1762
|
-
readonly headers?: {} | undefined;
|
|
1763
|
-
};
|
|
1764
|
-
readonly meta?: {
|
|
1765
|
-
readonly title?: string | undefined;
|
|
1766
|
-
readonly description?: string | undefined;
|
|
1767
|
-
readonly canonicalUrl?: string | undefined;
|
|
1768
|
-
readonly language?: string | undefined;
|
|
1769
|
-
readonly charset?: string | undefined;
|
|
1770
|
-
readonly favicon?: string | undefined;
|
|
1771
|
-
readonly icons?: readonly {
|
|
1772
|
-
readonly href: string;
|
|
1773
|
-
readonly rel: string;
|
|
1774
|
-
readonly type?: string | undefined;
|
|
1775
|
-
readonly sizes?: string | undefined;
|
|
1776
|
-
}[] | undefined;
|
|
1777
|
-
readonly openGraph?: {
|
|
1778
|
-
readonly title?: string | undefined;
|
|
1779
|
-
readonly description?: string | undefined;
|
|
1780
|
-
readonly type?: string | undefined;
|
|
1781
|
-
readonly url?: string | undefined;
|
|
1782
|
-
readonly siteName?: string | undefined;
|
|
1783
|
-
readonly locale?: string | undefined;
|
|
1784
|
-
readonly images?: readonly {
|
|
1785
|
-
readonly url: string;
|
|
1786
|
-
readonly width?: number | undefined;
|
|
1787
|
-
readonly height?: number | undefined;
|
|
1788
|
-
readonly alt?: string | undefined;
|
|
1789
|
-
}[] | undefined;
|
|
1790
|
-
} | undefined;
|
|
1791
|
-
readonly twitter?: {
|
|
1792
|
-
readonly card?: string | undefined;
|
|
1793
|
-
readonly site?: string | undefined;
|
|
1794
|
-
readonly creator?: string | undefined;
|
|
1795
|
-
readonly title?: string | undefined;
|
|
1796
|
-
readonly description?: string | undefined;
|
|
1797
|
-
readonly image?: string | undefined;
|
|
1798
|
-
} | undefined;
|
|
1799
|
-
} | undefined;
|
|
1800
|
-
readonly json?: readonly {}[] | undefined;
|
|
1801
|
-
readonly snapshotId?: string | undefined;
|
|
1802
|
-
readonly html?: string | undefined;
|
|
1803
|
-
readonly markdown?: string | undefined;
|
|
1804
|
-
readonly screenshot?: {
|
|
1805
|
-
readonly url: string;
|
|
1806
|
-
readonly fullPage: boolean;
|
|
1807
|
-
} | undefined;
|
|
1808
|
-
readonly search?: {
|
|
1809
|
-
readonly query: string;
|
|
1810
|
-
readonly snippets: readonly {
|
|
1811
|
-
readonly type: "text";
|
|
1812
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
1813
|
-
readonly text: string;
|
|
1814
|
-
readonly score: number;
|
|
1815
|
-
readonly location?: {
|
|
1816
|
-
readonly evidenceId?: number | undefined;
|
|
1817
|
-
readonly markdownBlockId?: string | undefined;
|
|
1818
|
-
readonly nodeIds?: readonly number[] | undefined;
|
|
1819
|
-
readonly stateJsonSourceId?: number | undefined;
|
|
1820
|
-
readonly jsonPath?: string | undefined;
|
|
1821
|
-
} | undefined;
|
|
1822
|
-
}[];
|
|
1823
|
-
readonly meta?: {
|
|
1824
|
-
readonly durationMs: number;
|
|
1825
|
-
readonly sources: readonly {
|
|
1826
|
-
readonly source: "appendix" | "markdown" | "statejson";
|
|
1827
|
-
readonly chunkCount: number;
|
|
1828
|
-
readonly batchCount: number;
|
|
1829
|
-
readonly ranker: "local_lexical" | "mixedbread" | "zeroentropy";
|
|
1830
|
-
readonly fallback: boolean;
|
|
1831
|
-
readonly fallbackReason?: "error" | "timeout" | undefined;
|
|
1832
|
-
readonly durationMs: number;
|
|
1833
|
-
}[];
|
|
1834
|
-
} | undefined;
|
|
1835
|
-
} | undefined;
|
|
1836
|
-
readonly links?: readonly {
|
|
1837
|
-
readonly url: string;
|
|
1838
|
-
readonly text?: string | undefined;
|
|
1839
|
-
}[] | undefined;
|
|
1840
|
-
readonly appendix?: string | undefined;
|
|
1841
|
-
readonly renderEngines?: {
|
|
1842
|
-
readonly capture?: "rust" | undefined;
|
|
1843
|
-
readonly markdown?: "rust" | undefined;
|
|
1844
|
-
readonly tree?: "rust" | undefined;
|
|
1845
|
-
} | undefined;
|
|
1846
|
-
readonly assets?: readonly {
|
|
1847
|
-
readonly id: string;
|
|
1848
|
-
readonly kind: "data-url";
|
|
1849
|
-
readonly placeholder: string;
|
|
1850
|
-
readonly archiveKey: string;
|
|
1851
|
-
readonly mimeType: string;
|
|
1852
|
-
readonly sha256: string;
|
|
1853
|
-
readonly bytes: number;
|
|
1854
|
-
}[] | undefined;
|
|
1855
|
-
readonly degraded?: {
|
|
1856
|
-
readonly reason: "modelInputTooLarge" | "pageTooLarge";
|
|
1857
|
-
readonly skipped: readonly "hfc"[];
|
|
1858
|
-
readonly limitKind: "ast_bytes" | "domsnapshot_bytes" | "hfc_tokens";
|
|
1859
|
-
readonly measuredBytes?: number | undefined;
|
|
1860
|
-
readonly thresholdBytes?: number | undefined;
|
|
1861
|
-
readonly measuredTokens?: number | undefined;
|
|
1862
|
-
readonly thresholdTokens?: number | undefined;
|
|
1863
|
-
} | undefined;
|
|
1864
|
-
} | undefined;
|
|
1865
|
-
readonly error?: FetchCapacityTimeout | FetchCaptureTimeout | FetchNavigationFailed | {
|
|
1866
|
-
readonly url: string;
|
|
1867
|
-
readonly blockedType?: string | undefined;
|
|
1868
|
-
readonly _tag: "FetchBlocked";
|
|
1869
|
-
} | {
|
|
1870
|
-
readonly url: string;
|
|
1871
|
-
readonly limitKind?: "ast_bytes" | "domsnapshot_bytes" | "transfer_bytes" | undefined;
|
|
1872
|
-
readonly limitBytes?: number | undefined;
|
|
1873
|
-
readonly measuredBytes?: number | undefined;
|
|
1874
|
-
readonly _tag: "FetchPageTooLarge";
|
|
1875
|
-
} | undefined;
|
|
1876
|
-
}[];
|
|
1877
|
-
} & {
|
|
1878
|
-
readonly status: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
1879
|
-
} & {
|
|
1880
|
-
readonly totalUrls: number;
|
|
1881
|
-
}, {}, {}>;
|
|
1882
|
-
export declare class BatchedStatus extends BatchedStatus_base {
|
|
1883
|
-
}
|
|
1884
|
-
declare const BatchedIncludeUnsupportedTag_base: S.Literal<["BatchedIncludeUnsupported"]>;
|
|
1885
|
-
export declare class BatchedIncludeUnsupportedTag extends BatchedIncludeUnsupportedTag_base {
|
|
1886
|
-
}
|
|
1887
|
-
declare const BatchedIncludeUnsupported_base: S.Struct<{
|
|
1888
|
-
unsupportedFields: S.Array$<typeof S.String>;
|
|
1889
|
-
_tag: typeof BatchedIncludeUnsupportedTag;
|
|
1890
|
-
}>;
|
|
1891
|
-
export declare class BatchedIncludeUnsupported extends BatchedIncludeUnsupported_base {
|
|
1892
|
-
}
|
|
1893
|
-
declare const FetchGetBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BatchedIncludeUnsupported]>;
|
|
1894
|
-
export declare class FetchGetBatched400 extends FetchGetBatched400_base {
|
|
1895
|
-
}
|
|
1896
|
-
declare const BatchedCancellationStatus_base: S.Literal<["CANCELLING", "CANCELLED"]>;
|
|
1897
|
-
export declare class BatchedCancellationStatus extends BatchedCancellationStatus_base {
|
|
1898
|
-
}
|
|
1899
|
-
declare const BatchedCancellation_base: S.Class<BatchedCancellation, {
|
|
1900
|
-
id: typeof S.String;
|
|
1901
|
-
status: typeof BatchedCancellationStatus;
|
|
1902
|
-
}, S.Struct.Encoded<{
|
|
1903
|
-
id: typeof S.String;
|
|
1904
|
-
status: typeof BatchedCancellationStatus;
|
|
1905
|
-
}>, never, {
|
|
1906
|
-
readonly id: string;
|
|
1907
|
-
} & {
|
|
1908
|
-
readonly status: "CANCELLED" | "CANCELLING";
|
|
1909
|
-
}, {}, {}>;
|
|
1910
|
-
export declare class BatchedCancellation extends BatchedCancellation_base {
|
|
1911
|
-
}
|
|
1912
|
-
declare const BatchedCancellationConflictStatus_base: S.Literal<["COMPLETED", "FAILED"]>;
|
|
1913
|
-
export declare class BatchedCancellationConflictStatus extends BatchedCancellationConflictStatus_base {
|
|
1914
|
-
}
|
|
1915
|
-
declare const BatchedCancellationConflictTag_base: S.Literal<["BatchedCancellationConflict"]>;
|
|
1916
|
-
export declare class BatchedCancellationConflictTag extends BatchedCancellationConflictTag_base {
|
|
1917
|
-
}
|
|
1918
|
-
declare const BatchedCancellationConflict_base: S.Class<BatchedCancellationConflict, {
|
|
1919
|
-
id: typeof S.String;
|
|
1920
|
-
status: typeof BatchedCancellationConflictStatus;
|
|
1921
|
-
_tag: typeof BatchedCancellationConflictTag;
|
|
2678
|
+
declare const SnapshotNotFound_base: S.Class<SnapshotNotFound, {
|
|
2679
|
+
snapshotId: typeof S.String;
|
|
2680
|
+
_tag: typeof SnapshotNotFoundTag;
|
|
1922
2681
|
}, S.Struct.Encoded<{
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
_tag: typeof BatchedCancellationConflictTag;
|
|
2682
|
+
snapshotId: typeof S.String;
|
|
2683
|
+
_tag: typeof SnapshotNotFoundTag;
|
|
1926
2684
|
}>, never, {
|
|
1927
|
-
readonly _tag: "
|
|
1928
|
-
} & {
|
|
1929
|
-
readonly id: string;
|
|
2685
|
+
readonly _tag: "SnapshotNotFound";
|
|
1930
2686
|
} & {
|
|
1931
|
-
readonly
|
|
2687
|
+
readonly snapshotId: string;
|
|
1932
2688
|
}, {}, {}>;
|
|
1933
|
-
export declare class
|
|
2689
|
+
export declare class SnapshotNotFound extends SnapshotNotFound_base {
|
|
1934
2690
|
}
|
|
1935
2691
|
export declare const make: (httpClient: HttpClient.HttpClient, options?: {
|
|
1936
2692
|
readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
|
|
@@ -1939,18 +2695,19 @@ export interface Client {
|
|
|
1939
2695
|
readonly fetchFetch: (options: {
|
|
1940
2696
|
readonly params: typeof FetchFetchParams.Encoded;
|
|
1941
2697
|
readonly payload: typeof FetchFetchRequest.Encoded;
|
|
1942
|
-
}) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof FetchFetch400.Type | typeof AuthFailed.Type | typeof FetchFetch403.Type | typeof FetchFetch413.Type | typeof
|
|
2698
|
+
}) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof FetchFetch400.Type | typeof AuthFailed.Type | typeof FetchFetch403.Type | typeof FetchOriginNotFound.Type | typeof FetchOriginGone.Type | typeof FetchFetch413.Type | typeof FetchUnsupportedContentType.Type | typeof FetchVideoUnavailable.Type | typeof FetchFetch429.Type | typeof InternalError.Type | typeof FetchFetch502.Type | typeof FetchFetch503.Type | typeof FetchCaptureTimeout.Type | typeof FetchCapacityTimeout.Type>;
|
|
1943
2699
|
readonly fetchFetchJson: (options: {
|
|
1944
2700
|
readonly params: typeof FetchFetchJsonParams.Encoded;
|
|
1945
2701
|
readonly payload: typeof FetchFetchJsonRequest.Encoded;
|
|
1946
|
-
}) => Effect.Effect<typeof
|
|
1947
|
-
readonly fetchFetchSearch: (options: typeof FetchFetchSearchRequest.Encoded) => Effect.Effect<typeof FetchSnapshotSearchResult.Type, HttpClientError.HttpClientError | ParseError | typeof FetchFetchSearch400.Type | typeof AuthFailed.Type | typeof FetchFetchSearch403.Type | typeof FetchSnapshotSearchNotFound.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
2702
|
+
}) => Effect.Effect<typeof FetchFetchJson200.Type, HttpClientError.HttpClientError | ParseError | typeof FetchFetchJson400.Type | typeof AuthFailed.Type | typeof FetchFetchJson403.Type | typeof FetchOriginNotFound.Type | typeof FetchOriginGone.Type | typeof FetchFetchJson413.Type | typeof FetchUnsupportedContentType.Type | typeof FetchVideoUnavailable.Type | typeof FetchFetchJson429.Type | typeof InternalError.Type | typeof FetchFetchJson502.Type | typeof FetchFetchJson503.Type | typeof FetchCaptureTimeout.Type | typeof FetchCapacityTimeout.Type>;
|
|
1948
2703
|
readonly fetchBatched: (options: {
|
|
1949
2704
|
readonly params: typeof FetchBatchedParams.Encoded;
|
|
1950
2705
|
readonly payload: typeof FetchBatchedRequest.Encoded;
|
|
1951
2706
|
}) => Effect.Effect<typeof BatchedRun.Type, HttpClientError.HttpClientError | ParseError | typeof FetchBatched400.Type | typeof AuthFailed.Type | typeof FetchBatched403.Type | typeof BatchedIdempotencyConflict.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
1952
2707
|
readonly fetchGetBatched: (id: string, options: typeof FetchGetBatchedParams.Encoded) => Effect.Effect<typeof BatchedStatus.Type, HttpClientError.HttpClientError | ParseError | typeof FetchGetBatched400.Type | typeof AuthFailed.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
1953
2708
|
readonly fetchCancelBatched: (id: string) => Effect.Effect<typeof BatchedCancellation.Type, HttpClientError.HttpClientError | ParseError | typeof HttpApiDecodeError.Type | typeof AuthFailed.Type | typeof BatchedCancellationConflict.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
2709
|
+
readonly snapshotsHighlights: (snapshotId: string, options: typeof SnapshotHighlightsInput.Encoded) => Effect.Effect<typeof FetchSnapshotHighlightsResult.Type, HttpClientError.HttpClientError | ParseError | typeof SnapshotsHighlights400.Type | typeof AuthFailed.Type | typeof SnapshotsHighlights403.Type | typeof FetchSnapshotHighlightsNotFound.Type | typeof PayloadTooLarge.Type | typeof SnapshotsHighlights429.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
2710
|
+
readonly publicSnapshotsGetCatalog: (snapshotId: string, options: typeof PublicSnapshotsGetCatalogParams.Encoded) => Effect.Effect<typeof SnapshotCatalog.Type, HttpClientError.HttpClientError | ParseError | typeof HttpApiDecodeError.Type | typeof SnapshotNotFound.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
|
|
1954
2711
|
}
|
|
1955
2712
|
export {};
|
|
1956
2713
|
//# sourceMappingURL=Generated.d.ts.map
|