@expandai/sdk 0.17.1 → 0.18.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.
@@ -27,18 +27,15 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
27
27
  }>]>, {
28
28
  nullable: true;
29
29
  }>;
30
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
31
- prompt: S.optionalWith<S.filter<typeof S.String>, {
30
+ links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
31
+ sameDomainOnly: S.optionalWith<typeof S.Boolean, {
32
32
  nullable: true;
33
+ default: () => true;
33
34
  }>;
34
- }>]>, {
35
- nullable: true;
36
- }>;
37
- links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
38
- skipEmptyText: S.optionalWith<typeof S.Boolean, {
35
+ includePatterns: S.optionalWith<S.Array$<typeof S.String>, {
39
36
  nullable: true;
40
37
  }>;
41
- includeNavigation: S.optionalWith<typeof S.Boolean, {
38
+ excludePatterns: S.optionalWith<S.Array$<typeof S.String>, {
42
39
  nullable: true;
43
40
  }>;
44
41
  }>]>, {
@@ -46,11 +43,15 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
46
43
  }>;
47
44
  meta: S.optionalWith<typeof S.Boolean, {
48
45
  nullable: true;
49
- default: () => false;
46
+ default: () => true;
50
47
  }>;
51
- response: S.optionalWith<typeof S.Boolean, {
48
+ response: S.optionalWith<S.Struct<{
49
+ includeHeaders: S.optionalWith<typeof S.Boolean, {
50
+ nullable: true;
51
+ default: () => false;
52
+ }>;
53
+ }>, {
52
54
  nullable: true;
53
- default: () => false;
54
55
  }>;
55
56
  json: S.optionalWith<typeof S.Boolean, {
56
57
  nullable: true;
@@ -99,18 +100,15 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
99
100
  }>]>, {
100
101
  nullable: true;
101
102
  }>;
102
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
103
- prompt: S.optionalWith<S.filter<typeof S.String>, {
103
+ links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
104
+ sameDomainOnly: S.optionalWith<typeof S.Boolean, {
104
105
  nullable: true;
106
+ default: () => true;
105
107
  }>;
106
- }>]>, {
107
- nullable: true;
108
- }>;
109
- links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
110
- skipEmptyText: S.optionalWith<typeof S.Boolean, {
108
+ includePatterns: S.optionalWith<S.Array$<typeof S.String>, {
111
109
  nullable: true;
112
110
  }>;
113
- includeNavigation: S.optionalWith<typeof S.Boolean, {
111
+ excludePatterns: S.optionalWith<S.Array$<typeof S.String>, {
114
112
  nullable: true;
115
113
  }>;
116
114
  }>]>, {
@@ -118,11 +116,15 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
118
116
  }>;
119
117
  meta: S.optionalWith<typeof S.Boolean, {
120
118
  nullable: true;
121
- default: () => false;
119
+ default: () => true;
122
120
  }>;
123
- response: S.optionalWith<typeof S.Boolean, {
121
+ response: S.optionalWith<S.Struct<{
122
+ includeHeaders: S.optionalWith<typeof S.Boolean, {
123
+ nullable: true;
124
+ default: () => false;
125
+ }>;
126
+ }>, {
124
127
  nullable: true;
125
- default: () => false;
126
128
  }>;
127
129
  json: S.optionalWith<typeof S.Boolean, {
128
130
  nullable: true;
@@ -156,6 +158,10 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
156
158
  nullable: true;
157
159
  }>;
158
160
  }>, never, {
161
+ readonly browserConfig?: {
162
+ readonly scrollFullPage: boolean;
163
+ } | undefined;
164
+ } & {
159
165
  readonly include?: {
160
166
  readonly html?: boolean | {
161
167
  readonly [x: string]: unknown;
@@ -166,20 +172,18 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
166
172
  readonly screenshot?: boolean | {
167
173
  readonly fullPage?: boolean | undefined;
168
174
  } | undefined;
169
- readonly summary?: boolean | {
170
- readonly prompt?: string | undefined;
171
- } | undefined;
172
175
  readonly links?: boolean | {
173
- readonly skipEmptyText?: boolean | undefined;
174
- readonly includeNavigation?: boolean | undefined;
176
+ readonly sameDomainOnly: boolean;
177
+ readonly includePatterns?: readonly string[] | undefined;
178
+ readonly excludePatterns?: readonly string[] | undefined;
175
179
  } | undefined;
176
180
  readonly meta: boolean;
177
- readonly response: boolean;
181
+ readonly response?: {
182
+ readonly includeHeaders: boolean;
183
+ } | undefined;
178
184
  readonly json: boolean;
179
185
  readonly appendix?: boolean | undefined;
180
186
  } | undefined;
181
- } & {
182
- readonly url: string;
183
187
  } & {
184
188
  readonly search?: {
185
189
  readonly query: string;
@@ -187,9 +191,7 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
187
191
  readonly minScore: number;
188
192
  } | undefined;
189
193
  } & {
190
- readonly browserConfig?: {
191
- readonly scrollFullPage: boolean;
192
- } | undefined;
194
+ readonly url: string;
193
195
  }, {}, {}>;
194
196
  export declare class FetchFetchRequest extends FetchFetchRequest_base {
195
197
  }
@@ -257,13 +259,13 @@ declare const AuthFailed_base: S.Class<AuthFailed, {
257
259
  }>;
258
260
  _tag: typeof AuthFailedTag;
259
261
  }>, never, {
260
- readonly _tag: "AuthFailed";
261
- } & {
262
- readonly reason: "InvalidApiKey" | "InvalidToken" | "InvalidSession" | "InvalidTenant";
263
- } & {
264
262
  readonly description?: string | {
265
263
  readonly message: string;
266
264
  } | undefined;
265
+ } & {
266
+ readonly _tag: "AuthFailed";
267
+ } & {
268
+ readonly reason: "InvalidApiKey" | "InvalidSession" | "InvalidTenant" | "InvalidToken";
267
269
  }, {}, {}>;
268
270
  export declare class AuthFailed extends AuthFailed_base {
269
271
  }
