@expandai/sdk 0.17.2 → 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.
- package/README.md +4 -0
- package/build/dts/Client.d.ts +10 -4
- package/build/dts/Client.d.ts.map +1 -1
- package/build/dts/Error.d.ts.map +1 -1
- package/build/dts/FetchJson.d.ts +119 -130
- package/build/dts/FetchJson.d.ts.map +1 -1
- package/build/dts/Generated.d.ts +387 -466
- package/build/dts/Generated.d.ts.map +1 -1
- package/build/dts/HttpClientHelpers.d.ts +1 -1
- package/build/dts/Internal.d.ts +4 -3
- package/build/dts/Internal.d.ts.map +1 -1
- package/build/dts/Playground.d.ts +8 -4
- package/build/dts/Playground.d.ts.map +1 -1
- package/build/dts/Service.d.ts +76 -85
- package/build/dts/Service.d.ts.map +1 -1
- package/build/dts/index.d.ts +1 -1
- package/build/dts/index.d.ts.map +1 -1
- package/build/esm/Client.js +9 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/Error.js.map +1 -1
- package/build/esm/FetchJson.js +1 -1
- package/build/esm/FetchJson.js.map +1 -1
- package/build/esm/Generated.js +102 -85
- package/build/esm/Generated.js.map +1 -1
- package/build/esm/Internal.js +17 -7
- package/build/esm/Internal.js.map +1 -1
- package/build/esm/Playground.js +38 -18
- package/build/esm/Playground.js.map +1 -1
- package/build/esm/Service.js +23 -23
- package/build/esm/Service.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/Client.ts +15 -2
- package/src/FetchJson.ts +1 -1
- package/src/Generated.ts +155 -112
- package/src/Internal.ts +29 -7
- package/src/Playground.ts +54 -20
- package/src/Service.ts +39 -24
- package/src/index.ts +2 -0
package/build/dts/Generated.d.ts
CHANGED
|
@@ -27,13 +27,6 @@ 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>, {
|
|
32
|
-
nullable: true;
|
|
33
|
-
}>;
|
|
34
|
-
}>]>, {
|
|
35
|
-
nullable: true;
|
|
36
|
-
}>;
|
|
37
30
|
links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
38
31
|
sameDomainOnly: S.optionalWith<typeof S.Boolean, {
|
|
39
32
|
nullable: true;
|
|
@@ -107,13 +100,6 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
107
100
|
}>]>, {
|
|
108
101
|
nullable: true;
|
|
109
102
|
}>;
|
|
110
|
-
summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
111
|
-
prompt: S.optionalWith<S.filter<typeof S.String>, {
|
|
112
|
-
nullable: true;
|
|
113
|
-
}>;
|
|
114
|
-
}>]>, {
|
|
115
|
-
nullable: true;
|
|
116
|
-
}>;
|
|
117
103
|
links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
118
104
|
sameDomainOnly: S.optionalWith<typeof S.Boolean, {
|
|
119
105
|
nullable: true;
|
|
@@ -172,6 +158,10 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
172
158
|
nullable: true;
|
|
173
159
|
}>;
|
|
174
160
|
}>, never, {
|
|
161
|
+
readonly browserConfig?: {
|
|
162
|
+
readonly scrollFullPage: boolean;
|
|
163
|
+
} | undefined;
|
|
164
|
+
} & {
|
|
175
165
|
readonly include?: {
|
|
176
166
|
readonly html?: boolean | {
|
|
177
167
|
readonly [x: string]: unknown;
|
|
@@ -182,9 +172,6 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
182
172
|
readonly screenshot?: boolean | {
|
|
183
173
|
readonly fullPage?: boolean | undefined;
|
|
184
174
|
} | undefined;
|
|
185
|
-
readonly summary?: boolean | {
|
|
186
|
-
readonly prompt?: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
175
|
readonly links?: boolean | {
|
|
189
176
|
readonly sameDomainOnly: boolean;
|
|
190
177
|
readonly includePatterns?: readonly string[] | undefined;
|
|
@@ -197,8 +184,6 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
197
184
|
readonly json: boolean;
|
|
198
185
|
readonly appendix?: boolean | undefined;
|
|
199
186
|
} | undefined;
|
|
200
|
-
} & {
|
|
201
|
-
readonly url: string;
|
|
202
187
|
} & {
|
|
203
188
|
readonly search?: {
|
|
204
189
|
readonly query: string;
|
|
@@ -206,9 +191,7 @@ declare const FetchFetchRequest_base: S.Class<FetchFetchRequest, {
|
|
|
206
191
|
readonly minScore: number;
|
|
207
192
|
} | undefined;
|
|
208
193
|
} & {
|
|
209
|
-
readonly
|
|
210
|
-
readonly scrollFullPage: boolean;
|
|
211
|
-
} | undefined;
|
|
194
|
+
readonly url: string;
|
|
212
195
|
}, {}, {}>;
|
|
213
196
|
export declare class FetchFetchRequest extends FetchFetchRequest_base {
|
|
214
197
|
}
|
|
@@ -276,13 +259,13 @@ declare const AuthFailed_base: S.Class<AuthFailed, {
|
|
|
276
259
|
}>;
|
|
277
260
|
_tag: typeof AuthFailedTag;
|
|
278
261
|
}>, never, {
|
|
279
|
-
readonly _tag: "AuthFailed";
|
|
280
|
-
} & {
|
|
281
|
-
readonly reason: "InvalidApiKey" | "InvalidToken" | "InvalidSession" | "InvalidTenant";
|
|
282
|
-
} & {
|
|
283
262
|
readonly description?: string | {
|
|
284
263
|
readonly message: string;
|
|
285
264
|
} | undefined;
|
|
265
|
+
} & {
|
|
266
|
+
readonly _tag: "AuthFailed";
|
|
267
|
+
} & {
|
|
268
|
+
readonly reason: "InvalidApiKey" | "InvalidSession" | "InvalidTenant" | "InvalidToken";
|
|
286
269
|
}, {}, {}>;
|
|
287
270
|
export declare class AuthFailed extends AuthFailed_base {
|
|
288
271
|
}
|
|
@@ -312,15 +295,35 @@ export declare class FetchFetch403 extends FetchFetch403_base {
|
|
|
312
295
|
declare const PayloadTooLargeTag_base: S.Literal<["PayloadTooLarge"]>;
|
|
313
296
|
export declare class PayloadTooLargeTag extends PayloadTooLargeTag_base {
|
|
314
297
|
}
|
|
315
|
-
declare const PayloadTooLarge_base: S.
|
|
316
|
-
_tag: typeof PayloadTooLargeTag;
|
|
317
|
-
}, S.Struct.Encoded<{
|
|
298
|
+
declare const PayloadTooLarge_base: S.Struct<{
|
|
318
299
|
_tag: typeof PayloadTooLargeTag;
|
|
319
|
-
}
|
|
320
|
-
readonly _tag: "PayloadTooLarge";
|
|
321
|
-
}, {}, {}>;
|
|
300
|
+
}>;
|
|
322
301
|
export declare class PayloadTooLarge extends PayloadTooLarge_base {
|
|
323
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
|
+
}
|
|
324
327
|
declare const TooManyRequestsTag_base: S.Literal<["TooManyRequests"]>;
|
|
325
328
|
export declare class TooManyRequestsTag extends TooManyRequestsTag_base {
|
|
326
329
|
}
|
|
@@ -349,10 +352,26 @@ declare const ServiceUnavailableTag_base: S.Literal<["ServiceUnavailable"]>;
|
|
|
349
352
|
export declare class ServiceUnavailableTag extends ServiceUnavailableTag_base {
|
|
350
353
|
}
|
|
351
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
|
+
}>;
|
|
352
361
|
_tag: typeof ServiceUnavailableTag;
|
|
353
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
|
+
}>;
|
|
354
369
|
_tag: typeof ServiceUnavailableTag;
|
|
355
370
|
}>, never, {
|
|
371
|
+
readonly message?: string | undefined;
|
|
372
|
+
} & {
|
|
373
|
+
readonly requestId?: string | undefined;
|
|
374
|
+
} & {
|
|
356
375
|
readonly _tag: "ServiceUnavailable";
|
|
357
376
|
}, {}, {}>;
|
|
358
377
|
export declare class ServiceUnavailable extends ServiceUnavailable_base {
|
|
@@ -380,13 +399,6 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
380
399
|
}>]>, {
|
|
381
400
|
nullable: true;
|
|
382
401
|
}>;
|
|
383
|
-
summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
384
|
-
prompt: S.optionalWith<S.filter<typeof S.String>, {
|
|
385
|
-
nullable: true;
|
|
386
|
-
}>;
|
|
387
|
-
}>]>, {
|
|
388
|
-
nullable: true;
|
|
389
|
-
}>;
|
|
390
402
|
links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
391
403
|
sameDomainOnly: S.optionalWith<typeof S.Boolean, {
|
|
392
404
|
nullable: true;
|
|
@@ -460,13 +472,6 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
460
472
|
}>]>, {
|
|
461
473
|
nullable: true;
|
|
462
474
|
}>;
|
|
463
|
-
summary: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
464
|
-
prompt: S.optionalWith<S.filter<typeof S.String>, {
|
|
465
|
-
nullable: true;
|
|
466
|
-
}>;
|
|
467
|
-
}>]>, {
|
|
468
|
-
nullable: true;
|
|
469
|
-
}>;
|
|
470
475
|
links: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
471
476
|
sameDomainOnly: S.optionalWith<typeof S.Boolean, {
|
|
472
477
|
nullable: true;
|
|
@@ -525,6 +530,10 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
525
530
|
nullable: true;
|
|
526
531
|
}>;
|
|
527
532
|
}>, never, {
|
|
533
|
+
readonly browserConfig?: {
|
|
534
|
+
readonly scrollFullPage: boolean;
|
|
535
|
+
} | undefined;
|
|
536
|
+
} & {
|
|
528
537
|
readonly include?: {
|
|
529
538
|
readonly html?: boolean | {
|
|
530
539
|
readonly [x: string]: unknown;
|
|
@@ -535,9 +544,6 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
535
544
|
readonly screenshot?: boolean | {
|
|
536
545
|
readonly fullPage?: boolean | undefined;
|
|
537
546
|
} | undefined;
|
|
538
|
-
readonly summary?: boolean | {
|
|
539
|
-
readonly prompt?: string | undefined;
|
|
540
|
-
} | undefined;
|
|
541
547
|
readonly links?: boolean | {
|
|
542
548
|
readonly sameDomainOnly: boolean;
|
|
543
549
|
readonly includePatterns?: readonly string[] | undefined;
|
|
@@ -550,8 +556,6 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
550
556
|
readonly json: boolean;
|
|
551
557
|
readonly appendix?: boolean | undefined;
|
|
552
558
|
} | undefined;
|
|
553
|
-
} & {
|
|
554
|
-
readonly url: string;
|
|
555
559
|
} & {
|
|
556
560
|
readonly search?: {
|
|
557
561
|
readonly query: string;
|
|
@@ -559,9 +563,7 @@ declare const FetchFetchJsonRequest_base: S.Class<FetchFetchJsonRequest, {
|
|
|
559
563
|
readonly minScore: number;
|
|
560
564
|
} | undefined;
|
|
561
565
|
} & {
|
|
562
|
-
readonly
|
|
563
|
-
readonly scrollFullPage: boolean;
|
|
564
|
-
} | undefined;
|
|
566
|
+
readonly url: string;
|
|
565
567
|
}, {}, {}>;
|
|
566
568
|
export declare class FetchFetchJsonRequest extends FetchFetchJsonRequest_base {
|
|
567
569
|
}
|
|
@@ -684,59 +686,12 @@ declare const FetchAssetReference_base: S.Struct<{
|
|
|
684
686
|
}>;
|
|
685
687
|
export declare class FetchAssetReference extends FetchAssetReference_base {
|
|
686
688
|
}
|
|
687
|
-
declare
|
|
688
|
-
export declare class CaptureTelemetryInfoRequestedStyleMode extends CaptureTelemetryInfoRequestedStyleMode_base {
|
|
689
|
-
}
|
|
690
|
-
declare const CaptureTelemetryInfoSelected_base: S.Literal<["rust"]>;
|
|
691
|
-
export declare class CaptureTelemetryInfoSelected extends CaptureTelemetryInfoSelected_base {
|
|
689
|
+
export declare class Int extends S.Int {
|
|
692
690
|
}
|
|
693
|
-
declare const
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
declare const CaptureTelemetryInfoActualStyleMode_base: S.Literal<["compat_full", "native_default"]>;
|
|
697
|
-
export declare class CaptureTelemetryInfoActualStyleMode extends CaptureTelemetryInfoActualStyleMode_base {
|
|
698
|
-
}
|
|
699
|
-
declare const CaptureTelemetryInfoIconBackendDecision_base: S.Literal<["cpu", "remote_gpu"]>;
|
|
700
|
-
export declare class CaptureTelemetryInfoIconBackendDecision extends CaptureTelemetryInfoIconBackendDecision_base {
|
|
701
|
-
}
|
|
702
|
-
declare const CaptureTelemetryInfo_base: S.Struct<{
|
|
703
|
-
requestedStyleMode: S.optionalWith<typeof CaptureTelemetryInfoRequestedStyleMode, {
|
|
704
|
-
nullable: true;
|
|
705
|
-
}>;
|
|
706
|
-
selected: typeof CaptureTelemetryInfoSelected;
|
|
707
|
-
actual: typeof CaptureTelemetryInfoActual;
|
|
708
|
-
actualStyleMode: S.optionalWith<typeof CaptureTelemetryInfoActualStyleMode, {
|
|
709
|
-
nullable: true;
|
|
710
|
-
}>;
|
|
711
|
-
rolloutApplied: typeof S.Boolean;
|
|
712
|
-
preparedSessionHit: S.optionalWith<typeof S.Boolean, {
|
|
713
|
-
nullable: true;
|
|
714
|
-
}>;
|
|
715
|
-
nativePoolHit: S.optionalWith<typeof S.Boolean, {
|
|
716
|
-
nullable: true;
|
|
717
|
-
}>;
|
|
718
|
-
nativePoolCapacity: S.optionalWith<typeof S.Number, {
|
|
719
|
-
nullable: true;
|
|
720
|
-
}>;
|
|
721
|
-
nativePoolProfile: S.optionalWith<typeof S.String, {
|
|
722
|
-
nullable: true;
|
|
723
|
-
}>;
|
|
724
|
-
poolHit: S.optionalWith<typeof S.Boolean, {
|
|
725
|
-
nullable: true;
|
|
726
|
-
}>;
|
|
727
|
-
connectMs: S.optionalWith<typeof S.Number, {
|
|
728
|
-
nullable: true;
|
|
729
|
-
}>;
|
|
730
|
-
warmConnectionAgeMs: S.optionalWith<typeof S.Number, {
|
|
731
|
-
nullable: true;
|
|
732
|
-
}>;
|
|
733
|
-
iconBackendDecision: S.optionalWith<typeof CaptureTelemetryInfoIconBackendDecision, {
|
|
691
|
+
declare const FetchSearchSnippetLocation_base: S.Struct<{
|
|
692
|
+
evidenceId: S.optionalWith<typeof Int, {
|
|
734
693
|
nullable: true;
|
|
735
694
|
}>;
|
|
736
|
-
}>;
|
|
737
|
-
export declare class CaptureTelemetryInfo extends CaptureTelemetryInfo_base {
|
|
738
|
-
}
|
|
739
|
-
declare const FetchSearchSnippetLocation_base: S.Struct<{
|
|
740
695
|
markdownBlockId: S.optionalWith<typeof S.String, {
|
|
741
696
|
nullable: true;
|
|
742
697
|
}>;
|
|
@@ -808,9 +763,6 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
808
763
|
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
809
764
|
nullable: true;
|
|
810
765
|
}>;
|
|
811
|
-
captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
|
|
812
|
-
nullable: true;
|
|
813
|
-
}>;
|
|
814
766
|
search: S.optionalWith<typeof FetchSearchResult, {
|
|
815
767
|
nullable: true;
|
|
816
768
|
}>;
|
|
@@ -831,9 +783,6 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
831
783
|
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
832
784
|
nullable: true;
|
|
833
785
|
}>;
|
|
834
|
-
captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
|
|
835
|
-
nullable: true;
|
|
836
|
-
}>;
|
|
837
786
|
search: S.optionalWith<typeof FetchSearchResult, {
|
|
838
787
|
nullable: true;
|
|
839
788
|
}>;
|
|
@@ -847,23 +796,66 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
847
796
|
nullable: true;
|
|
848
797
|
}>;
|
|
849
798
|
}>, never, {
|
|
850
|
-
readonly
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
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;
|
|
857
836
|
} | undefined;
|
|
858
|
-
readonly
|
|
837
|
+
readonly screenshot?: {
|
|
859
838
|
readonly url: string;
|
|
860
|
-
readonly
|
|
861
|
-
readonly sameDomain: number;
|
|
862
|
-
readonly external: number;
|
|
863
|
-
};
|
|
839
|
+
readonly fullPage: boolean;
|
|
864
840
|
} | undefined;
|
|
865
|
-
|
|
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: {
|
|
866
857
|
readonly version: 1;
|
|
858
|
+
readonly url: string;
|
|
867
859
|
readonly capturedAt: string;
|
|
868
860
|
readonly snapshotId: string;
|
|
869
861
|
readonly lang: string;
|
|
@@ -872,86 +864,29 @@ declare const FetchObjectModeResult_base: S.Class<FetchObjectModeResult, {
|
|
|
872
864
|
readonly title?: string | undefined;
|
|
873
865
|
readonly finalUrl?: string | undefined;
|
|
874
866
|
readonly canonical?: string | undefined;
|
|
867
|
+
readonly description?: string | undefined;
|
|
875
868
|
readonly author?: string | undefined;
|
|
876
869
|
readonly createdAt?: string | undefined;
|
|
877
870
|
readonly updatedAt?: string | undefined;
|
|
878
871
|
readonly image?: string | undefined;
|
|
879
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;
|
|
880
880
|
readonly stateJson?: {
|
|
881
881
|
readonly moreTokens: number;
|
|
882
882
|
} | undefined;
|
|
883
|
+
readonly markdown?: {
|
|
884
|
+
readonly url: string;
|
|
885
|
+
readonly moreTokens: number;
|
|
886
|
+
} | undefined;
|
|
883
887
|
readonly blocked?: string | undefined;
|
|
884
888
|
readonly loadingStatus?: string | undefined;
|
|
885
889
|
};
|
|
886
|
-
} & {
|
|
887
|
-
readonly json: readonly {
|
|
888
|
-
readonly keys?: readonly string[] | undefined;
|
|
889
|
-
readonly url?: string | undefined;
|
|
890
|
-
readonly moreTokens?: number | undefined;
|
|
891
|
-
readonly id: number;
|
|
892
|
-
readonly kind: "inline" | "network";
|
|
893
|
-
readonly role: "ld+json" | "next-data" | "nuxt" | "apollo-state" | "initial-state" | "application-json" | "script-tag" | "data-attribute" | "network-json" | "network-response" | "other";
|
|
894
|
-
readonly score: number;
|
|
895
|
-
readonly method?: string | undefined;
|
|
896
|
-
}[];
|
|
897
|
-
} & {
|
|
898
|
-
readonly data?: {
|
|
899
|
-
readonly search?: {
|
|
900
|
-
readonly meta?: {
|
|
901
|
-
readonly durationMs: number;
|
|
902
|
-
readonly sources: readonly {
|
|
903
|
-
readonly source: "markdown" | "appendix" | "statejson";
|
|
904
|
-
readonly chunkCount: number;
|
|
905
|
-
readonly batchCount: number;
|
|
906
|
-
readonly ranker: "zeroentropy" | "local_lexical";
|
|
907
|
-
readonly fallback: boolean;
|
|
908
|
-
readonly fallbackReason?: "timeout" | "error" | undefined;
|
|
909
|
-
readonly durationMs: number;
|
|
910
|
-
}[];
|
|
911
|
-
} | undefined;
|
|
912
|
-
readonly query: string;
|
|
913
|
-
readonly snippets: readonly {
|
|
914
|
-
readonly score: number;
|
|
915
|
-
readonly source: "markdown" | "appendix" | "statejson";
|
|
916
|
-
readonly type: "text";
|
|
917
|
-
readonly text: string;
|
|
918
|
-
readonly location?: {
|
|
919
|
-
readonly markdownBlockId?: string | undefined;
|
|
920
|
-
readonly nodeIds?: readonly number[] | undefined;
|
|
921
|
-
readonly stateJsonSourceId?: number | undefined;
|
|
922
|
-
readonly jsonPath?: string | undefined;
|
|
923
|
-
} | undefined;
|
|
924
|
-
}[];
|
|
925
|
-
} | undefined;
|
|
926
|
-
readonly screenshot?: {
|
|
927
|
-
readonly url: string;
|
|
928
|
-
readonly fullPage: boolean;
|
|
929
|
-
} | undefined;
|
|
930
|
-
readonly assets?: readonly {
|
|
931
|
-
readonly id: string;
|
|
932
|
-
readonly kind: "data-url";
|
|
933
|
-
readonly placeholder: string;
|
|
934
|
-
readonly archiveKey: string;
|
|
935
|
-
readonly mimeType: string;
|
|
936
|
-
readonly sha256: string;
|
|
937
|
-
readonly bytes: number;
|
|
938
|
-
}[] | undefined;
|
|
939
|
-
readonly captureTelemetry?: {
|
|
940
|
-
readonly requestedStyleMode?: "compat_full" | "native_default" | undefined;
|
|
941
|
-
readonly selected: "rust";
|
|
942
|
-
readonly actual: "rust";
|
|
943
|
-
readonly actualStyleMode?: "compat_full" | "native_default" | undefined;
|
|
944
|
-
readonly rolloutApplied: boolean;
|
|
945
|
-
readonly preparedSessionHit?: boolean | undefined;
|
|
946
|
-
readonly nativePoolHit?: boolean | undefined;
|
|
947
|
-
readonly nativePoolCapacity?: number | undefined;
|
|
948
|
-
readonly nativePoolProfile?: string | undefined;
|
|
949
|
-
readonly poolHit?: boolean | undefined;
|
|
950
|
-
readonly connectMs?: number | undefined;
|
|
951
|
-
readonly warmConnectionAgeMs?: number | undefined;
|
|
952
|
-
readonly iconBackendDecision?: "cpu" | "remote_gpu" | undefined;
|
|
953
|
-
} | undefined;
|
|
954
|
-
} | undefined;
|
|
955
890
|
}, {}, {}>;
|
|
956
891
|
export declare class FetchObjectModeResult extends FetchObjectModeResult_base {
|
|
957
892
|
}
|
|
@@ -967,18 +902,8 @@ declare const FetchFetchJson403_base: S.Union<[S.Struct<{
|
|
|
967
902
|
}>, typeof FetchBlocked]>;
|
|
968
903
|
export declare class FetchFetchJson403 extends FetchFetchJson403_base {
|
|
969
904
|
}
|
|
970
|
-
declare const
|
|
971
|
-
export declare class
|
|
972
|
-
}
|
|
973
|
-
declare const IncludeMarkdownConfig_base: S.Record$<typeof S.String, typeof S.Unknown>;
|
|
974
|
-
export declare class IncludeMarkdownConfig extends IncludeMarkdownConfig_base {
|
|
975
|
-
}
|
|
976
|
-
declare const IncludeScreenshotConfig_base: S.Struct<{
|
|
977
|
-
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
978
|
-
nullable: true;
|
|
979
|
-
}>;
|
|
980
|
-
}>;
|
|
981
|
-
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 {
|
|
982
907
|
}
|
|
983
908
|
declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
984
909
|
snapshotId: S.filter<typeof S.String>;
|
|
@@ -994,19 +919,15 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
994
919
|
}>;
|
|
995
920
|
}>;
|
|
996
921
|
include: S.optionalWith<S.Struct<{
|
|
997
|
-
html: S.optionalWith<S.Union<[typeof S.Boolean, typeof
|
|
998
|
-
nullable: true;
|
|
999
|
-
}>;
|
|
1000
|
-
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>]>, {
|
|
1001
923
|
nullable: true;
|
|
1002
924
|
}>;
|
|
1003
|
-
|
|
925
|
+
markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1004
926
|
nullable: true;
|
|
1005
927
|
}>;
|
|
1006
|
-
|
|
1007
|
-
|
|
928
|
+
screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
929
|
+
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
1008
930
|
nullable: true;
|
|
1009
|
-
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.";
|
|
1010
931
|
}>;
|
|
1011
932
|
}>]>, {
|
|
1012
933
|
nullable: true;
|
|
@@ -1061,19 +982,15 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
1061
982
|
}>;
|
|
1062
983
|
}>;
|
|
1063
984
|
include: S.optionalWith<S.Struct<{
|
|
1064
|
-
html: S.optionalWith<S.Union<[typeof S.Boolean, typeof
|
|
1065
|
-
nullable: true;
|
|
1066
|
-
}>;
|
|
1067
|
-
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>]>, {
|
|
1068
986
|
nullable: true;
|
|
1069
987
|
}>;
|
|
1070
|
-
|
|
988
|
+
markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1071
989
|
nullable: true;
|
|
1072
990
|
}>;
|
|
1073
|
-
|
|
1074
|
-
|
|
991
|
+
screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
992
|
+
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
1075
993
|
nullable: true;
|
|
1076
|
-
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.";
|
|
1077
994
|
}>;
|
|
1078
995
|
}>]>, {
|
|
1079
996
|
nullable: true;
|
|
@@ -1125,9 +1042,6 @@ declare const FetchFetchSearchRequest_base: S.Class<FetchFetchSearchRequest, {
|
|
|
1125
1042
|
readonly screenshot?: boolean | {
|
|
1126
1043
|
readonly fullPage?: boolean | undefined;
|
|
1127
1044
|
} | undefined;
|
|
1128
|
-
readonly summary?: boolean | {
|
|
1129
|
-
readonly prompt: string;
|
|
1130
|
-
} | undefined;
|
|
1131
1045
|
readonly links?: boolean | {
|
|
1132
1046
|
readonly sameDomainOnly: boolean;
|
|
1133
1047
|
readonly includePatterns?: readonly string[] | undefined;
|
|
@@ -1175,51 +1089,56 @@ declare const FetchSnapshotSearchResult_base: S.Class<FetchSnapshotSearchResult,
|
|
|
1175
1089
|
response: typeof ResponseInfo;
|
|
1176
1090
|
search: typeof FetchSearchResult;
|
|
1177
1091
|
durationMs: S.filter<typeof S.Number>;
|
|
1092
|
+
playground: typeof S.String;
|
|
1178
1093
|
}, S.Struct.Encoded<{
|
|
1179
1094
|
snapshotId: S.filter<typeof S.String>;
|
|
1180
1095
|
response: typeof ResponseInfo;
|
|
1181
1096
|
search: typeof FetchSearchResult;
|
|
1182
1097
|
durationMs: S.filter<typeof S.Number>;
|
|
1098
|
+
playground: typeof S.String;
|
|
1183
1099
|
}>, never, {
|
|
1184
|
-
readonly
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
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
|
+
} & {
|
|
1112
|
+
readonly search: {
|
|
1197
1113
|
readonly query: string;
|
|
1198
1114
|
readonly snippets: readonly {
|
|
1199
|
-
readonly score: number;
|
|
1200
|
-
readonly source: "markdown" | "appendix" | "statejson";
|
|
1201
1115
|
readonly type: "text";
|
|
1116
|
+
readonly source: "appendix" | "markdown" | "statejson";
|
|
1202
1117
|
readonly text: string;
|
|
1118
|
+
readonly score: number;
|
|
1203
1119
|
readonly location?: {
|
|
1120
|
+
readonly evidenceId?: number | undefined;
|
|
1204
1121
|
readonly markdownBlockId?: string | undefined;
|
|
1205
1122
|
readonly nodeIds?: readonly number[] | undefined;
|
|
1206
1123
|
readonly stateJsonSourceId?: number | undefined;
|
|
1207
1124
|
readonly jsonPath?: string | undefined;
|
|
1208
1125
|
} | undefined;
|
|
1209
1126
|
}[];
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
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;
|
|
1218
1139
|
};
|
|
1219
1140
|
} & {
|
|
1220
1141
|
readonly snapshotId: string;
|
|
1221
|
-
} & {
|
|
1222
|
-
readonly durationMs: number;
|
|
1223
1142
|
}, {}, {}>;
|
|
1224
1143
|
export declare class FetchSnapshotSearchResult extends FetchSnapshotSearchResult_base {
|
|
1225
1144
|
}
|
|
@@ -1257,22 +1176,25 @@ declare const FetchSnapshotSearchNotFound_base: S.Class<FetchSnapshotSearchNotFo
|
|
|
1257
1176
|
}, {}, {}>;
|
|
1258
1177
|
export declare class FetchSnapshotSearchNotFound extends FetchSnapshotSearchNotFound_base {
|
|
1259
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
|
+
}
|
|
1260
1186
|
declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
1261
1187
|
urls: S.NonEmptyArray<typeof S.String>;
|
|
1262
1188
|
include: S.optionalWith<S.Struct<{
|
|
1263
|
-
html: S.optionalWith<S.Union<[typeof S.Boolean, typeof
|
|
1264
|
-
nullable: true;
|
|
1265
|
-
}>;
|
|
1266
|
-
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>]>, {
|
|
1267
1190
|
nullable: true;
|
|
1268
1191
|
}>;
|
|
1269
|
-
|
|
1192
|
+
markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1270
1193
|
nullable: true;
|
|
1271
1194
|
}>;
|
|
1272
|
-
|
|
1273
|
-
|
|
1195
|
+
screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
1196
|
+
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
1274
1197
|
nullable: true;
|
|
1275
|
-
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.";
|
|
1276
1198
|
}>;
|
|
1277
1199
|
}>]>, {
|
|
1278
1200
|
nullable: true;
|
|
@@ -1324,19 +1246,15 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1324
1246
|
}, S.Struct.Encoded<{
|
|
1325
1247
|
urls: S.NonEmptyArray<typeof S.String>;
|
|
1326
1248
|
include: S.optionalWith<S.Struct<{
|
|
1327
|
-
html: S.optionalWith<S.Union<[typeof S.Boolean, typeof
|
|
1328
|
-
nullable: true;
|
|
1329
|
-
}>;
|
|
1330
|
-
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>]>, {
|
|
1331
1250
|
nullable: true;
|
|
1332
1251
|
}>;
|
|
1333
|
-
|
|
1252
|
+
markdown: S.optionalWith<S.Union<[typeof S.Boolean, S.Record$<typeof S.String, typeof S.Unknown>]>, {
|
|
1334
1253
|
nullable: true;
|
|
1335
1254
|
}>;
|
|
1336
|
-
|
|
1337
|
-
|
|
1255
|
+
screenshot: S.optionalWith<S.Union<[typeof S.Boolean, S.Struct<{
|
|
1256
|
+
fullPage: S.optionalWith<typeof S.Boolean, {
|
|
1338
1257
|
nullable: true;
|
|
1339
|
-
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.";
|
|
1340
1258
|
}>;
|
|
1341
1259
|
}>]>, {
|
|
1342
1260
|
nullable: true;
|
|
@@ -1386,6 +1304,10 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1386
1304
|
nullable: true;
|
|
1387
1305
|
}>;
|
|
1388
1306
|
}>, never, {
|
|
1307
|
+
readonly browserConfig?: {
|
|
1308
|
+
readonly scrollFullPage: boolean;
|
|
1309
|
+
} | undefined;
|
|
1310
|
+
} & {
|
|
1389
1311
|
readonly include?: {
|
|
1390
1312
|
readonly html?: boolean | {
|
|
1391
1313
|
readonly [x: string]: unknown;
|
|
@@ -1396,9 +1318,6 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1396
1318
|
readonly screenshot?: boolean | {
|
|
1397
1319
|
readonly fullPage?: boolean | undefined;
|
|
1398
1320
|
} | undefined;
|
|
1399
|
-
readonly summary?: boolean | {
|
|
1400
|
-
readonly prompt: string;
|
|
1401
|
-
} | undefined;
|
|
1402
1321
|
readonly links?: boolean | {
|
|
1403
1322
|
readonly sameDomainOnly: boolean;
|
|
1404
1323
|
readonly includePatterns?: readonly string[] | undefined;
|
|
@@ -1411,10 +1330,6 @@ declare const FetchBatchedRequest_base: S.Class<FetchBatchedRequest, {
|
|
|
1411
1330
|
readonly json: boolean;
|
|
1412
1331
|
readonly appendix?: boolean | undefined;
|
|
1413
1332
|
} | undefined;
|
|
1414
|
-
} & {
|
|
1415
|
-
readonly browserConfig?: {
|
|
1416
|
-
readonly scrollFullPage: boolean;
|
|
1417
|
-
} | undefined;
|
|
1418
1333
|
} & {
|
|
1419
1334
|
readonly urls: readonly [string, ...string[]];
|
|
1420
1335
|
}, {}, {}>;
|
|
@@ -1444,6 +1359,29 @@ declare const FetchBatched403_base: S.Struct<{
|
|
|
1444
1359
|
}>;
|
|
1445
1360
|
export declare class FetchBatched403 extends FetchBatched403_base {
|
|
1446
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
|
+
}
|
|
1447
1385
|
declare const FetchGetBatchedParams_base: S.Struct<{
|
|
1448
1386
|
limit: S.optionalWith<typeof S.String, {
|
|
1449
1387
|
nullable: true;
|
|
@@ -1457,12 +1395,15 @@ declare const FetchGetBatchedParams_base: S.Struct<{
|
|
|
1457
1395
|
}>;
|
|
1458
1396
|
export declare class FetchGetBatchedParams extends FetchGetBatchedParams_base {
|
|
1459
1397
|
}
|
|
1460
|
-
declare const BatchedStatusStatus_base: S.Literal<["QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1398
|
+
declare const BatchedStatusStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1461
1399
|
export declare class BatchedStatusStatus extends BatchedStatusStatus_base {
|
|
1462
1400
|
}
|
|
1463
|
-
declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1401
|
+
declare const BatchedStatusBatchedStatus_base: S.Literal<["QUEUED", "RUNNING", "CANCELLING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1464
1402
|
export declare class BatchedStatusBatchedStatus extends BatchedStatusBatchedStatus_base {
|
|
1465
1403
|
}
|
|
1404
|
+
declare const BatchedFetchItemStatus_base: S.Literal<["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"]>;
|
|
1405
|
+
export declare class BatchedFetchItemStatus extends BatchedFetchItemStatus_base {
|
|
1406
|
+
}
|
|
1466
1407
|
declare const IconMeta_base: S.Struct<{
|
|
1467
1408
|
href: S.filter<typeof S.String>;
|
|
1468
1409
|
rel: S.filter<typeof S.String>;
|
|
@@ -1597,6 +1538,55 @@ declare const RenderEnginesInfo_base: S.Struct<{
|
|
|
1597
1538
|
}>;
|
|
1598
1539
|
export declare class RenderEnginesInfo extends RenderEnginesInfo_base {
|
|
1599
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
|
+
}
|
|
1600
1590
|
declare const PaginationMeta_base: S.Struct<{
|
|
1601
1591
|
total: typeof S.Number;
|
|
1602
1592
|
limit: typeof S.Number;
|
|
@@ -1610,195 +1600,55 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
|
|
|
1610
1600
|
status: typeof BatchedStatusStatus;
|
|
1611
1601
|
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
1612
1602
|
totalUrls: typeof S.Number;
|
|
1613
|
-
results: S.Array$<
|
|
1614
|
-
data: S.Struct<{
|
|
1615
|
-
response: typeof ResponseInfo;
|
|
1616
|
-
meta: S.optionalWith<typeof PageMeta, {
|
|
1617
|
-
nullable: true;
|
|
1618
|
-
}>;
|
|
1619
|
-
json: S.optionalWith<S.Array$<S.Struct<{}>>, {
|
|
1620
|
-
nullable: true;
|
|
1621
|
-
}>;
|
|
1622
|
-
snapshotId: S.optionalWith<typeof NonEmptyString, {
|
|
1623
|
-
nullable: true;
|
|
1624
|
-
}>;
|
|
1625
|
-
html: S.optionalWith<S.filter<typeof S.String>, {
|
|
1626
|
-
nullable: true;
|
|
1627
|
-
}>;
|
|
1628
|
-
markdown: S.optionalWith<S.filter<typeof S.String>, {
|
|
1629
|
-
nullable: true;
|
|
1630
|
-
}>;
|
|
1631
|
-
screenshot: S.optionalWith<S.Struct<{
|
|
1632
|
-
url: typeof S.String;
|
|
1633
|
-
fullPage: typeof S.Boolean;
|
|
1634
|
-
}>, {
|
|
1635
|
-
nullable: true;
|
|
1636
|
-
}>;
|
|
1637
|
-
summary: S.optionalWith<S.filter<typeof S.String>, {
|
|
1638
|
-
nullable: true;
|
|
1639
|
-
}>;
|
|
1640
|
-
search: S.optionalWith<typeof FetchSearchResult, {
|
|
1641
|
-
nullable: true;
|
|
1642
|
-
}>;
|
|
1643
|
-
links: S.optionalWith<S.Array$<typeof FetchLink>, {
|
|
1644
|
-
nullable: true;
|
|
1645
|
-
}>;
|
|
1646
|
-
appendix: S.optionalWith<S.filter<typeof S.String>, {
|
|
1647
|
-
nullable: true;
|
|
1648
|
-
}>;
|
|
1649
|
-
renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
|
|
1650
|
-
nullable: true;
|
|
1651
|
-
}>;
|
|
1652
|
-
captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
|
|
1653
|
-
nullable: true;
|
|
1654
|
-
}>;
|
|
1655
|
-
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
1656
|
-
nullable: true;
|
|
1657
|
-
}>;
|
|
1658
|
-
blocked: S.optionalWith<S.Struct<{
|
|
1659
|
-
blockedType: S.optionalWith<typeof S.String, {
|
|
1660
|
-
nullable: true;
|
|
1661
|
-
}>;
|
|
1662
|
-
}>, {
|
|
1663
|
-
nullable: true;
|
|
1664
|
-
}>;
|
|
1665
|
-
}>;
|
|
1666
|
-
}>>;
|
|
1603
|
+
results: S.Array$<typeof BatchedFetchItem>;
|
|
1667
1604
|
pagination: typeof PaginationMeta;
|
|
1668
1605
|
}, S.Struct.Encoded<{
|
|
1669
1606
|
id: typeof S.String;
|
|
1670
1607
|
status: typeof BatchedStatusStatus;
|
|
1671
1608
|
batchedStatus: typeof BatchedStatusBatchedStatus;
|
|
1672
1609
|
totalUrls: typeof S.Number;
|
|
1673
|
-
results: S.Array$<
|
|
1674
|
-
data: S.Struct<{
|
|
1675
|
-
response: typeof ResponseInfo;
|
|
1676
|
-
meta: S.optionalWith<typeof PageMeta, {
|
|
1677
|
-
nullable: true;
|
|
1678
|
-
}>;
|
|
1679
|
-
json: S.optionalWith<S.Array$<S.Struct<{}>>, {
|
|
1680
|
-
nullable: true;
|
|
1681
|
-
}>;
|
|
1682
|
-
snapshotId: S.optionalWith<typeof NonEmptyString, {
|
|
1683
|
-
nullable: true;
|
|
1684
|
-
}>;
|
|
1685
|
-
html: S.optionalWith<S.filter<typeof S.String>, {
|
|
1686
|
-
nullable: true;
|
|
1687
|
-
}>;
|
|
1688
|
-
markdown: S.optionalWith<S.filter<typeof S.String>, {
|
|
1689
|
-
nullable: true;
|
|
1690
|
-
}>;
|
|
1691
|
-
screenshot: S.optionalWith<S.Struct<{
|
|
1692
|
-
url: typeof S.String;
|
|
1693
|
-
fullPage: typeof S.Boolean;
|
|
1694
|
-
}>, {
|
|
1695
|
-
nullable: true;
|
|
1696
|
-
}>;
|
|
1697
|
-
summary: S.optionalWith<S.filter<typeof S.String>, {
|
|
1698
|
-
nullable: true;
|
|
1699
|
-
}>;
|
|
1700
|
-
search: S.optionalWith<typeof FetchSearchResult, {
|
|
1701
|
-
nullable: true;
|
|
1702
|
-
}>;
|
|
1703
|
-
links: S.optionalWith<S.Array$<typeof FetchLink>, {
|
|
1704
|
-
nullable: true;
|
|
1705
|
-
}>;
|
|
1706
|
-
appendix: S.optionalWith<S.filter<typeof S.String>, {
|
|
1707
|
-
nullable: true;
|
|
1708
|
-
}>;
|
|
1709
|
-
renderEngines: S.optionalWith<typeof RenderEnginesInfo, {
|
|
1710
|
-
nullable: true;
|
|
1711
|
-
}>;
|
|
1712
|
-
captureTelemetry: S.optionalWith<typeof CaptureTelemetryInfo, {
|
|
1713
|
-
nullable: true;
|
|
1714
|
-
}>;
|
|
1715
|
-
assets: S.optionalWith<S.Array$<typeof FetchAssetReference>, {
|
|
1716
|
-
nullable: true;
|
|
1717
|
-
}>;
|
|
1718
|
-
blocked: S.optionalWith<S.Struct<{
|
|
1719
|
-
blockedType: S.optionalWith<typeof S.String, {
|
|
1720
|
-
nullable: true;
|
|
1721
|
-
}>;
|
|
1722
|
-
}>, {
|
|
1723
|
-
nullable: true;
|
|
1724
|
-
}>;
|
|
1725
|
-
}>;
|
|
1726
|
-
}>>;
|
|
1610
|
+
results: S.Array$<typeof BatchedFetchItem>;
|
|
1727
1611
|
pagination: typeof PaginationMeta;
|
|
1728
1612
|
}>, never, {
|
|
1729
|
-
readonly
|
|
1613
|
+
readonly batchedStatus: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
1730
1614
|
} & {
|
|
1731
1615
|
readonly id: string;
|
|
1732
|
-
} & {
|
|
1733
|
-
readonly batchedStatus: "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
1734
|
-
} & {
|
|
1735
|
-
readonly totalUrls: number;
|
|
1736
1616
|
} & {
|
|
1737
1617
|
readonly pagination: {
|
|
1618
|
+
readonly total: number;
|
|
1738
1619
|
readonly limit: number;
|
|
1739
1620
|
readonly offset: number;
|
|
1740
|
-
readonly total: number;
|
|
1741
1621
|
readonly hasMore: boolean;
|
|
1742
1622
|
};
|
|
1743
1623
|
} & {
|
|
1744
1624
|
readonly results: readonly {
|
|
1745
|
-
readonly
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
readonly durationMs: number;
|
|
1749
|
-
readonly sources: readonly {
|
|
1750
|
-
readonly source: "markdown" | "appendix" | "statejson";
|
|
1751
|
-
readonly chunkCount: number;
|
|
1752
|
-
readonly batchCount: number;
|
|
1753
|
-
readonly ranker: "zeroentropy" | "local_lexical";
|
|
1754
|
-
readonly fallback: boolean;
|
|
1755
|
-
readonly fallbackReason?: "timeout" | "error" | undefined;
|
|
1756
|
-
readonly durationMs: number;
|
|
1757
|
-
}[];
|
|
1758
|
-
} | undefined;
|
|
1759
|
-
readonly query: string;
|
|
1760
|
-
readonly snippets: readonly {
|
|
1761
|
-
readonly score: number;
|
|
1762
|
-
readonly source: "markdown" | "appendix" | "statejson";
|
|
1763
|
-
readonly type: "text";
|
|
1764
|
-
readonly text: string;
|
|
1765
|
-
readonly location?: {
|
|
1766
|
-
readonly markdownBlockId?: string | undefined;
|
|
1767
|
-
readonly nodeIds?: readonly number[] | undefined;
|
|
1768
|
-
readonly stateJsonSourceId?: number | undefined;
|
|
1769
|
-
readonly jsonPath?: string | undefined;
|
|
1770
|
-
} | undefined;
|
|
1771
|
-
}[];
|
|
1772
|
-
} | undefined;
|
|
1773
|
-
readonly html?: string | undefined;
|
|
1774
|
-
readonly markdown?: string | undefined;
|
|
1775
|
-
readonly screenshot?: {
|
|
1776
|
-
readonly url: string;
|
|
1777
|
-
readonly fullPage: boolean;
|
|
1778
|
-
} | undefined;
|
|
1779
|
-
readonly summary?: string | undefined;
|
|
1780
|
-
readonly links?: readonly {
|
|
1625
|
+
readonly status: "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "SUCCEEDED";
|
|
1626
|
+
readonly data?: {
|
|
1627
|
+
readonly response: {
|
|
1781
1628
|
readonly url: string;
|
|
1782
|
-
readonly
|
|
1783
|
-
|
|
1629
|
+
readonly requestedUrl?: string | undefined;
|
|
1630
|
+
readonly originStatusCode?: number | undefined;
|
|
1631
|
+
readonly redirectStatusCode?: number | undefined;
|
|
1632
|
+
readonly headers?: {} | undefined;
|
|
1633
|
+
};
|
|
1784
1634
|
readonly meta?: {
|
|
1785
|
-
readonly description?: string | undefined;
|
|
1786
1635
|
readonly title?: string | undefined;
|
|
1636
|
+
readonly description?: string | undefined;
|
|
1787
1637
|
readonly canonicalUrl?: string | undefined;
|
|
1788
1638
|
readonly language?: string | undefined;
|
|
1789
1639
|
readonly charset?: string | undefined;
|
|
1790
1640
|
readonly favicon?: string | undefined;
|
|
1791
1641
|
readonly icons?: readonly {
|
|
1792
|
-
readonly type?: string | undefined;
|
|
1793
1642
|
readonly href: string;
|
|
1794
1643
|
readonly rel: string;
|
|
1644
|
+
readonly type?: string | undefined;
|
|
1795
1645
|
readonly sizes?: string | undefined;
|
|
1796
1646
|
}[] | undefined;
|
|
1797
1647
|
readonly openGraph?: {
|
|
1798
|
-
readonly url?: string | undefined;
|
|
1799
|
-
readonly description?: string | undefined;
|
|
1800
1648
|
readonly title?: string | undefined;
|
|
1649
|
+
readonly description?: string | undefined;
|
|
1801
1650
|
readonly type?: string | undefined;
|
|
1651
|
+
readonly url?: string | undefined;
|
|
1802
1652
|
readonly siteName?: string | undefined;
|
|
1803
1653
|
readonly locale?: string | undefined;
|
|
1804
1654
|
readonly images?: readonly {
|
|
@@ -1809,26 +1659,59 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
|
|
|
1809
1659
|
}[] | undefined;
|
|
1810
1660
|
} | undefined;
|
|
1811
1661
|
readonly twitter?: {
|
|
1812
|
-
readonly description?: string | undefined;
|
|
1813
|
-
readonly title?: string | undefined;
|
|
1814
|
-
readonly image?: string | undefined;
|
|
1815
1662
|
readonly card?: string | undefined;
|
|
1816
1663
|
readonly site?: string | undefined;
|
|
1817
1664
|
readonly creator?: string | undefined;
|
|
1665
|
+
readonly title?: string | undefined;
|
|
1666
|
+
readonly description?: string | undefined;
|
|
1667
|
+
readonly image?: string | undefined;
|
|
1818
1668
|
} | undefined;
|
|
1819
1669
|
} | undefined;
|
|
1820
|
-
readonly response: {
|
|
1821
|
-
readonly url: string;
|
|
1822
|
-
readonly requestedUrl?: string | undefined;
|
|
1823
|
-
readonly originStatusCode?: number | undefined;
|
|
1824
|
-
readonly redirectStatusCode?: number | undefined;
|
|
1825
|
-
readonly headers?: {} | undefined;
|
|
1826
|
-
};
|
|
1827
1670
|
readonly json?: readonly {}[] | undefined;
|
|
1828
|
-
readonly appendix?: string | undefined;
|
|
1829
1671
|
readonly snapshotId?: string | undefined;
|
|
1830
|
-
readonly
|
|
1831
|
-
|
|
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;
|
|
1832
1715
|
} | undefined;
|
|
1833
1716
|
readonly assets?: readonly {
|
|
1834
1717
|
readonly id: string;
|
|
@@ -1839,28 +1722,23 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
|
|
|
1839
1722
|
readonly sha256: string;
|
|
1840
1723
|
readonly bytes: number;
|
|
1841
1724
|
}[] | undefined;
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
readonly warmConnectionAgeMs?: number | undefined;
|
|
1855
|
-
readonly iconBackendDecision?: "cpu" | "remote_gpu" | undefined;
|
|
1856
|
-
} | undefined;
|
|
1857
|
-
readonly renderEngines?: {
|
|
1858
|
-
readonly markdown?: "rust" | undefined;
|
|
1859
|
-
readonly capture?: "rust" | undefined;
|
|
1860
|
-
readonly tree?: "rust" | undefined;
|
|
1861
|
-
} | undefined;
|
|
1862
|
-
};
|
|
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;
|
|
1863
1737
|
}[];
|
|
1738
|
+
} & {
|
|
1739
|
+
readonly status: "CANCELLED" | "CANCELLING" | "COMPLETED" | "FAILED" | "QUEUED" | "RUNNING";
|
|
1740
|
+
} & {
|
|
1741
|
+
readonly totalUrls: number;
|
|
1864
1742
|
}, {}, {}>;
|
|
1865
1743
|
export declare class BatchedStatus extends BatchedStatus_base {
|
|
1866
1744
|
}
|
|
@@ -1876,6 +1754,45 @@ export declare class BatchedIncludeUnsupported extends BatchedIncludeUnsupported
|
|
|
1876
1754
|
declare const FetchGetBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BatchedIncludeUnsupported]>;
|
|
1877
1755
|
export declare class FetchGetBatched400 extends FetchGetBatched400_base {
|
|
1878
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
|
+
}
|
|
1879
1796
|
export declare const make: (httpClient: HttpClient.HttpClient, options?: {
|
|
1880
1797
|
readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
|
|
1881
1798
|
}) => Client;
|
|
@@ -1883,14 +1800,18 @@ export interface Client {
|
|
|
1883
1800
|
readonly fetchFetch: (options: {
|
|
1884
1801
|
readonly params: typeof FetchFetchParams.Encoded;
|
|
1885
1802
|
readonly payload: typeof FetchFetchRequest.Encoded;
|
|
1886
|
-
}) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof FetchFetch400.Type | typeof AuthFailed.Type | typeof FetchFetch403.Type | typeof
|
|
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>;
|
|
1887
1804
|
readonly fetchFetchJson: (options: {
|
|
1888
1805
|
readonly params: typeof FetchFetchJsonParams.Encoded;
|
|
1889
1806
|
readonly payload: typeof FetchFetchJsonRequest.Encoded;
|
|
1890
|
-
}) => Effect.Effect<typeof FetchObjectModeResult.Type, HttpClientError.HttpClientError | ParseError | typeof FetchFetchJson400.Type | typeof AuthFailed.Type | typeof FetchFetchJson403.Type | typeof
|
|
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>;
|
|
1891
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>;
|
|
1892
|
-
readonly fetchBatched: (options:
|
|
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>;
|
|
1893
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>;
|
|
1894
1815
|
}
|
|
1895
1816
|
export {};
|
|
1896
1817
|
//# sourceMappingURL=Generated.d.ts.map
|