exa-js 2.5.1-beta.1 → 2.5.1-beta.2
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/dist/index.d.mts +7 -25
- package/dist/index.d.ts +7 -25
- package/dist/index.js +1608 -1624
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1650 -1666
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11332,6 +11332,13 @@ type AnswerStreamChunk$1 = {
|
|
|
11332
11332
|
content?: string;
|
|
11333
11333
|
citations?: AnswerStreamCitation[];
|
|
11334
11334
|
};
|
|
11335
|
+
declare class ExaError extends Error {
|
|
11336
|
+
statusCode: number;
|
|
11337
|
+
timestamp?: string;
|
|
11338
|
+
path?: string;
|
|
11339
|
+
details?: unknown;
|
|
11340
|
+
constructor(message: string, statusCode: number, timestamp?: string, path?: string, details?: unknown);
|
|
11341
|
+
}
|
|
11335
11342
|
/**
|
|
11336
11343
|
* Exa API client. Each method corresponds to an Exa API endpoint
|
|
11337
11344
|
* with positional args extracted and the remaining fields as options.
|
|
@@ -11390,31 +11397,6 @@ declare enum HttpStatusCode {
|
|
|
11390
11397
|
InternalServerError = 500,
|
|
11391
11398
|
ServiceUnavailable = 503
|
|
11392
11399
|
}
|
|
11393
|
-
/**
|
|
11394
|
-
* Base error class for all Exa API errors
|
|
11395
|
-
*/
|
|
11396
|
-
declare class ExaError extends Error {
|
|
11397
|
-
/**
|
|
11398
|
-
* HTTP status code
|
|
11399
|
-
*/
|
|
11400
|
-
statusCode: number;
|
|
11401
|
-
/**
|
|
11402
|
-
* ISO timestamp from API
|
|
11403
|
-
*/
|
|
11404
|
-
timestamp?: string;
|
|
11405
|
-
/**
|
|
11406
|
-
* Path that caused the error (may be undefined for client-side errors)
|
|
11407
|
-
*/
|
|
11408
|
-
path?: string;
|
|
11409
|
-
/**
|
|
11410
|
-
* Create a new ExaError
|
|
11411
|
-
* @param message Error message
|
|
11412
|
-
* @param statusCode HTTP status code
|
|
11413
|
-
* @param timestamp ISO timestamp from API
|
|
11414
|
-
* @param path Path that caused the error
|
|
11415
|
-
*/
|
|
11416
|
-
constructor(message: string, statusCode: number, timestamp?: string, path?: string);
|
|
11417
|
-
}
|
|
11418
11400
|
|
|
11419
11401
|
/**
|
|
11420
11402
|
* Options for retrieving page contents
|
package/dist/index.d.ts
CHANGED
|
@@ -11332,6 +11332,13 @@ type AnswerStreamChunk$1 = {
|
|
|
11332
11332
|
content?: string;
|
|
11333
11333
|
citations?: AnswerStreamCitation[];
|
|
11334
11334
|
};
|
|
11335
|
+
declare class ExaError extends Error {
|
|
11336
|
+
statusCode: number;
|
|
11337
|
+
timestamp?: string;
|
|
11338
|
+
path?: string;
|
|
11339
|
+
details?: unknown;
|
|
11340
|
+
constructor(message: string, statusCode: number, timestamp?: string, path?: string, details?: unknown);
|
|
11341
|
+
}
|
|
11335
11342
|
/**
|
|
11336
11343
|
* Exa API client. Each method corresponds to an Exa API endpoint
|
|
11337
11344
|
* with positional args extracted and the remaining fields as options.
|
|
@@ -11390,31 +11397,6 @@ declare enum HttpStatusCode {
|
|
|
11390
11397
|
InternalServerError = 500,
|
|
11391
11398
|
ServiceUnavailable = 503
|
|
11392
11399
|
}
|
|
11393
|
-
/**
|
|
11394
|
-
* Base error class for all Exa API errors
|
|
11395
|
-
*/
|
|
11396
|
-
declare class ExaError extends Error {
|
|
11397
|
-
/**
|
|
11398
|
-
* HTTP status code
|
|
11399
|
-
*/
|
|
11400
|
-
statusCode: number;
|
|
11401
|
-
/**
|
|
11402
|
-
* ISO timestamp from API
|
|
11403
|
-
*/
|
|
11404
|
-
timestamp?: string;
|
|
11405
|
-
/**
|
|
11406
|
-
* Path that caused the error (may be undefined for client-side errors)
|
|
11407
|
-
*/
|
|
11408
|
-
path?: string;
|
|
11409
|
-
/**
|
|
11410
|
-
* Create a new ExaError
|
|
11411
|
-
* @param message Error message
|
|
11412
|
-
* @param statusCode HTTP status code
|
|
11413
|
-
* @param timestamp ISO timestamp from API
|
|
11414
|
-
* @param path Path that caused the error
|
|
11415
|
-
*/
|
|
11416
|
-
constructor(message: string, statusCode: number, timestamp?: string, path?: string);
|
|
11417
|
-
}
|
|
11418
11400
|
|
|
11419
11401
|
/**
|
|
11420
11402
|
* Options for retrieving page contents
|