@@ -293,15 +295,35 @@ export declare class FetchFetch403 extends FetchFetch403_base {
293
295
  declare const PayloadTooLargeTag_base: S.Literal<["PayloadTooLarge"]>;
294
296
  export declare class PayloadTooLargeTag extends PayloadTooLargeTag_base {
295
297
  }
296
- declare const PayloadTooLarge_base: S.Class<PayloadTooLarge, {
297
- _tag: typeof PayloadTooLargeTag;
298
- }, S.Struct.Encoded<{
298
+ declare const PayloadTooLarge_base: S.Struct<{
299
299
  _tag: typeof PayloadTooLargeTag;
300
- }>, never, {
301
- readonly _tag: "PayloadTooLarge";
302
- }, {}, {}>;
300
+ }>;
303
301
  export declare class PayloadTooLarge extends PayloadTooLarge_base {
304
302
  }
303
+ declare const FetchPageTooLargeLimitKind_base: S.Literal<["transfer_bytes", "domsnapshot_bytes", "ast_bytes"]>;
304
+ export declare class FetchPageTooLargeLimitKind extends FetchPageTooLargeLimitKind_base {
305
+ }
306
+ declare const FetchPageTooLargeTag_base: S.Literal<["FetchPageTooLarge"]>;
307
+ export declare class FetchPageTooLargeTag extends FetchPageTooLargeTag_base {
308
+ }
309
+ declare const FetchPageTooLarge_base: S.Struct<{
310
+ url: typeof S.String;
311
+ limitKind: S.optionalWith<typeof FetchPageTooLargeLimitKind, {
312
+ nullable: true;
313
+ }>;
314
+ limitBytes: S.optionalWith<typeof S.Number, {
315
+ nullable: true;
316
+ }>;
317
+ measuredBytes: S.optionalWith<typeof S.Number, {
318
+ nullable: true;
319
+ }>;
320
+ _tag: typeof FetchPageTooLargeTag;
321
+ }>;
322
+ export declare class FetchPageTooLarge extends FetchPageTooLarge_base {
323
+ }
324
+ declare const FetchFetch413_base: S.Union<[typeof PayloadTooLarge, typeof FetchPageTooLarge]>;
325
+ export declare class FetchFetch413 extends FetchFetch413_base {
326
+ }
305
327
  declare const TooManyRequestsTag_base: S.Literal<["TooManyRequests"]>;
306
328
  export declare class TooManyRequestsTag extends TooManyRequestsTag_base {
307
329
  }
@@ -330,10 +352,26 @@ declare const ServiceUnavailableTag_base: S.Literal<["ServiceUnavailable"]>;
330
352
  export declare class ServiceUnavailableTag extends ServiceUnavailableTag_base {
331
353
  }
332
354
  declare const ServiceUnavailable_base: S.Class<ServiceUnavailable, {
355
+ message: S.optionalWith<typeof S.String, {
356
+ nullable: true;
357
+ }>;
358
+ requestId: S.optionalWith<typeof S.String, {
359
+ nullable: true;
360
+ }>;
333
361
  _tag: typeof ServiceUnavailableTag;
334
362
  }, S.Struct.Encoded<{
363
+ message: S.optionalWith<typeof S.String, {
364
+ nullable: true;
365
+ }>;
366
+ requestId: S.optionalWith<typeof S.String, {
367
+ nullable: true;
368
+ }>;
335
369
  _tag: typeof ServiceUnavailableTag;
336
370
  }>, never, {
371
+ readonly message?: string | undefined;
372
+ } & {
373
+ readonly requestId?: string | undefined;
374
+ } & {
337
375
  readonly _tag: "ServiceUnavailable";
338
376
  }, {}, {}>;
339
377
  export declare class ServiceUnavailable extends ServiceUnavailable_base {
@@ -361,18 +399,15 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
361
399
  }>]>, {
362
400
  nullable: true;
363
401
  }>;
364
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
365
- prompt: S.optionalWith<S.filter<typeof S.String>, {
402
+ links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
403
+ sameDomainOnly: S.optionalWith<typeof S.Boolean, {
366
404
  nullable: true;
405
+ default: () => true;
367
406
  }>;
368
- }>]>, {
369
- nullable: true;
370
- }>;
371
- links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
372
- skipEmptyText: S.optionalWith<typeof S.Boolean, {
407
+ includePatterns: S.optionalWith<S.Array$<typeof S.String>, {
373
408
  nullable: true;
374
409
  }>;
375
- includeNavigation: S.optionalWith<typeof S.Boolean, {
410
+ excludePatterns: S.optionalWith<S.Array$<typeof S.String>, {
376
411
  nullable: true;
377
412
  }>;
378
413
  }>]>, {
@@ -380,11 +415,15 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
380
415
  }>;
381
416
  meta: S.optionalWith<typeof S.Boolean, {
382
417
  nullable: true;
383
- default: () => false;
418
+ default: () => true;
384
419
  }>;
385
- response: S.optionalWith<typeof S.Boolean, {
420
+ response: S.optionalWith<S.Struct<{
421
+ includeHeaders: S.optionalWith<typeof S.Boolean, {
422
+ nullable: true;
423
+ default: () => false;
424
+ }>;
425
+ }>, {
386
426
  nullable: true;
387
- default: () => false;
388
427
  }>;
389
428
  json: S.optionalWith<typeof S.Boolean, {
390
429
  nullable: true;
@@ -433,18 +472,15 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
433
472
  }>]>, {
434
473
  nullable: true;
435
474
  }>;
436
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
437
- prompt: S.optionalWith<S.filter<typeof S.String>, {
475
+ links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
476
+ sameDomainOnly: S.optionalWith<typeof S.Boolean, {
438
477
  nullable: true;
478
+ default: () => true;
439
479
  }>;
440
- }>]>, {
441
- nullable: true;
442
- }>;
443
- links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
444
- skipEmptyText: S.optionalWith<typeof S.Boolean, {
480
+ includePatterns: S.optionalWith<S.Array$<typeof S.String>, {
445
481
  nullable: true;
446
482
  }>;
447
- includeNavigation: S.optionalWith<typeof S.Boolean, {
483
+ excludePatterns: S.optionalWith<S.Array$<typeof S.String>, {
448
484
  nullable: true;
449
485
  }>;
450
486
  }>]>, {
@@ -452,11 +488,15 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
452
488
  }>;
453
489
  meta: S.optionalWith<typeof S.Boolean, {
454
490
  nullable: true;
455
- default: () => false;
491
+ default: () => true;
456
492
  }>;
