@xeroml/sdk 0.1.0 → 0.1.1
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/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/session.d.ts +2 -2
- package/package.json +2 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Session } from "./session";
|
|
2
|
-
import type { IntentGraph, ParseOptions, SessionListItem, UsageInfo, XeroMLConfig } from "./types";
|
|
1
|
+
import { Session } from "./session.js";
|
|
2
|
+
import type { IntentGraph, ParseOptions, SessionListItem, UsageInfo, XeroMLConfig } from "./types.js";
|
|
3
3
|
export declare class XeroML {
|
|
4
4
|
private readonly baseURL;
|
|
5
5
|
private readonly apiKey;
|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @xeroml/sdk — XeroML client class
|
|
2
|
-
import { mapError } from "./errors";
|
|
3
|
-
import { Session } from "./session";
|
|
2
|
+
import { mapError } from "./errors.js";
|
|
3
|
+
import { Session } from "./session.js";
|
|
4
4
|
const DEFAULT_BASE_URL = "https://api.xeroml.com";
|
|
5
5
|
const DEFAULT_TIMEOUT = 30_000;
|
|
6
6
|
export class XeroML {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { XeroML } from "./client";
|
|
2
|
-
export { Session } from "./session";
|
|
3
|
-
export type { IntentGraph, SubGoal, IntentMeta, LatentStates, DriftReport, ParseResponse, SessionParseResponse, SessionInfo, SessionListItem, SessionGraphResponse, UsageInfo, UsageMonth, XeroMLConfig, ParseOptions, UpdateOptions, } from "./types";
|
|
4
|
-
export { XeroMLError, XeroMLAuthError, XeroMLCreditError, XeroMLRateLimitError, XeroMLValidationError, XeroMLParseError, XeroMLNotFoundError, XeroMLSessionEndedError, XeroMLTimeoutError, XeroMLServerError, mapError, } from "./errors";
|
|
5
|
-
export type { ErrorBody } from "./errors";
|
|
1
|
+
export { XeroML } from "./client.js";
|
|
2
|
+
export { Session } from "./session.js";
|
|
3
|
+
export type { IntentGraph, SubGoal, IntentMeta, LatentStates, DriftReport, ParseResponse, SessionParseResponse, SessionInfo, SessionListItem, SessionGraphResponse, UsageInfo, UsageMonth, XeroMLConfig, ParseOptions, UpdateOptions, } from "./types.js";
|
|
4
|
+
export { XeroMLError, XeroMLAuthError, XeroMLCreditError, XeroMLRateLimitError, XeroMLValidationError, XeroMLParseError, XeroMLNotFoundError, XeroMLSessionEndedError, XeroMLTimeoutError, XeroMLServerError, mapError, } from "./errors.js";
|
|
5
|
+
export type { ErrorBody } from "./errors.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @xeroml/sdk — entry point
|
|
2
|
-
export { XeroML } from "./client";
|
|
3
|
-
export { Session } from "./session";
|
|
2
|
+
export { XeroML } from "./client.js";
|
|
3
|
+
export { Session } from "./session.js";
|
|
4
4
|
// Errors
|
|
5
|
-
export { XeroMLError, XeroMLAuthError, XeroMLCreditError, XeroMLRateLimitError, XeroMLValidationError, XeroMLParseError, XeroMLNotFoundError, XeroMLSessionEndedError, XeroMLTimeoutError, XeroMLServerError, mapError, } from "./errors";
|
|
5
|
+
export { XeroMLError, XeroMLAuthError, XeroMLCreditError, XeroMLRateLimitError, XeroMLValidationError, XeroMLParseError, XeroMLNotFoundError, XeroMLSessionEndedError, XeroMLTimeoutError, XeroMLServerError, mapError, } from "./errors.js";
|
package/dist/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { XeroML } from "./client";
|
|
2
|
-
import type { DriftReport, IntentGraph, ParseOptions, UpdateOptions } from "./types";
|
|
1
|
+
import type { XeroML } from "./client.js";
|
|
2
|
+
import type { DriftReport, IntentGraph, ParseOptions, UpdateOptions } from "./types.js";
|
|
3
3
|
export declare class Session {
|
|
4
4
|
private client;
|
|
5
5
|
readonly sessionId: string;
|
package/package.json
CHANGED