@expandai/sdk 0.20.4 → 0.21.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 CHANGED
@@ -114,6 +114,16 @@ const page = await expand.fetchJson({ url: './dist' }, { local: true })
114
114
 
115
115
  Local mode requires an API key and temporarily shares the selected content publicly. Saved Snapshots remain shareable afterward. Never enable it for URLs or paths supplied by untrusted users. See [Local pages and files](https://expand.ai/docs/fetch/fetching-a-url#local-pages-and-files) for setup, folder boundaries, supported inputs, and errors.
116
116
 
117
+ ## Search
118
+
119
+ `search()` finds the pages that answer a question when you have no URL yet. The same method works on `ExpandService`.
120
+
121
+ ```ts
122
+ const { results } = await expand.search({ query: 'how do I rotate a Stripe API key', maxResults: 3 })
123
+ ```
124
+
125
+ Send a `query` of up to 2,000 characters, with `maxResults` from `1` to `10`, defaulting to `10`. Each result has a `url`, `title`, `excerpt`, and `score`, best first. A search costs two credits. See [Search](https://expand.ai/docs/search).
126
+
117
127
  ## Crawl and capture projections
118
128
 
119
129
  Creation and run-command replays require a caller-persisted idempotency key. One-off crawls close permanently when done, failed, or canceled; create a new crawl to run again. Events carry their own resume offset.
@@ -256,7 +266,7 @@ The SDK generates an idempotency key and reuses it for automatic retries when on
256
266
 
257
267
  ## What gets retried
258
268
 
259
- Not every 5xx is transient. Some of them are verdicts about the page you asked for — the browser committed its own error document, or the page could not be captured after the capture retries were spent — and repeating the request re-runs a full capture to reach the same answer, on your timeout budget and your quota.
269
+ Not every 5xx is transient. Some of them are verdicts about the page you asked for — the browser committed its own error document, or the page could not be captured — and repeating the request re-runs a full capture to reach the same answer, on your timeout budget and your quota.
260
270
 
261
271
  So the server states the answer rather than leaving it to a status-code rule. Error bodies whose status is ambiguous (`429`, `500`, `502`, `503`, `504`, `529`) carry a `retryable` boolean, and the SDK follows it:
262
272
 
@@ -1,20 +1,28 @@
1
1
  import { type CrawlProjectionOptions, type CrawlsClient, makeCrawlProjectionsClient } from './Crawls.js';
2
- import { type BatchedParams, type BatchedRequestOptions, type BatchedResponse, type CancelBatchedResponse, type ExpandServiceOptions, type FetchJsonParams, type FetchJsonRequestOptions, type FetchJsonResponse, type FetchParams, type FetchRequestOptions, type FetchResponse, type GetBatchedParams, type GetBatchedResponse, type RequestOptions, type SnapshotCatalog, type SnapshotCatalogParams, type SnapshotGetParams, type SnapshotHighlightsParams, type SnapshotHighlightsResponse } from './Service.js';
3
- export type { BatchedParams, BatchedRequestOptions, BatchedResponse, CancelBatchedResponse, FetchJsonParams, FetchJsonRequestOptions, FetchJsonResponse, FetchParams, FetchRequestOptions, FetchResponse, GetBatchedParams, GetBatchedResponse, SnapshotCatalog, SnapshotCatalogParams, SnapshotGetParams, SnapshotHighlightsParams, SnapshotHighlightsResponse, } from './Service.js';
2
+ import { type BatchedParams, type BatchedRequestOptions, type BatchedResponse, type CancelBatchedResponse, type ExpandServiceOptions, type FetchJsonParams, type FetchJsonRequestOptions, type FetchJsonResponse, type FetchParams, type FetchRequestOptions, type FetchResponse, type GetBatchedParams, type GetBatchedResponse, type RequestOptions, type SearchParams, type SearchResponse, type SnapshotCatalog, type SnapshotCatalogParams, type SnapshotGetParams, type SnapshotHighlightsParams, type SnapshotHighlightsResponse, type SnapshotNetworkPage, type SnapshotNetworkParams } from './Service.js';
3
+ export type { BatchedParams, BatchedRequestOptions, BatchedResponse, CancelBatchedResponse, FetchJsonParams, FetchJsonRequestOptions, FetchJsonResponse, FetchParams, FetchRequestOptions, FetchResponse, GetBatchedParams, GetBatchedResponse, SearchParams, SearchResponse, SnapshotCatalog, SnapshotCatalogParams, SnapshotGetParams, SnapshotHighlightsParams, SnapshotHighlightsResponse, SnapshotNetworkEntry, SnapshotNetworkPage, SnapshotNetworkParams, SnapshotNetworkType, } from './Service.js';
4
4
  /** Options for constructing an {@link ExpandClient}. Same shape as `ExpandServiceOptions`. */
5
5
  export type ExpandClientOptions = ExpandServiceOptions;
6
6
  export declare class SnapshotService {
7
7
  private readonly baseUrl;
8
8
  private readonly readSnapshot;
9
- constructor(baseUrl: string, readSnapshot: (params: SnapshotGetParams, options?: RequestOptions) => Promise<SnapshotCatalog | SnapshotHighlightsResponse>);
9
+ private readonly readNetwork;
10
+ constructor(baseUrl: string, readSnapshot: (params: SnapshotGetParams, options?: RequestOptions) => Promise<SnapshotCatalog | SnapshotHighlightsResponse>, readNetwork: (params: SnapshotNetworkParams, options?: RequestOptions) => Promise<SnapshotNetworkPage>);
10
11
  /** Read the public catalog, or request authenticated, billed Highlights from this Snapshot. */
11
12
  get(params: SnapshotHighlightsParams, options?: RequestOptions): Promise<SnapshotHighlightsResponse>;
12
13
  get(params: SnapshotCatalogParams, options?: RequestOptions): Promise<SnapshotCatalog>;
13
14
  get(params: SnapshotGetParams, options?: RequestOptions): Promise<SnapshotCatalog | SnapshotHighlightsResponse>;
14
- network(params: {
15
- readonly snapshotId: string;
16
- readonly q?: string;
17
- }): Promise<unknown>;
15
+ /**
16
+ * List the requests the page made, filtered on the server. Every matching entry comes back
17
+ * unless `limit` is set; then follow `next` as `cursor`, with the same filters, until it is absent.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * // The data behind a dashboard: JSON, CSV and file responses, and where to read them.
22
+ * const page = await client.snapshots.network({ snapshotId, type: ['json', 'csv', 'file'], detail: 'summary', bodies: 'none' })
23
+ * ```
24
+ */
25
+ network(params: SnapshotNetworkParams, options?: RequestOptions): Promise<SnapshotNetworkPage>;
18
26
  preview(params: {
19
27
  readonly snapshotId: string;
20
28
  readonly artifactId: string;
@@ -67,6 +75,15 @@ export declare class ExpandClient {
67
75
  */
68
76
  fetchJson(params: FetchJsonParams, options?: FetchJsonRequestOptions): Promise<FetchJsonResponse>;
69
77
  fetchJson(url: string, options?: CrawlProjectionOptions): Promise<unknown>;
78
+ /**
79
+ * Search the web and return the most relevant pages for a query, each with its title, excerpt and score.
80
+ *
81
+ * @throws {ExpandClientApiError} on 4xx/5xx responses
82
+ * @throws {ExpandClientTimeoutError} when the request exceeds `timeoutMs`
83
+ * @throws {ExpandClientConnectionError} on network failures
84
+ * @throws {ExpandClientError} for any other failure
85
+ */
86
+ search(params: SearchParams, options?: RequestOptions): Promise<SearchResponse>;
70
87
  /**
71
88
  * Kick off an asynchronous batched fetch over one or more URLs. Returns a batched-run ID that can
72
89
  * be polled via {@link getBatched}.
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../src/Client.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,0BAA0B,EAE1B,MAAM,aAAa,CAAA;AAGpB,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EAEpB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,MAAM,cAAc,CAAA;AAErB,YAAY,EACX,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,GAC1B,MAAM,cAAc,CAAA;AAErB,8FAA8F;AAC9F,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAA;AAEtD,qBAAa,eAAe;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAF9B,YACkB,OAAO,EAAE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7 @@ declare const FetchObjectModeResultWithJson_base: S.Class<FetchObjectModeResultW
366
366
  readonly id: string;
367
367
  readonly kind: "data-url";
368
368
  readonly placeholder: string;
369
- readonly archiveKey: string;
369
+ readonly archiveKey?: string | undefined;
370
370
  readonly mimeType: string;
371
371
  readonly sha256: string;
372
372
  readonly bytes: number;
@@ -694,8 +694,8 @@ export declare const fetchObjectModeJson: (httpClient: HttpClient.HttpClient, op
694
694
  readonly message: string;
695
695
  readonly _tag: "BadRequest";
696
696
  } | {
697
- readonly organizationId: string;
698
697
  readonly blockedUntil?: string | null | undefined;
698
+ readonly retryable: false;
699
699
  readonly _tag: "AccessBlocked";
700
700
  } | {
701
701
  readonly url: string;
@@ -740,7 +740,6 @@ export declare const fetchObjectModeJson: (httpClient: HttpClient.HttpClient, op
740
740
  } | {
741
741
  readonly message?: string | undefined;
742
742
  readonly requestId?: string | undefined;
743
- readonly dispatchOutcome?: "cancelled_after_start" | "cancelled_before_start" | "unknown" | undefined;
744
743
  readonly retryable: true;
745
744
  readonly _tag: "ServiceUnavailable";
746
745
  } | {
@@ -780,12 +779,11 @@ export declare const fetchSnapshotHighlights: (httpClient: HttpClient.HttpClient
780
779
  } | {
781
780
  readonly message?: string | undefined;
782
781
  readonly requestId?: string | undefined;
783
- readonly dispatchOutcome?: "cancelled_after_start" | "cancelled_before_start" | "unknown" | undefined;
784
782
  readonly retryable: true;
785
783
  readonly _tag: "ServiceUnavailable";
786
784
  } | {
787
- readonly organizationId: string;
788
785
  readonly blockedUntil?: string | null | undefined;
786
+ readonly retryable: false;
789
787
  readonly _tag: "AccessBlocked";
790
788
  } | import("@effect/platform/HttpClientError").HttpClientError, never>;
791
789
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FetchJson.d.ts","sourceRoot":"","sources":["../../src/FetchJson.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAyC,MAAM,kBAAkB,CAAA;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,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A;IAC9D,QAAQ,CAAC,OAAO,EAAE,OAAO,SAAS,CAAC,qBAAqB,CAAC,OAAO,CAAA;CAChE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEA8BA,CAAA;AAEF,wGAAwG;AACxG,eAAO,MAAM,uBAAuB,eACvB,UAAU,CAAC,UAAU,cACrB,MAAM,WACT,OAAO,SAAS,CAAC,uBAAuB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEAqBxD,CAAA"}
@@ -341,10 +341,12 @@ declare const FetchBlocked_base: S.Struct<{
341
341
  export declare class FetchBlocked extends FetchBlocked_base {
342
342
  }
343
343
  declare const FetchFetch403_base: S.Union<[S.Struct<{
344
- organizationId: S.filter<typeof S.String>;
345
344
  blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
346
345
  nullable: true;
347
346
  }>;
347
+ retryable: S.optionalWith<S.Literal<[false]>, {
348
+ default: () => false;
349
+ }>;
348
350
  _tag: S.Literal<["AccessBlocked"]>;
349
351
  }>, typeof FetchBlocked]>;
350
352
  export declare class FetchFetch403 extends FetchFetch403_base {
@@ -623,9 +625,6 @@ export declare class FetchOriginHttpError extends FetchOriginHttpError_base {
623
625
  declare const FetchFetch502_base: S.Union<[typeof FetchCaptureFailed, typeof FetchNavigationFailed, typeof FetchOriginHttpError]>;
624
626
  export declare class FetchFetch502 extends FetchFetch502_base {
625
627
  }
626
- declare const ServiceUnavailableDispatchOutcome_base: S.Literal<["cancelled_before_start", "cancelled_after_start", "unknown"]>;
627
- export declare class ServiceUnavailableDispatchOutcome extends ServiceUnavailableDispatchOutcome_base {
628
- }
629
628
  declare const ServiceUnavailableRetryable_base: S.Literal<[true]>;
630
629
  export declare class ServiceUnavailableRetryable extends ServiceUnavailableRetryable_base {
631
630
  }
@@ -639,9 +638,6 @@ declare const ServiceUnavailable_base: S.Struct<{
639
638
  requestId: S.optionalWith<typeof S.String, {
640
639
  nullable: true;
641
640
  }>;
642
- dispatchOutcome: S.optionalWith<typeof ServiceUnavailableDispatchOutcome, {
643
- nullable: true;
644
- }>;
645
641
  retryable: S.optionalWith<typeof ServiceUnavailableRetryable, {
646
642
  default: () => true;
647
643
  }>;
@@ -1162,7 +1158,10 @@ declare const FetchAssetReference_base: S.Struct<{
1162
1158
  id: typeof S.String;
1163
1159
  kind: typeof FetchAssetReferenceKind;
1164
1160
  placeholder: typeof S.String;
1165
- archiveKey: typeof S.String;
1161
+ /** @deprecated An opaque identifier equal to `sha256`. It will become optional and then be removed; use `id` or `sha256` instead. */
1162
+ archiveKey: S.optionalWith<typeof S.String, {
1163
+ nullable: true;
1164
+ }>;
1166
1165
  mimeType: typeof S.String;
1167
1166
  sha256: typeof S.String;
1168
1167
  bytes: typeof S.Number;
@@ -1456,10 +1455,12 @@ declare const FetchFetchJson400_base: S.Union<[typeof HttpApiDecodeError, typeof
1456
1455
  export declare class FetchFetchJson400 extends FetchFetchJson400_base {
1457
1456
  }
1458
1457
  declare const FetchFetchJson403_base: S.Union<[S.Struct<{
1459
- organizationId: S.filter<typeof S.String>;
1460
1458
  blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
1461
1459
  nullable: true;
1462
1460
  }>;
1461
+ retryable: S.optionalWith<S.Literal<[false]>, {
1462
+ default: () => false;
1463
+ }>;
1463
1464
  _tag: S.Literal<["AccessBlocked"]>;
1464
1465
  }>, typeof FetchBlocked]>;
1465
1466
  export declare class FetchFetchJson403 extends FetchFetchJson403_base {
@@ -1698,14 +1699,19 @@ export declare class BatchedRun extends BatchedRun_base {
1698
1699
  declare const FetchBatched400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
1699
1700
  export declare class FetchBatched400 extends FetchBatched400_base {
1700
1701
  }
1702
+ declare const FetchBatched403Retryable_base: S.Literal<[false]>;
1703
+ export declare class FetchBatched403Retryable extends FetchBatched403Retryable_base {
1704
+ }
1701
1705
  declare const FetchBatched403Tag_base: S.Literal<["AccessBlocked"]>;
1702
1706
  export declare class FetchBatched403Tag extends FetchBatched403Tag_base {
1703
1707
  }
1704
1708
  declare const FetchBatched403_base: S.Struct<{
1705
- organizationId: S.filter<typeof S.String>;
1706
1709
  blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
1707
1710
  nullable: true;
1708
1711
  }>;
1712
+ retryable: S.optionalWith<typeof FetchBatched403Retryable, {
1713
+ default: () => false;
1714
+ }>;
1709
1715
  _tag: typeof FetchBatched403Tag;
1710
1716
  }>;
1711
1717
  export declare class FetchBatched403 extends FetchBatched403_base {
@@ -2198,7 +2204,7 @@ declare const BatchedStatus_base: S.Class<BatchedStatus, {
2198
2204
  readonly id: string;
2199
2205
  readonly kind: "data-url";
2200
2206
  readonly placeholder: string;
2201
- readonly archiveKey: string;
2207
+ readonly archiveKey?: string | undefined;
2202
2208
  readonly mimeType: string;
2203
2209
  readonly sha256: string;
2204
2210
  readonly bytes: number;
@@ -2330,6 +2336,62 @@ declare const BatchedCancellationConflict_base: S.Class<BatchedCancellationConfl
2330
2336
  }, {}, {}>;
2331
2337
  export declare class BatchedCancellationConflict extends BatchedCancellationConflict_base {
2332
2338
  }
2339
+ declare const SearchSearchRequest_base: S.Class<SearchSearchRequest, {
2340
+ query: typeof S.String;
2341
+ maxResults: S.optionalWith<typeof Int, {
2342
+ nullable: true;
2343
+ }>;
2344
+ }, S.Struct.Encoded<{
2345
+ query: typeof S.String;
2346
+ maxResults: S.optionalWith<typeof Int, {
2347
+ nullable: true;
2348
+ }>;
2349
+ }>, never, {
2350
+ readonly maxResults?: number | undefined;
2351
+ } & {
2352
+ readonly query: string;
2353
+ }, {}, {}>;
2354
+ export declare class SearchSearchRequest extends SearchSearchRequest_base {
2355
+ }
2356
+ declare const SearchResult_base: S.Struct<{
2357
+ url: S.filter<typeof S.String>;
2358
+ title: typeof S.String;
2359
+ excerpt: typeof S.String;
2360
+ score: typeof S.Number;
2361
+ }>;
2362
+ export declare class SearchResult extends SearchResult_base {
2363
+ }
2364
+ declare const SearchResponse_base: S.Class<SearchResponse, {
2365
+ results: S.Array$<typeof SearchResult>;
2366
+ }, S.Struct.Encoded<{
2367
+ results: S.Array$<typeof SearchResult>;
2368
+ }>, never, {
2369
+ readonly results: readonly {
2370
+ readonly url: string;
2371
+ readonly title: string;
2372
+ readonly excerpt: string;
2373
+ readonly score: number;
2374
+ }[];
2375
+ }, {}, {}>;
2376
+ export declare class SearchResponse extends SearchResponse_base {
2377
+ }
2378
+ declare const SearchSearch403Retryable_base: S.Literal<[false]>;
2379
+ export declare class SearchSearch403Retryable extends SearchSearch403Retryable_base {
2380
+ }
2381
+ declare const SearchSearch403Tag_base: S.Literal<["AccessBlocked"]>;
2382
+ export declare class SearchSearch403Tag extends SearchSearch403Tag_base {
2383
+ }
2384
+ declare const SearchSearch403_base: S.Struct<{
2385
+ blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
2386
+ nullable: true;
2387
+ }>;
2388
+ retryable: S.optionalWith<typeof SearchSearch403Retryable, {
2389
+ default: () => false;
2390
+ }>;
2391
+ _tag: typeof SearchSearch403Tag;
2392
+ }>;
2393
+ export declare class SearchSearch403 extends SearchSearch403_base {
2394
+ }
2333
2395
  declare const SnapshotHighlightsInputIncludeAppendixMarkers_base: S.Literal<["off", "compact", "detailed"]>;
2334
2396
  export declare class SnapshotHighlightsInputIncludeAppendixMarkers extends SnapshotHighlightsInputIncludeAppendixMarkers_base {
2335
2397
  }
@@ -2560,14 +2622,19 @@ export declare class FetchSnapshotHighlightsResult extends FetchSnapshotHighligh
2560
2622
  declare const SnapshotsHighlights400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
2561
2623
  export declare class SnapshotsHighlights400 extends SnapshotsHighlights400_base {
2562
2624
  }
2625
+ declare const SnapshotsHighlights403Retryable_base: S.Literal<[false]>;
2626
+ export declare class SnapshotsHighlights403Retryable extends SnapshotsHighlights403Retryable_base {
2627
+ }
2563
2628
  declare const SnapshotsHighlights403Tag_base: S.Literal<["AccessBlocked"]>;
2564
2629
  export declare class SnapshotsHighlights403Tag extends SnapshotsHighlights403Tag_base {
2565
2630
  }
2566
2631
  declare const SnapshotsHighlights403_base: S.Struct<{
2567
- organizationId: S.filter<typeof S.String>;
2568
2632
  blockedUntil: S.optionalWith<S.Union<[typeof DateTimeUtc, typeof S.Null]>, {
2569
2633
  nullable: true;
2570
2634
  }>;
2635
+ retryable: S.optionalWith<typeof SnapshotsHighlights403Retryable, {
2636
+ default: () => false;
2637
+ }>;
2571
2638
  _tag: typeof SnapshotsHighlights403Tag;
2572
2639
  }>;
2573
2640
  export declare class SnapshotsHighlights403 extends SnapshotsHighlights403_base {
@@ -2688,6 +2755,278 @@ declare const SnapshotNotFound_base: S.Class<SnapshotNotFound, {
2688
2755
  }, {}, {}>;
2689
2756
  export declare class SnapshotNotFound extends SnapshotNotFound_base {
2690
2757
  }
2758
+ declare const PublicSnapshotsGetNetworkParamsBodies_base: S.Literal<["none", "inline"]>;
2759
+ export declare class PublicSnapshotsGetNetworkParamsBodies extends PublicSnapshotsGetNetworkParamsBodies_base {
2760
+ }
2761
+ declare const PublicSnapshotsGetNetworkParamsDetail_base: S.Literal<["summary", "full"]>;
2762
+ export declare class PublicSnapshotsGetNetworkParamsDetail extends PublicSnapshotsGetNetworkParamsDetail_base {
2763
+ }
2764
+ declare const PublicSnapshotsGetNetworkParams_base: S.Struct<{
2765
+ q: S.optionalWith<S.filter<S.filter<typeof S.String>>, {
2766
+ nullable: true;
2767
+ }>;
2768
+ urlContains: S.optionalWith<S.filter<S.filter<typeof S.String>>, {
2769
+ nullable: true;
2770
+ }>;
2771
+ mime: S.optionalWith<typeof S.String, {
2772
+ nullable: true;
2773
+ }>;
2774
+ type: S.optionalWith<typeof S.String, {
2775
+ nullable: true;
2776
+ }>;
2777
+ status: S.optionalWith<typeof S.String, {
2778
+ nullable: true;
2779
+ }>;
2780
+ bodies: S.optionalWith<typeof PublicSnapshotsGetNetworkParamsBodies, {
2781
+ nullable: true;
2782
+ }>;
2783
+ detail: S.optionalWith<typeof PublicSnapshotsGetNetworkParamsDetail, {
2784
+ nullable: true;
2785
+ }>;
2786
+ limit: S.optionalWith<typeof S.String, {
2787
+ nullable: true;
2788
+ }>;
2789
+ cursor: S.optionalWith<typeof S.String, {
2790
+ nullable: true;
2791
+ }>;
2792
+ }>;
2793
+ export declare class PublicSnapshotsGetNetworkParams extends PublicSnapshotsGetNetworkParams_base {
2794
+ }
2795
+ declare const SnapshotNetworkEntryResourceType_base: S.Literal<["document", "fetch", "script", "stylesheet", "image", "font", "media", "other"]>;
2796
+ export declare class SnapshotNetworkEntryResourceType extends SnapshotNetworkEntryResourceType_base {
2797
+ }
2798
+ declare const SnapshotNetworkHeader_base: S.Struct<{
2799
+ name: typeof S.String;
2800
+ value: typeof S.String;
2801
+ }>;
2802
+ export declare class SnapshotNetworkHeader extends SnapshotNetworkHeader_base {
2803
+ }
2804
+ declare const SnapshotNetworkQueryParam_base: S.Struct<{
2805
+ name: typeof S.String;
2806
+ value: typeof S.String;
2807
+ }>;
2808
+ export declare class SnapshotNetworkQueryParam extends SnapshotNetworkQueryParam_base {
2809
+ }
2810
+ declare const SnapshotNetworkCookie_base: S.Struct<{
2811
+ name: typeof S.String;
2812
+ value: typeof S.String;
2813
+ }>;
2814
+ export declare class SnapshotNetworkCookie extends SnapshotNetworkCookie_base {
2815
+ }
2816
+ declare const SnapshotNetworkRequest_base: S.Struct<{
2817
+ method: typeof S.String;
2818
+ url: typeof S.String;
2819
+ httpVersion: typeof S.String;
2820
+ headers: S.Array$<typeof SnapshotNetworkHeader>;
2821
+ queryString: S.Array$<typeof SnapshotNetworkQueryParam>;
2822
+ cookies: S.Array$<typeof SnapshotNetworkCookie>;
2823
+ headersSize: typeof S.Number;
2824
+ bodySize: typeof S.Number;
2825
+ postData: S.optionalWith<S.Struct<{
2826
+ mimeType: typeof S.String;
2827
+ text: typeof S.String;
2828
+ }>, {
2829
+ nullable: true;
2830
+ }>;
2831
+ }>;
2832
+ export declare class SnapshotNetworkRequest extends SnapshotNetworkRequest_base {
2833
+ }
2834
+ declare const SnapshotNetworkContent_base: S.Struct<{
2835
+ size: typeof S.Number;
2836
+ mimeType: typeof S.String;
2837
+ text: S.optionalWith<typeof S.String, {
2838
+ nullable: true;
2839
+ }>;
2840
+ encoding: S.optionalWith<typeof S.String, {
2841
+ nullable: true;
2842
+ }>;
2843
+ }>;
2844
+ export declare class SnapshotNetworkContent extends SnapshotNetworkContent_base {
2845
+ }
2846
+ declare const SnapshotNetworkResponse_base: S.Struct<{
2847
+ status: typeof S.Number;
2848
+ statusText: typeof S.String;
2849
+ httpVersion: typeof S.String;
2850
+ headers: S.Array$<typeof SnapshotNetworkHeader>;
2851
+ cookies: S.Array$<typeof SnapshotNetworkCookie>;
2852
+ content: typeof SnapshotNetworkContent;
2853
+ redirectURL: typeof S.String;
2854
+ headersSize: typeof S.Number;
2855
+ bodySize: typeof S.Number;
2856
+ }>;
2857
+ export declare class SnapshotNetworkResponse extends SnapshotNetworkResponse_base {
2858
+ }
2859
+ declare const SnapshotNetworkTimings_base: S.Struct<{
2860
+ blocked: typeof S.Number;
2861
+ dns: typeof S.Number;
2862
+ connect: typeof S.Number;
2863
+ send: typeof S.Number;
2864
+ wait: typeof S.Number;
2865
+ receive: typeof S.Number;
2866
+ ssl: typeof S.Number;
2867
+ }>;
2868
+ export declare class SnapshotNetworkTimings extends SnapshotNetworkTimings_base {
2869
+ }
2870
+ declare const SnapshotNetworkEntry_base: S.Struct<{
2871
+ id: typeof S.String;
2872
+ method: typeof S.String;
2873
+ url: typeof S.String;
2874
+ status: typeof S.Number;
2875
+ mimeType: typeof S.String;
2876
+ resourceType: typeof SnapshotNetworkEntryResourceType;
2877
+ size: typeof S.Number;
2878
+ startedDateTime: typeof S.String;
2879
+ time: typeof S.Number;
2880
+ content: typeof S.String;
2881
+ body: S.optionalWith<S.Struct<{
2882
+ text: typeof S.String;
2883
+ encoding: S.optionalWith<typeof S.String, {
2884
+ nullable: true;
2885
+ }>;
2886
+ }>, {
2887
+ nullable: true;
2888
+ }>;
2889
+ request: S.optionalWith<typeof SnapshotNetworkRequest, {
2890
+ nullable: true;
2891
+ }>;
2892
+ response: S.optionalWith<typeof SnapshotNetworkResponse, {
2893
+ nullable: true;
2894
+ }>;
2895
+ requestHeaders: S.optionalWith<S.Array$<typeof SnapshotNetworkHeader>, {
2896
+ nullable: true;
2897
+ }>;
2898
+ requestCookies: S.optionalWith<S.Array$<typeof SnapshotNetworkCookie>, {
2899
+ nullable: true;
2900
+ }>;
2901
+ responseHeaders: S.optionalWith<S.Array$<typeof SnapshotNetworkHeader>, {
2902
+ nullable: true;
2903
+ }>;
2904
+ timings: S.optionalWith<typeof SnapshotNetworkTimings, {
2905
+ nullable: true;
2906
+ }>;
2907
+ artifact: S.optionalWith<typeof S.String, {
2908
+ nullable: true;
2909
+ }>;
2910
+ }>;
2911
+ export declare class SnapshotNetworkEntry extends SnapshotNetworkEntry_base {
2912
+ }
2913
+ declare const SnapshotNetworkPage_base: S.Class<SnapshotNetworkPage, {
2914
+ items: S.Array$<typeof SnapshotNetworkEntry>;
2915
+ next: S.optionalWith<typeof S.String, {
2916
+ nullable: true;
2917
+ }>;
2918
+ }, S.Struct.Encoded<{
2919
+ items: S.Array$<typeof SnapshotNetworkEntry>;
2920
+ next: S.optionalWith<typeof S.String, {
2921
+ nullable: true;
2922
+ }>;
2923
+ }>, never, {
2924
+ readonly next?: string | undefined;
2925
+ } & {
2926
+ readonly items: readonly {
2927
+ readonly id: string;
2928
+ readonly method: string;
2929
+ readonly url: string;
2930
+ readonly status: number;
2931
+ readonly mimeType: string;
2932
+ readonly resourceType: "document" | "fetch" | "font" | "image" | "media" | "other" | "script" | "stylesheet";
2933
+ readonly size: number;
2934
+ readonly startedDateTime: string;
2935
+ readonly time: number;
2936
+ readonly content: string;
2937
+ readonly body?: {
2938
+ readonly text: string;
2939
+ readonly encoding?: string | undefined;
2940
+ } | undefined;
2941
+ readonly request?: {
2942
+ readonly method: string;
2943
+ readonly url: string;
2944
+ readonly httpVersion: string;
2945
+ readonly headers: readonly {
2946
+ readonly name: string;
2947
+ readonly value: string;
2948
+ }[];
2949
+ readonly queryString: readonly {
2950
+ readonly name: string;
2951
+ readonly value: string;
2952
+ }[];
2953
+ readonly cookies: readonly {
2954
+ readonly name: string;
2955
+ readonly value: string;
2956
+ }[];
2957
+ readonly headersSize: number;
2958
+ readonly bodySize: number;
2959
+ readonly postData?: {
2960
+ readonly mimeType: string;
2961
+ readonly text: string;
2962
+ } | undefined;
2963
+ } | undefined;
2964
+ readonly response?: {
2965
+ readonly status: number;
2966
+ readonly statusText: string;
2967
+ readonly httpVersion: string;
2968
+ readonly headers: readonly {
2969
+ readonly name: string;
2970
+ readonly value: string;
2971
+ }[];
2972
+ readonly cookies: readonly {
2973
+ readonly name: string;
2974
+ readonly value: string;
2975
+ }[];
2976
+ readonly content: {
2977
+ readonly size: number;
2978
+ readonly mimeType: string;
2979
+ readonly text?: string | undefined;
2980
+ readonly encoding?: string | undefined;
2981
+ };
2982
+ readonly redirectURL: string;
2983
+ readonly headersSize: number;
2984
+ readonly bodySize: number;
2985
+ } | undefined;
2986
+ readonly requestHeaders?: readonly {
2987
+ readonly name: string;
2988
+ readonly value: string;
2989
+ }[] | undefined;
2990
+ readonly requestCookies?: readonly {
2991
+ readonly name: string;
2992
+ readonly value: string;
2993
+ }[] | undefined;
2994
+ readonly responseHeaders?: readonly {
2995
+ readonly name: string;
2996
+ readonly value: string;
2997
+ }[] | undefined;
2998
+ readonly timings?: {
2999
+ readonly blocked: number;
3000
+ readonly dns: number;
3001
+ readonly connect: number;
3002
+ readonly send: number;
3003
+ readonly wait: number;
3004
+ readonly receive: number;
3005
+ readonly ssl: number;
3006
+ } | undefined;
3007
+ readonly artifact?: string | undefined;
3008
+ }[];
3009
+ }, {}, {}>;
3010
+ export declare class SnapshotNetworkPage extends SnapshotNetworkPage_base {
3011
+ }
3012
+ declare const PublicSnapshotsGetNetwork400_base: S.Union<[typeof HttpApiDecodeError, typeof BadRequest]>;
3013
+ export declare class PublicSnapshotsGetNetwork400 extends PublicSnapshotsGetNetwork400_base {
3014
+ }
3015
+ declare const ArtifactUnavailableReason_base: S.Literal<["archive_missing", "document_not_archived", "not_html"]>;
3016
+ export declare class ArtifactUnavailableReason extends ArtifactUnavailableReason_base {
3017
+ }
3018
+ declare const ArtifactUnavailableTag_base: S.Literal<["ArtifactUnavailable"]>;
3019
+ export declare class ArtifactUnavailableTag extends ArtifactUnavailableTag_base {
3020
+ }
3021
+ declare const ArtifactUnavailable_base: S.Struct<{
3022
+ reason: typeof ArtifactUnavailableReason;
3023
+ _tag: typeof ArtifactUnavailableTag;
3024
+ }>;
3025
+ export declare class ArtifactUnavailable extends ArtifactUnavailable_base {
3026
+ }
3027
+ declare const PublicSnapshotsGetNetwork404_base: S.Union<[typeof SnapshotNotFound, typeof ArtifactUnavailable]>;
3028
+ export declare class PublicSnapshotsGetNetwork404 extends PublicSnapshotsGetNetwork404_base {
3029
+ }
2691
3030
  export declare const make: (httpClient: HttpClient.HttpClient, options?: {
2692
3031
  readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
2693
3032
  }) => Client;
@@ -2706,8 +3045,10 @@ export interface Client {
2706
3045
  }) => 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>;
2707
3046
  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>;
2708
3047
  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>;
3048
+ readonly searchSearch: (options: typeof SearchSearchRequest.Encoded) => Effect.Effect<typeof SearchResponse.Type, HttpClientError.HttpClientError | ParseError | typeof HttpApiDecodeError.Type | typeof AuthFailed.Type | typeof SearchSearch403.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
2709
3049
  readonly snapshotsHighlights: (snapshotId: string, options: typeof SnapshotHighlightsInput.Encoded) => Effect.Effect<typeof FetchSnapshotHighlightsResult.Type, HttpClientError.HttpClientError | ParseError | typeof SnapshotsHighlights400.Type | typeof AuthFailed.Type | typeof SnapshotsHighlights403.Type | typeof FetchSnapshotHighlightsNotFound.Type | typeof PayloadTooLarge.Type | typeof SnapshotsHighlights429.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
2710
3050
  readonly publicSnapshotsGetCatalog: (snapshotId: string, options: typeof PublicSnapshotsGetCatalogParams.Encoded) => Effect.Effect<typeof SnapshotCatalog.Type, HttpClientError.HttpClientError | ParseError | typeof HttpApiDecodeError.Type | typeof SnapshotNotFound.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
3051
+ readonly publicSnapshotsGetNetwork: (snapshotId: string, options: typeof PublicSnapshotsGetNetworkParams.Encoded) => Effect.Effect<typeof SnapshotNetworkPage.Type, HttpClientError.HttpClientError | ParseError | typeof PublicSnapshotsGetNetwork400.Type | typeof PublicSnapshotsGetNetwork404.Type | typeof PayloadTooLarge.Type | typeof TooManyRequests.Type | typeof InternalError.Type | typeof ServiceUnavailable.Type>;
2711
3052
  }
2712
3053
  export {};
2713
3054
  //# sourceMappingURL=Generated.d.ts.map