457
- response: S.optionalWith<typeof S.Boolean, {
493
+ response: S.optionalWith<S.Struct<{
494
+ includeHeaders: S.optionalWith<typeof S.Boolean, {
495
+ nullable: true;
496
+ default: () => false;
497
+ }>;
498
+ }>, {
458
499
  nullable: true;
459
- default: () => false;
460
500
  }>;
461
501
  json: S.optionalWith<typeof S.Boolean, {
462
502
  nullable: true;
@@ -490,6 +530,10 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
490
530
  nullable: true;
491
531
  }>;
492
532
  }>, never, {
533
+ readonly browserConfig?: {
534
+ readonly scrollFullPage: boolean;
535
+ } | undefined;
536
+ } & {
493
537
  readonly include?: {
494
538
  readonly html?: boolean | {
495
539
  readonly [x: string]: unknown;
@@ -500,20 +544,18 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
500
544
  readonly screenshot?: boolean | {
501
545
  readonly fullPage?: boolean | undefined;
502
546
  } | undefined;
503
- readonly summary?: boolean | {
504
- readonly prompt?: string | undefined;
505
- } | undefined;
506
547
  readonly links?: boolean | {
507
- readonly skipEmptyText?: boolean | undefined;
508
- readonly includeNavigation?: boolean | undefined;
548
+ readonly sameDomainOnly: boolean;
549
+ readonly includePatterns?: readonly string[] | undefined;
550
+ readonly excludePatterns?: readonly string[] | undefined;
509
551
  } | undefined;
510
552
  readonly meta: boolean;
511
- readonly response: boolean;
553
+ readonly response?: {
554
+ readonly includeHeaders: boolean;
555
+ } | undefined;
512
556
  readonly json: boolean;
513
557
  readonly appendix?: boolean | undefined;
514
558
  } | undefined;
515
- } & {
516
- readonly url: string;
517
559
  } & {
518
560
  readonly search?: {
519
561
  readonly query: string;
@@ -521,9 +563,7 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
521
563
  readonly minScore: number;
522
564
  } | undefined;
523
565
  } & {
524
- readonly browserConfig?: {
525
- readonly scrollFullPage: boolean;
526
- } | undefined;
566
+ readonly url: string;
527
567
  }, {}, {}>;
528
568
  export declare class FetchFetchJsonRequest extends FetchFetchJsonRequest_base {
529
569
  }
@@ -646,62 +686,12 @@ declare const FetchAssetReference_base: S.Struct<{
646
686
  }>;
647
687
  export declare class FetchAssetReference extends FetchAssetReference_base {
648
688
  }
649
- declare const CaptureTelemetryInfoRequestedStyleMode_base: S.Literal<["compat_full", "native_default"]>;
650
- export declare class CaptureTelemetryInfoRequestedStyleMode extends CaptureTelemetryInfoRequestedStyleMode_base {
651
- }
652
- declare const CaptureTelemetryInfoSelected_base: S.Literal<["rust"]>;
653
- export declare class CaptureTelemetryInfoSelected extends CaptureTelemetryInfoSelected_base {
689
+ export declare class Int extends S.Int {
654
690
  }
655
- declare const CaptureTelemetryInfoActual_base: S.Literal<["rust"]>;
656
- export declare class CaptureTelemetryInfoActual extends CaptureTelemetryInfoActual_base {
657
- }
658
- declare const CaptureTelemetryInfoActualStyleMode_base: S.Literal<["compat_full", "native_default"]>;
659
- export declare class CaptureTelemetryInfoActualStyleMode extends CaptureTelemetryInfoActualStyleMode_base {
660
- }
661
- declare const CaptureTelemetryInfoIconBackendDecision_base: S.Literal<["cpu", "remote_gpu"]>;
662
- export declare class CaptureTelemetryInfoIconBackendDecision extends CaptureTelemetryInfoIconBackendDecision_base {
663
- }
664
- declare const CaptureTelemetryInfo_base: S.Struct<{
665
- requestedStyleMode: S.optionalWith<typeof CaptureTelemetryInfoRequestedStyleMode, {
666
- nullable: true;
667
- }>;
668
- selected: typeof CaptureTelemetryInfoSelected;
669
- actual: typeof CaptureTelemetryInfoActual;
670
- actualStyleMode: S.optionalWith<typeof CaptureTelemetryInfoActualStyleMode, {
671
- nullable: true;
672
- }>;
673
- rolloutApplied: typeof S.Boolean;
674
- preparedSessionHit: S.optionalWith<typeof S.Boolean, {
675
- nullable: true;
676
- }>;
677
- nativePoolHit: S.optionalWith<typeof S.Boolean, {
678
- nullable: true;
679
- }>;
680
- preparedPageHit: S.optionalWith<typeof S.Boolean, {
681
- nullable: true;
682
- }>;
683
- nativePoolCapacity: S.optionalWith<typeof S.Number, {
684
- nullable: true;
685
- }>;
686
- nativePoolProfile: S.optionalWith<typeof S.String, {
687
- nullable: true;
688
- }>;
689
- poolHit: S.optionalWith<typeof S.Boolean, {
690
- nullable: true;
691
- }>;
692
- connectMs: S.optionalWith<typeof S.Number, {
693
- nullable: true;
694
- }>;
695
- warmConnectionAgeMs: S.optionalWith<typeof S.Number, {
696
- nullable: true;
697
- }>;
698
- iconBackendDecision: S.optionalWith<typeof CaptureTelemetryInfoIconBackendDecision, {
691
+ declare const FetchSearchSnippetLocation_base: S.Struct<{
692
+ evidenceId: S.optionalWith<typeof Int, {
699
693
  nullable: true;
700
694
  }>;
701
- }>;
702
- export declare class CaptureTelemetryInfo extends CaptureTelemetryInfo_base {
703
- }
704
- declare const FetchSearchSnippetLocation_base: S.Struct<{
705
695
  markdownBlockId: S.optionalWith<typeof S.String, {
706
696
  nullable: true;
707
697
  }>;
@@ -773,9 +763,6 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
773
763
  assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
774
764
  nullable: true;
775
765
  }>;
776
- captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
777
- nullable: true;
778
- }>;
779
766
  search: S.optionalWith<typeof FetchSearchResult, {
780
767
  nullable: true;
781
768
  }>;
@@ -796,9 +783,6 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
796
783
  assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
797
784
  nullable: true;
798
785
  }>;
799
- captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
800
- nullable: true;
801
- }>;
802
786
  search: S.optionalWith<typeof FetchSearchResult, {
803
787
  nullable: true;
804
788
  }>;
@@ -812,23 +796,66 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
812
796
  nullable: true;
813
797
  }>;
814
798
  }>, never, {
815
- readonly markdown: string;
816
- } & {
817
- readonly meta: {
818
- readonly url: string;
819
- readonly markdown?: {
820
- readonly url: string;
821
- readonly moreTokens: number;
799
+ readonly data?: {
800
+ readonly assets?: readonly {
801
+ readonly id: string;
802
+ readonly kind: "data-url";
803
+ readonly placeholder: string;
804
+ readonly archiveKey: string;
805
+ readonly mimeType: string;
806
+ readonly sha256: string;
807
+ readonly bytes: number;
808
+ }[] | undefined;
809
+ readonly search?: {
810
+ readonly query: string;
811
+ readonly snippets: readonly {
812
+ readonly type: "text";
813
+ readonly source: "appendix" | "markdown" | "statejson";
814
+ readonly text: string;
815
+ readonly score: number;
816
+ readonly location?: {
817
+ readonly evidenceId?: number | undefined;
818
+ readonly markdownBlockId?: string | undefined;
819
+ readonly nodeIds?: readonly number[] | undefined;
820
+ readonly stateJsonSourceId?: number | undefined;
821
+ readonly jsonPath?: string | undefined;
822
+ } | undefined;
823
+ }[];
824
+ readonly meta?: {
825
+ readonly durationMs: number;
826
+ readonly sources: readonly {
827
+ readonly source: "appendix" | "markdown" | "statejson";
828
+ readonly chunkCount: number;
829
+ readonly batchCount: number;
830
+ readonly ranker: "local_lexical" | "zeroentropy";
831
+ readonly fallback: boolean;
832
+ readonly fallbackReason?: "error" | "timeout" | undefined;
833
+ readonly durationMs: number;
834
+ }[];
835
+ } | undefined;
822
836
  } | undefined;
823
- readonly appendix?: {
837
+ readonly screenshot?: {
824
838
  readonly url: string;
825
- readonly links: {
826
- readonly sameDomain: number;
827
- readonly external: number;
828
- };
839
+ readonly fullPage: boolean;
829
840
  } | undefined;
830
- readonly description?: string | undefined;
841
+ } | undefined;
842
+ } & {
843
+ readonly json: readonly {
844
+ readonly id: number;
845
+ readonly kind: "inline" | "network";
846
+ readonly role: "apollo-state" | "application-json" | "data-attribute" | "initial-state" | "ld+json" | "network-json" | "network-response" | "next-data" | "nuxt" | "other" | "script-tag";
847
+ readonly score: number;
848
+ readonly url?: string | undefined;
849
+ readonly method?: string | undefined;
850
+ readonly moreTokens?: number | undefined;
851
+ readonly keys?: readonly string[] | undefined;
852
+ }[];
853
+ } & {
854
+ readonly markdown: string;
855
+ } & {
856
+ readonly meta: {
831
857
  readonly version: 1;
858
+ readonly url: string;
832
859
  readonly capturedAt: string;
833
860
  readonly snapshotId: string;
834
861
  readonly lang: string;
@@ -837,87 +864,29 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
837
864
  readonly title?: string | undefined;
838
865
  readonly finalUrl?: string | undefined;
839
866
  readonly canonical?: string | undefined;
867
+ readonly description?: string | undefined;
840
868
  readonly author?: string | undefined;
841
869
  readonly createdAt?: string | undefined;
842
870
  readonly updatedAt?: string | undefined;
843
871
  readonly image?: string | undefined;
844
872
  readonly paginationNext?: string | undefined;
873
+ readonly appendix?: {
874
+ readonly url: string;
875
+ readonly links: {
876
+ readonly sameDomain: number;
877
+ readonly external: number;
878
+ };
879
+ } | undefined;
845
880
  readonly stateJson?: {
846
881
  readonly moreTokens: number;
847
882
  } | undefined;
883
+ readonly markdown?: {
884
+ readonly url: string;
885
+ readonly moreTokens: number;
886
+ } | undefined;
848
887
  readonly blocked?: string | undefined;
849
888
  readonly loadingStatus?: string | undefined;
850
889
  };
851
- } & {
852
- readonly json: readonly {
853
- readonly keys?: readonly string[] | undefined;
854
- readonly url?: string | undefined;
855
- readonly moreTokens?: number | undefined;
856
- readonly id: number;
857
- readonly kind: "inline" | "network";
858
- readonly role: "ld+json" | "next-data" | "nuxt" | "apollo-state" | "initial-state" | "application-json" | "script-tag" | "data-attribute" | "network-json" | "network-response" | "other";
859
- readonly score: number;
860
- readonly method?: string | undefined;
861
- }[];
862
- } & {
863
- readonly data?: {
864
- readonly search?: {
865
- readonly meta?: {
866
- readonly durationMs: number;
867
- readonly sources: readonly {
868
- readonly source: "markdown" | "appendix" | "statejson";
869
- readonly chunkCount: number;
870
- readonly batchCount: number;
871
- readonly ranker: "zeroentropy" | "local_lexical";
872
- readonly fallback: boolean;
873
- readonly fallbackReason?: "timeout" | "error" | undefined;
874
- readonly durationMs: number;
875
- }[];
876
- } | undefined;
877
- readonly query: string;
878
- readonly snippets: readonly {
879
- readonly score: number;
880
- readonly source: "markdown" | "appendix" | "statejson";
881
- readonly type: "text";
882
- readonly text: string;
883
- readonly location?: {
884
- readonly markdownBlockId?: string | undefined;
885
- readonly nodeIds?: readonly number[] | undefined;
886
- readonly stateJsonSourceId?: number | undefined;
887
- readonly jsonPath?: string | undefined;
888
- } | undefined;
889
- }[];
890
- } | undefined;
891
- readonly screenshot?: {
892
- readonly url: string;
893
- readonly fullPage: boolean;
894
- } | undefined;
895
- readonly assets?: readonly {
896
- readonly id: string;
897
- readonly kind: "data-url";
898
- readonly placeholder: string;
899
- readonly archiveKey: string;
900
- readonly mimeType: string;
901
- readonly sha256: string;
902
- readonly bytes: number;
903
- }[] | undefined;
904
- readonly captureTelemetry?: {
905
- readonly requestedStyleMode?: "compat_full" | "native_default" | undefined;
906
- readonly selected: "rust";
907
- readonly actual: "rust";
908
- readonly actualStyleMode?: "compat_full" | "native_default" | undefined;
909
- readonly rolloutApplied: boolean;
910
- readonly preparedSessionHit?: boolean | undefined;
911
- readonly nativePoolHit?: boolean | undefined;
912
- readonly preparedPageHit?: boolean | undefined;
913
- readonly nativePoolCapacity?: number | undefined;
914
- readonly nativePoolProfile?: string | undefined;
915
- readonly poolHit?: boolean | undefined;
916
- readonly connectMs?: number | undefined;
917
- readonly warmConnectionAgeMs?: number | undefined;
918
- readonly iconBackendDecision?: "cpu" | "remote_gpu" | undefined;
919
- } | undefined;
920
- } | undefined;
921
890
  }, {}, {}>;
922
891
  export declare class FetchObjectModeResult extends FetchObjectModeResult_base {
923
892
  }
@@ -933,18 +902,8 @@ declare const FetchFetchJson403_base: S.Union<[S.Struct<{
933
902
  }>, typeof FetchBlocked]>;
934
903
  export declare class FetchFetchJson403 extends FetchFetchJson403_base {
935
904
  }
936
- declare const IncludeHtmlConfig_base: S.Record$<typeof S.String, typeof S.Unknown>;
937
- export declare class IncludeHtmlConfig extends IncludeHtmlConfig_base {
938
- }
939
- declare const IncludeMarkdownConfig_base: S.Record$<typeof S.String, typeof S.Unknown>;
940
- export declare class IncludeMarkdownConfig extends IncludeMarkdownConfig_base {
941
- }
942
- declare const IncludeScreenshotConfig_base: S.Struct<{
943
- fullPage: S.optionalWith<typeof S.Boolean, {
944
- nullable: true;
945
- }>;
946
- }>;
947
- export declare class IncludeScreenshotConfig extends IncludeScreenshotConfig_base {
905
+ declare const FetchFetchJson413_base: S.Union<[typeof PayloadTooLarge, typeof FetchPageTooLarge]>;
906
+ export declare class FetchFetchJson413 extends FetchFetchJson413_base {
948
907
  }
949
908
  declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
950
909
  snapshotId: S.filter<typeof S.String>;
@@ -960,19 +919,15 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
960
919
  }>;
961
920
  }>;
962
921
  include: S.optionalWith<S.Struct<{
963
- html: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeHtmlConfig]>, {
964
- nullable: true;
965
- }>;
966
- markdown: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeMarkdownConfig]>, {
922
+ html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
967
923
  nullable: true;
968
924
  }>;
969
- screenshot: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeScreenshotConfig]>, {
925
+ markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
970
926
  nullable: true;
971
927
  }>;
972
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
973
- prompt: S.optionalWith<S.filter<typeof S.String>, {
928
+ screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
929
+ fullPage: S.optionalWith<typeof S.Boolean, {
974
930
  nullable: true;
975
- default: () => "You are a helpful assistant that summarizes web page content.\nGiven the markdown content of a web page, provide a clear and concise summary.\nFocus on the main points and key information.\nKeep the summary informative but brief.";
976
931
  }>;
977
932
  }>]>, {
978
933
  nullable: true;
@@ -1027,19 +982,15 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
1027
982
  }>;
1028
983
  }>;
1029
984
  include: S.optionalWith<S.Struct<{
1030
- html: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeHtmlConfig]>, {
1031
- nullable: true;
1032
- }>;
1033
- markdown: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeMarkdownConfig]>, {
985
+ html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1034
986
  nullable: true;
1035
987
  }>;
1036
- screenshot: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeScreenshotConfig]>, {
988
+ markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1037
989
  nullable: true;
1038
990
  }>;
1039
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
1040
- prompt: S.optionalWith<S.filter<typeof S.String>, {
991
+ screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
992
+ fullPage: S.optionalWith<typeof S.Boolean, {
1041
993
  nullable: true;
1042
- default: () => "You are a helpful assistant that summarizes web page content.\nGiven the markdown content of a web page, provide a clear and concise summary.\nFocus on the main points and key information.\nKeep the summary informative but brief.";
1043
994
  }>;
1044
995
  }>]>, {
1045
996
  nullable: true;
@@ -1091,9 +1042,6 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
1091
1042
  readonly screenshot?: boolean | {
1092
1043
  readonly fullPage?: boolean | undefined;
1093
1044
  } | undefined;
1094
- readonly summary?: boolean | {
1095
- readonly prompt: string;
1096
- } | undefined;
1097
1045
  readonly links?: boolean | {
1098
1046
  readonly sameDomainOnly: boolean;
1099
1047
  readonly includePatterns?: readonly string[] | undefined;
@@ -1141,51 +1089,56 @@ declare const FetchSnapshotSearchResult_base: S.Class<FetchSnapshotSearchResult,
1141
1089
  response: typeof ResponseInfo;
1142
1090
  search: typeof FetchSearchResult;
1143
1091
  durationMs: S.filter<typeof S.Number>;
1092
+ playground: typeof S.String;
1144
1093
  }, S.Struct.Encoded<{
1145
1094
  snapshotId: S.filter<typeof S.String>;
1146
1095
  response: typeof ResponseInfo;
1147
1096
  search: typeof FetchSearchResult;
1148
1097
  durationMs: S.filter<typeof S.Number>;
1098
+ playground: typeof S.String;
1149
1099
  }>, never, {
1100
+ readonly durationMs: number;
1101
+ } & {
1102
+ readonly playground: string;
1103
+ } & {
1104
+ readonly response: {
1105
+ readonly url: string;
1106
+ readonly requestedUrl?: string | undefined;
1107
+ readonly originStatusCode?: number | undefined;
1108
+ readonly redirectStatusCode?: number | undefined;
1109
+ readonly headers?: {} | undefined;
1110
+ };
1111
+ } & {
1150
1112
  readonly search: {
1151
- readonly meta?: {
1152
- readonly durationMs: number;
1153
- readonly sources: readonly {
1154
- readonly source: "markdown" | "appendix" | "statejson";
1155
- readonly chunkCount: number;
1156
- readonly batchCount: number;
1157
- readonly ranker: "zeroentropy" | "local_lexical";
1158
- readonly fallback: boolean;
1159
- readonly fallbackReason?: "timeout" | "error" | undefined;
1160
- readonly durationMs: number;
1161
- }[];
1162
- } | undefined;
1163
1113
  readonly query: string;
1164
1114
  readonly snippets: readonly {
1165
- readonly score: number;
1166
- readonly source: "markdown" | "appendix" | "statejson";
1167
1115
  readonly type: "text";
1116
+ readonly source: "appendix" | "markdown" | "statejson";
1168
1117
  readonly text: string;
1118
+ readonly score: number;
1169
1119
  readonly location?: {
1120
+ readonly evidenceId?: number | undefined;
1170
1121
  readonly markdownBlockId?: string | undefined;
1171
1122
  readonly nodeIds?: readonly number[] | undefined;
1172
1123
  readonly stateJsonSourceId?: number | undefined;
1173
1124
  readonly jsonPath?: string | undefined;
1174
1125
  } | undefined;
1175
1126
  }[];
1176
- };
1177
- } & {
1178
- readonly response: {
1179
- readonly url: string;
1180
- readonly requestedUrl?: string | undefined;
1181
- readonly originStatusCode?: number | undefined;
1182
- readonly redirectStatusCode?: number | undefined;
1183
- readonly headers?: {} | undefined;
1127
+ readonly meta?: {
1128
+ readonly durationMs: number;
1129
+ readonly sources: readonly {
1130
+ readonly source: "appendix" | "markdown" | "statejson";
1131
+ readonly chunkCount: number;
1132
+ readonly batchCount: number;
1133
+ readonly ranker: "local_lexical" | "zeroentropy";
1134
+ readonly fallback: boolean;
1135
+ readonly fallbackReason?: "error" | "timeout" | undefined;
1136
+ readonly durationMs: number;
1137
+ }[];
1138
+ } | undefined;
1184
1139
  };
1185
1140
  } & {
1186
1141
  readonly snapshotId: string;
1187
- } & {
1188
- readonly durationMs: number;
1189
1142
  }, {}, {}>;
1190
1143
  export declare class FetchSnapshotSearchResult extends FetchSnapshotSearchResult_base {
1191
1144
  }
@@ -1223,22 +1176,25 @@ declare const FetchSnapshotSearchNotFound_base: S.Class<FetchSnapshotSearchNotFo
1223
1176
  }, {}, {}>;
1224
1177
  export declare class FetchSnapshotSearchNotFound extends FetchSnapshotSearchNotFound_base {
1225
1178
  }
1179
+ declare const FetchBatchedParams_base: S.Struct<{
1180
+ 'x-idempotency-key': S.optionalWith<S.filter<S.filter<typeof S.String>>, {
1181
+ nullable: true;
1182
+ }>;
1183
+ }>;
1184
+ export declare class FetchBatchedParams extends FetchBatchedParams_base {
1185
+ }
1226
1186
  declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
1227
1187
  urls: S.NonEmptyArray<typeof S.String>;
1228
1188
  include: S.optionalWith<S.Struct<{
1229
- html: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeHtmlConfig]>, {
1230
- nullable: true;
1231
- }>;
1232
- markdown: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeMarkdownConfig]>, {
1189
+ html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1233
1190
  nullable: true;
1234
1191
  }>;
1235
- screenshot: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeScreenshotConfig]>, {
1192
+ markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1236
1193
  nullable: true;
1237
1194
  }>;
1238
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
1239
- prompt: S.optionalWith<S.filter<typeof S.String>, {
1195
+ screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
1196
+ fullPage: S.optionalWith<typeof S.Boolean, {
1240
1197
  nullable: true;
1241
- default: () => "You are a helpful assistant that summarizes web page content.\nGiven the markdown content of a web page, provide a clear and concise summary.\nFocus on the main points and key information.\nKeep the summary informative but brief.";
1242
1198
  }>;
1243
1199
  }>]>, {
1244
1200
  nullable: true;
@@ -1290,19 +1246,15 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
1290
1246
  }, S.Struct.Encoded<{
1291
1247
  urls: S.NonEmptyArray<typeof S.String>;
1292
1248
  include: S.optionalWith<S.Struct<{
1293
- html: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeHtmlConfig]>, {
1294
- nullable: true;
1295
- }>;
1296
- markdown: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeMarkdownConfig]>, {
1249
+ html: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1297
1250
  nullable: true;
1298
1251
  }>;
1299
- screenshot: S.optionalWith<S.Union<[typeof S.Boolean, typeof IncludeScreenshotConfig]>, {
1252
+ markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
1300
1253
  nullable: true;
1301
1254
  }>;
1302
- summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
1303
- prompt: S.optionalWith<S.filter<typeof S.String>, {
1255
+ screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
1256
+ fullPage: S.optionalWith<typeof S.Boolean, {
1304
1257
  nullable: true;
1305
- default: () => "You are a helpful assistant that summarizes web page content.\nGiven the markdown content of a web page, provide a clear and concise summary.\nFocus on the main points and key information.\nKeep the summary informative but brief.";
1306
1258
  }>;
1307
1259
  }>]>, {
1308
1260
  nullable: true;
@@ -1352,6 +1304,10 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
1352
1304
  nullable: true;
1353
1305
  }>;
1354
1306
  }>, never, {
1307
+ readonly browserConfig?: {
1308
+ readonly scrollFullPage: boolean;
1309
+ } | undefined;
1310
+ } & {
1355
1311
  readonly include?: {
1356
1312
  readonly html?: boolean | {
1357
1313
  readonly [x: string]: unknown;
@@ -1362,9 +1318,6 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
1362
1318
  readonly screenshot?: boolean | {
1363
1319
  readonly fullPage?: boolean | undefined;
1364
1320
  } | undefined;
1365
- readonly summary?: boolean | {
1366
- readonly prompt: string;
1367
- } | undefined;
1368
1321
  readonly links?: boolean | {
1369
1322
  readonly sameDomainOnly: boolean;
1370
1323
  readonly includePatterns?: readonly string[] | undefined;
@@ -1377,10 +1330,6 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
1377
1330
  readonly json: boolean;
1378
1331
  readonly appendix?: boolean | undefined;
1379
1332
  } | undefined;
1380
- } & {
1381
- readonly browserConfig?: {
1382
- readonly scrollFullPage: boolean;
1383
- } | undefined;
1384
1333
  } & {
1385
1334
  readonly urls: readonly [string, ...string[]];
1386
1335
  }, {}, {}>;
@@ -1410,6 +1359,29 @@ declare const FetchBatched403_base: S.Struct<{
1410
1359
  }>;
1411
1360
  export declare class FetchBatched403 extends FetchBatched403_base {
1412
1361
  }
1362
+ declare const BatchedIdempotencyConflictReason_base: S.Literal<["payload_mismatch"]>;
1363
+ export declare class BatchedIdempotencyConflictReason extends BatchedIdempotencyConflictReason_base {
1364
+ }
1365
+ declare const BatchedIdempotencyConflictTag_base: S.Literal<["BatchedIdempotencyConflict"]>;
1366
+ export declare class BatchedIdempotencyConflictTag extends BatchedIdempotencyConflictTag_base {
1367
+ }
1368
+ declare const BatchedIdempotencyConflict_base: S.Class<BatchedIdempotencyConflict, {
1369
+ existingRunId: typeof S.String;
1370
+ reason: typeof BatchedIdempotencyConflictReason;
1371
+ _tag: typeof BatchedIdempotencyConflictTag;
1372
+ }, S.Struct.Encoded<{
1373
+ existingRunId: typeof S.String;
1374
+ reason: typeof BatchedIdempotencyConflictReason;
1375
+ _tag: typeof BatchedIdempotencyConflictTag;
1376
+ }>, never, {
1377
+ readonly _tag: "BatchedIdempotencyConflict";
1378
+ } & {
1379
+ readonly existingRunId: string;
1380
+ } & {
1381
+ readonly reason: "payload_mismatch";
1382
+ }, {}, {}>;
1383
+ export declare class BatchedIdempotencyConflict extends BatchedIdempotencyConflict_base {
1384
+ }
1413
1385
  declare const FetchGetBatchedParams_base: S.Struct<{
1414
1386
  limit: S.optionalWith<typeof S.String, {
1415
1387
  nullable: true;
@@ -1423,12 +1395,15 @@ declare const FetchGetBatchedParams_base: S.Struct<{
1423
1395
  }>;
1424
1396
  export declare class FetchGetBatchedParams extends FetchGetBatchedParams_base {
1425
1397
  }
1426
- declare const BatchedStatusStatus_base: S.Literal<["QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]>;
1398
+ declare const BatchedStatusStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
1427
1399
  export declare class BatchedStatusStatus extends BatchedStatusStatus_base {
1428
1400
  }
1429
- declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]>;
1401
+ declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
1430
1402
  export declare class BatchedStatusBatchedStatus extends BatchedStatusBatchedStatus_base {
1431
1403
  }
1404
+ declare const BatchedFetchItemStatus_base: S.Literal<["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"]>;
1405
+ export declare class BatchedFetchItemStatus extends BatchedFetchItemStatus_base {
1406
+ }
1432
1407
  declare const IconMeta_base: S.Struct<{
1433
1408
  href: S.filter<typeof S.String>;
1434
1409
  rel: S.filter<typeof S.String>;
@@ -1563,6 +1538,55 @@ declare const RenderEnginesInfo_base: S.Struct<{
1563
1538
  }>;
1564
1539
  export declare class RenderEnginesInfo extends RenderEnginesInfo_base {
1565
1540
  }
1541
+ declare const BatchedFetchItem_base: S.Struct<{
1542
+ status: typeof BatchedFetchItemStatus;
1543
+ data: S.optionalWith<S.Struct<{
1544
+ response: typeof ResponseInfo;
1545
+ meta: S.optionalWith<typeof PageMeta, {
1546
+ nullable: true;
1547
+ }>;
1548
+ json: S.optionalWith<S.Array$<S.Struct<{}>>, {
1549
+ nullable: true;
1550
+ }>;
1551
+ snapshotId: S.optionalWith<typeof NonEmptyString, {
1552
+ nullable: true;
1553
+ }>;
1554
+ html: S.optionalWith<S.filter<typeof S.String>, {
1555
+ nullable: true;
1556
+ }>;
1557
+ markdown: S.optionalWith<S.filter<typeof S.String>, {
1558
+ nullable: true;
1559
+ }>;
1560
+ screenshot: S.optionalWith<S.Struct<{
1561
+ url: typeof S.String;
1562
+ fullPage: typeof S.Boolean;
1563
+ }>, {
1564
+ nullable: true;
1565
+ }>;
1566
+ search: S.optionalWith<typeof FetchSearchResult, {
1567
+ nullable: true;
1568
+ }>;
1569
+ links: S.optionalWith<S.Array$<typeof FetchLink>, {
1570
+ nullable: true;
1571
+ }>;
1572
+ appendix: S.optionalWith<S.filter<typeof S.String>, {
1573
+ nullable: true;
1574
+ }>;
1575
+ renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
1576
+ nullable: true;
1577
+ }>;
1578
+ assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
1579
+ nullable: true;
1580
+ }>;
1581
+ }>, {
1582
+ nullable: true;
1583
+ }>;
1584
+ error: S.optionalWith<S.Union<[typeof FetchBlocked, typeof FetchPageTooLarge]>, {
1585
+ nullable: true;
1586
+ }>;
1587
+ }>;
1588
+ export declare class BatchedFetchItem extends BatchedFetchItem_base {
1589
+ }
1566
1590
  declare const PaginationMeta_base: S.Struct<{
1567
1591
  total: typeof S.Number;
1568
1592
  limit: typeof S.Number;
@@ -1576,195 +1600,55 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
1576
1600
  status: typeof BatchedStatusStatus;
1577
1601
  batchedStatus: typeof BatchedStatusBatchedStatus;
1578
1602
  totalUrls: typeof S.Number;
1579
- results: S.Array$<S.Struct<{
1580
- data: S.Struct<{
1581
- response: typeof ResponseInfo;
1582
- meta: S.optionalWith<typeof PageMeta, {
1583
- nullable: true;
1584
- }>;
1585
- json: S.optionalWith<S.Array$<S.Struct<{}>>, {
1586
- nullable: true;
1587
- }>;
1588
- snapshotId: S.optionalWith<typeof NonEmptyString, {
1589
- nullable: true;
1590
- }>;
1591
- html: S.optionalWith<S.filter<typeof S.String>, {
1592
- nullable: true;
1593
- }>;
1594
- markdown: S.optionalWith<S.filter<typeof S.String>, {
1595
- nullable: true;
1596
- }>;
1597
- screenshot: S.optionalWith<S.Struct<{
1598
- url: typeof S.String;
1599
- fullPage: typeof S.Boolean;
1600
- }>, {
1601
- nullable: true;
1602
- }>;
1603
- summary: S.optionalWith<S.filter<typeof S.String>, {
1604
- nullable: true;
1605
- }>;
1606
- search: S.optionalWith<typeof FetchSearchResult, {
1607
- nullable: true;
1608
- }>;
1609
- links: S.optionalWith<S.Array$<typeof FetchLink>, {
1610
- nullable: true;
1611
- }>;
1612
- appendix: S.optionalWith<S.filter<typeof S.String>, {
1613
- nullable: true;
1614
- }>;
1615
- renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
1616
- nullable: true;
1617
- }>;
1618
- captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
1619
- nullable: true;
1620
- }>;
1621
- assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
1622
- nullable: true;
1623
- }>;
1624
- blocked: S.optionalWith<S.Struct<{
1625
- blockedType: S.optionalWith<typeof S.String, {
1626
- nullable: true;
1627
- }>;
1628
- }>, {
1629
- nullable: true;
1630
- }>;
1631
- }>;
1632
- }>>;
1603
+ results: S.Array$<typeof BatchedFetchItem>;
1633
1604
  pagination: typeof PaginationMeta;
1634
1605
  }, S.Struct.Encoded<{
1635
1606
  id: typeof S.String;
1636
1607
  status: typeof BatchedStatusStatus;
1637
1608
  batchedStatus: typeof BatchedStatusBatchedStatus;
1638
1609
  totalUrls: typeof S.Number;
1639
- results: S.Array$<S.Struct<{
1640
- data: S.Struct<{
1641
- response: typeof ResponseInfo;
1642
- meta: S.optionalWith<typeof PageMeta, {
1643
- nullable: true;
1644
- }>;
1645
- json: S.optionalWith<S.Array$<S.Struct<{}>>, {
1646
- nullable: true;
1647
- }>;
1648
- snapshotId: S.optionalWith<typeof NonEmptyString, {
1649
- nullable: true;
1650
- }>;
1651
- html: S.optionalWith<S.filter<typeof S.String>, {
1652
- nullable: true;
1653
- }>;
1654
- markdown: S.optionalWith<S.filter<typeof S.String>, {
1655
- nullable: true;
1656
- }>;
1657
- screenshot: S.optionalWith<S.Struct<{
1658
- url: typeof S.String;
1659
- fullPage: typeof S.Boolean;
1660
- }>, {
1661
- nullable: true;
1662
- }>;
1663
- summary: S.optionalWith<S.filter<typeof S.String>, {
1664
- nullable: true;
1665
- }>;
1666
- search: S.optionalWith<typeof FetchSearchResult, {
1667
- nullable: true;
1668
- }>;
1669
- links: S.optionalWith<S.Array$<typeof FetchLink>, {
1670
- nullable: true;
1671
- }>;
1672
- appendix: S.optionalWith<S.filter<typeof S.String>, {
1673
- nullable: true;
1674
- }>;
1675
- renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
1676
- nullable: true;
1677
- }>;
1678
- captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
1679
- nullable: true;
1680
- }>;
1681
- assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
1682
- nullable: true;
1683
- }>;
1684
- blocked: S.optionalWith<S.Struct<{
1685
- blockedType: S.optionalWith<typeof S.String, {
1686
- nullable: true;
1687
- }>;
1688
- }>, {
1689
- nullable: true;
1690
- }>;
1691
- }>;
1692
- }>>;
1610
+ results: S.Array$<typeof BatchedFetchItem>;
1693
1611
  pagination: typeof PaginationMeta;
1694
1612
  }>, never, {
1695
- readonly status: "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
1613
+ readonly batchedStatus: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
1696
1614
  } & {
1697
1615
  readonly id: string;
1698
- } & {
1699
- readonly batchedStatus: "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
1700
- } & {
1701
- readonly totalUrls: number;
1702
1616
  } & {
1703
1617
  readonly pagination: {
1618
+ readonly total: number;
1704
1619
  readonly limit: number;
1705
1620
  readonly offset: number;
1706
- readonly total: number;
1707
1621
  readonly hasMore: boolean;
1708
1622
  };
1709
1623
  } & {
1710
1624
  readonly results: readonly {
1711
- readonly data: {
1712
- readonly search?: {
1713
- readonly meta?: {
1714
- readonly durationMs: number;
1715
- readonly sources: readonly {
1716
- readonly source: "markdown" | "appendix" | "statejson";
1717
- readonly chunkCount: number;
1718
- readonly batchCount: number;
1719
- readonly ranker: "zeroentropy" | "local_lexical";
1720
- readonly fallback: boolean;
1721
- readonly fallbackReason?: "timeout" | "error" | undefined;
1722
- readonly durationMs: number;
1723
- }[];
1724
- } | undefined;
1725
- readonly query: string;
1726
- readonly snippets: readonly {
1727
- readonly score: number;
1728
- readonly source: "markdown" | "appendix" | "statejson";
1729
- readonly type: "text";
1730
- readonly text: string;
1731
- readonly location?: {
1732
- readonly markdownBlockId?: string | undefined;
1733
- readonly nodeIds?: readonly number[] | undefined;
1734
- readonly stateJsonSourceId?: number | undefined;
1735
- readonly jsonPath?: string | undefined;
1736
- } | undefined;
1737
- }[];
1738
- } | undefined;
1739
- readonly html?: string | undefined;
1740
- readonly markdown?: string | undefined;
1741
- readonly screenshot?: {
1742
- readonly url: string;
1743
- readonly fullPage: boolean;
1744
- } | undefined;
1745
- readonly summary?: string | undefined;
1746
- readonly links?: readonly {
1625
+ readonly status: "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "SUCCEEDED";
1626
+ readonly data?: {
1627
+ readonly response: {
1747
1628
  readonly url: string;
1748
- readonly text?: string | undefined;
1749
- }[] | undefined;
1629
+ readonly requestedUrl?: string | undefined;
1630
+ readonly originStatusCode?: number | undefined;
1631
+ readonly redirectStatusCode?: number | undefined;
1632
+ readonly headers?: {} | undefined;
1633
+ };
1750
1634
  readonly meta?: {
1751
- readonly description?: string | undefined;
1752
1635
  readonly title?: string | undefined;
1636
+ readonly description?: string | undefined;
1753
1637
  readonly canonicalUrl?: string | undefined;
1754
1638
  readonly language?: string | undefined;
1755
1639
  readonly charset?: string | undefined;
1756
1640
  readonly favicon?: string | undefined;
1757
1641
  readonly icons?: readonly {
1758
- readonly type?: string | undefined;
1759
1642
  readonly href: string;
1760
1643
  readonly rel: string;
1644
+ readonly type?: string | undefined;
1761
1645
  readonly sizes?: string | undefined;
1762
1646
  }[] | undefined;
1763
1647
  readonly openGraph?: {
1764
- readonly url?: string | undefined;
1765
- readonly description?: string | undefined;
1766
1648
  readonly title?: string | undefined;
1649
+ readonly description?: string | undefined;
1767
1650
  readonly type?: string | undefined;
1651
+ readonly url?: string | undefined;
1768
1652
  readonly siteName?: string | undefined;
1769
1653
  readonly locale?: string | undefined;
1770
1654
  readonly images?: readonly {
@@ -1775,26 +1659,59 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
1775
1659
  }[] | undefined;
1776
1660
  } | undefined;
1777
1661
  readonly twitter?: {
1778
- readonly description?: string | undefined;
1779
- readonly title?: string | undefined;
1780
- readonly image?: string | undefined;
1781
1662
  readonly card?: string | undefined;
1782
1663
  readonly site?: string | undefined;
1783
1664
  readonly creator?: string | undefined;
1665
+ readonly title?: string | undefined;
1666
+ readonly description?: string | undefined;
1667
+ readonly image?: string | undefined;
1784
1668
  } | undefined;
1785
1669
  } | undefined;
1786
- readonly response: {
1787
- readonly url: string;
1788
- readonly requestedUrl?: string | undefined;
1789
- readonly originStatusCode?: number | undefined;
1790
- readonly redirectStatusCode?: number | undefined;
1791
- readonly headers?: {} | undefined;
1792
- };
1793
1670
  readonly json?: readonly {}[] | undefined;
1794
- readonly appendix?: string | undefined;
1795
1671
  readonly snapshotId?: string | undefined;
1796
- readonly blocked?: {
1797
- readonly blockedType?: string | undefined;
1672
+ readonly html?: string | undefined;
1673
+ readonly markdown?: string | undefined;
1674
+ readonly screenshot?: {
1675
+ readonly url: string;
1676
+ readonly fullPage: boolean;
1677
+ } | undefined;
1678
+ readonly search?: {
1679
+ readonly query: string;
1680
+ readonly snippets: readonly {
1681
+ readonly type: "text";
1682
+ readonly source: "appendix" | "markdown" | "statejson";
1683
+ readonly text: string;
1684
+ readonly score: number;
1685
+ readonly location?: {
1686
+ readonly evidenceId?: number | undefined;
1687
+ readonly markdownBlockId?: string | undefined;
1688
+ readonly nodeIds?: readonly number[] | undefined;
1689
+ readonly stateJsonSourceId?: number | undefined;
1690
+ readonly jsonPath?: string | undefined;
1691
+ } | undefined;
1692
+ }[];
1693
+ readonly meta?: {
1694
+ readonly durationMs: number;
1695
+ readonly sources: readonly {
1696
+ readonly source: "appendix" | "markdown" | "statejson";
1697
+ readonly chunkCount: number;
1698
+ readonly batchCount: number;
1699
+ readonly ranker: "local_lexical" | "zeroentropy";
1700
+ readonly fallback: boolean;
1701
+ readonly fallbackReason?: "error" | "timeout" | undefined;
1702
+ readonly durationMs: number;
1703
+ }[];
1704
+ } | undefined;
1705
+ } | undefined;
1706
+ readonly links?: readonly {
1707
+ readonly url: string;
1708
+ readonly text?: string | undefined;
1709
+ }[] | undefined;
1710
+ readonly appendix?: string | undefined;
1711
+ readonly renderEngines?: {
1712
+ readonly capture?: "rust" | undefined;
1713
+ readonly markdown?: "rust" | undefined;
1714
+ readonly tree?: "rust" | undefined;
1798
1715
  } | undefined;
1799
1716
  readonly assets?: readonly {
1800
1717
  readonly id: string;
@@ -1805,29 +1722,23 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
1805
1722
  readonly sha256: string;
1806
1723
  readonly bytes: number;
1807
1724
  }[] | undefined;
1808
- readonly captureTelemetry?: {
1809
- readonly requestedStyleMode?: "compat_full" | "native_default" | undefined;
1810
- readonly selected: "rust";
1811
- readonly actual: "rust";
1812
- readonly actualStyleMode?: "compat_full" | "native_default" | undefined;
1813
- readonly rolloutApplied: boolean;
1814
- readonly preparedSessionHit?: boolean | undefined;
1815
- readonly nativePoolHit?: boolean | undefined;
1816
- readonly preparedPageHit?: boolean | undefined;
1817
- readonly nativePoolCapacity?: number | undefined;
1818
- readonly nativePoolProfile?: string | undefined;
1819
- readonly poolHit?: boolean | undefined;
1820
- readonly connectMs?: number | undefined;
1821
- readonly warmConnectionAgeMs?: number | undefined;
1822
- readonly iconBackendDecision?: "cpu" | "remote_gpu" | undefined;
1823
- } | undefined;
1824
- readonly renderEngines?: {
1825
- readonly markdown?: "rust" | undefined;
1826
- readonly capture?: "rust" | undefined;
1827
- readonly tree?: "rust" | undefined;
1828
- } | undefined;
1829
- };
1725
+ } | undefined;
1726
+ readonly error?: {
1727
+ readonly url: string;
1728
+ readonly blockedType?: string | undefined;
1729
+ readonly _tag: "FetchBlocked";
1730
+ } | {
1731
+ readonly url: string;
1732
+ readonly limitKind?: "ast_bytes" | "domsnapshot_bytes" | "transfer_bytes" | undefined;
1733
+ readonly limitBytes?: number | undefined;
1734
+ readonly measuredBytes?: number | undefined;
1735
+ readonly _tag: "FetchPageTooLarge";
1736
+ } | undefined;
1830
1737
  }[];
1738
+ } & {
1739
+ readonly status: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
1740
+ } & {
1741
+ readonly totalUrls: number;
1831
1742
  }, {}, {}>;
1832
1743
  export declare class BatchedStatus extends BatchedStatus_base {
1833
1744
  }
@@ -1843,6 +1754,45 @@ export declare class BatchedIncludeUnsupported extends BatchedIncludeUnsupported
1843
1754
  declare const FetchGetBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BatchedIncludeUnsupported]>;
1844
1755
  export declare class FetchGetBatched400 extends FetchGetBatched400_base {
1845
1756
  }
1757
+ declare const BatchedCancellationStatus_base: S.Literal<["CANCELLING", "CANCELLED"]>;
1758
+ export declare class BatchedCancellationStatus extends BatchedCancellationStatus_base {
1759
+ }
1760
+ declare const BatchedCancellation_base: S.Class<BatchedCancellation, {
1761
+ id: typeof S.String;
1762
+ status: typeof BatchedCancellationStatus;
1763
+ }, S.Struct.Encoded<{
1764
+ id: typeof S.String;
1765
+ status: typeof BatchedCancellationStatus;
1766
+ }>, never, {
1767
+ readonly id: string;
1768
+ } & {
1769
+ readonly status: "CANCELLED" | "CANCELLING";
1770
+ }, {}, {}>;
1771
+ export declare class BatchedCancellation extends BatchedCancellation_base {
1772
+ }
1773
+ declare const BatchedCancellationConflictStatus_base: S.Literal<["COMPLETED", "FAILED"]>;
1774
+ export declare class BatchedCancellationConflictStatus extends BatchedCancellationConflictStatus_base {
1775
+ }
1776
+ declare const BatchedCancellationConflictTag_base: S.Literal<["BatchedCancellationConflict"]>;
1777
+ export declare class BatchedCancellationConflictTag extends BatchedCancellationConflictTag_base {
1778
+ }
1779
+ declare const BatchedCancellationConflict_base: S.Class<BatchedCancellationConflict, {
1780
+ id: typeof S.String;
1781
+ status: typeof BatchedCancellationConflictStatus;
1782
+ _tag: typeof BatchedCancellationConflictTag;
1783
+ }, S.Struct.Encoded<{
1784
+ id: typeof S.String;
1785
+ status: typeof BatchedCancellationConflictStatus;
1786
+ _tag: typeof BatchedCancellationConflictTag;
1787
+ }>, never, {
1788
+ readonly _tag: "BatchedCancellationConflict";
1789
+ } & {
1790
+ readonly id: string;
1791
+ } & {
1792
+ readonly status: "COMPLETED" | "FAILED";
1793
+ }, {}, {}>;
1794
+ export declare class BatchedCancellationConflict extends BatchedCancellationConflict_base {
1795
+ }
1846
1796
  export declare const make: (httpClient: HttpClient.HttpClient, options?: {
1847
1797
  readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
1848
1798
  }) => Client;
@@ -1850,14 +1800,18 @@ export interface Client {
1850
1800
  readonly fetchFetch: (options: {
1851
1801
  readonly params: typeof FetchFetchParams.Encoded;
1852
1802
  readonly payload: typeof FetchFetchRequest.Encoded;
1853
- }) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof FetchFetch400.Type | typeof AuthFailed.Type | typeof FetchFetch403.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
1803
+ }) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof FetchFetch400.Type | typeof AuthFailed.Type | typeof FetchFetch403.Type | typeof FetchFetch413.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
1854
1804
  readonly fetchFetchJson: (options: {
1855
1805
  readonly params: typeof FetchFetchJsonParams.Encoded;
1856
1806
  readonly payload: typeof FetchFetchJsonRequest.Encoded;
1857
- }) => Effect.Effect<typeof FetchObjectModeResult.Type, HttpClientError.HttpClientError | ParseError | typeof FetchFetchJson400.Type | typeof AuthFailed.Type | typeof FetchFetchJson403.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
1807
+ }) => Effect.Effect<typeof FetchObjectModeResult.Type, HttpClientError.HttpClientError | ParseError | typeof FetchFetchJson400.Type | typeof AuthFailed.Type | typeof FetchFetchJson403.Type | typeof FetchFetchJson413.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
1858
1808
  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>;
1859
- readonly fetchBatched: (options: typeof FetchBatchedRequest.Encoded) => Effect.Effect<typeof BatchedRun.Type, HttpClientError.HttpClientError | ParseError | typeof FetchBatched400.Type | typeof AuthFailed.Type | typeof FetchBatched403.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
1809
+ readonly fetchBatched: (options: {
1810
+ readonly params: typeof FetchBatchedParams.Encoded;
1811
+ readonly payload: typeof FetchBatchedRequest.Encoded;
1812
+ }) => 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>;
1860
1813
  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>;
1814
+ 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>;
1861
1815
  }
1862
1816
  export {};
1863
1817
  //# sourceMappingURL=Generated.d.ts.map