roe-typescript 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.
@@ -1,8 +1,8 @@
1
- import { RoeConfig } from "../config";
2
- import { RoeHTTPClient } from "../utils/httpClient";
3
- import { AgentJobResult, AgentJobResultBatch, AgentJobStatus, AgentJobStatusBatch, AgentDatum, PaginatedResponse, JobDataDeleteResponse } from "../models/responses";
4
- import { AgentInputDefinition, AgentVersionWithApi, BaseAgentWithApi } from "../models/agent";
5
- import { Job, JobBatch } from "../models/job";
1
+ import { RoeConfig } from "../config.js";
2
+ import { RoeHTTPClient } from "../utils/httpClient.js";
3
+ import { AgentJobResult, AgentJobResultBatch, AgentJobStatus, AgentJobStatusBatch, AgentDatum, PaginatedResponse, JobDataDeleteResponse } from "../models/responses.js";
4
+ import { AgentInputDefinition, AgentVersionWithApi, BaseAgentWithApi } from "../models/agent.js";
5
+ import { Job, JobBatch } from "../models/job.js";
6
6
  export declare class AgentVersionsAPI {
7
7
  private readonly agentsApi;
8
8
  constructor(agentsApi: AgentsAPI);
@@ -1,8 +1,8 @@
1
- import { PaginationHelper } from "../utils/pagination";
2
- import { isUuidString } from "../utils/fileDetection";
3
- import { BadRequestError, RoeAPIException } from "../exceptions";
4
- import { AgentVersionWithApi, BaseAgentWithApi, } from "../models/agent";
5
- import { Job, JobBatch } from "../models/job";
1
+ import { PaginationHelper } from "../utils/pagination.js";
2
+ import { isUuidString } from "../utils/fileDetection.js";
3
+ import { BadRequestError, RoeAPIException } from "../exceptions.js";
4
+ import { AgentVersionWithApi, BaseAgentWithApi, } from "../models/agent.js";
5
+ import { Job, JobBatch } from "../models/job.js";
6
6
  /**
7
7
  * Validates that a value is a valid UUID string.
8
8
  * @throws BadRequestError if the value is not a valid UUID
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RoeConfig } from "./config";
1
+ import { RoeConfig } from "./config.js";
2
2
  export declare class RoeAuth {
3
3
  private readonly config;
4
4
  constructor(config: RoeConfig);
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AgentsAPI } from "./api/agents";
2
- import { RoeAuth } from "./auth";
3
- import { RoeConfig, RoeConfigInput } from "./config";
4
- import { RoeHTTPClient } from "./utils/httpClient";
1
+ import { AgentsAPI } from "./api/agents.js";
2
+ import { RoeAuth } from "./auth.js";
3
+ import { RoeConfig, RoeConfigInput } from "./config.js";
4
+ import { RoeHTTPClient } from "./utils/httpClient.js";
5
5
  export declare class RoeClient {
6
6
  readonly config: RoeConfig;
7
7
  readonly auth: RoeAuth;
package/dist/client.js CHANGED
@@ -1,7 +1,7 @@
1
- import { AgentsAPI } from "./api/agents";
2
- import { RoeAuth } from "./auth";
3
- import { RoeConfig } from "./config";
4
- import { RoeHTTPClient } from "./utils/httpClient";
1
+ import { AgentsAPI } from "./api/agents.js";
2
+ import { RoeAuth } from "./auth.js";
3
+ import { RoeConfig } from "./config.js";
4
+ import { RoeHTTPClient } from "./utils/httpClient.js";
5
5
  export class RoeClient {
6
6
  constructor(input = {}) {
7
7
  this.config = RoeConfig.fromEnv(input);
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { RoeClient } from "./client";
2
- export { RoeConfig } from "./config";
3
- export type { RoeConfigInput } from "./config";
4
- export { RoeAuth } from "./auth";
5
- export * from "./exceptions";
6
- export * from "./api/agents";
7
- export * from "./models/agent";
8
- export * from "./models/job";
9
- export * from "./models/responses";
10
- export * from "./models/file";
1
+ export { RoeClient } from "./client.js";
2
+ export { RoeConfig } from "./config.js";
3
+ export type { RoeConfigInput } from "./config.js";
4
+ export { RoeAuth } from "./auth.js";
5
+ export * from "./exceptions.js";
6
+ export * from "./api/agents.js";
7
+ export * from "./models/agent.js";
8
+ export * from "./models/job.js";
9
+ export * from "./models/responses.js";
10
+ export * from "./models/file.js";
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export { RoeClient } from "./client";
2
- export { RoeConfig } from "./config";
3
- export { RoeAuth } from "./auth";
4
- export * from "./exceptions";
5
- export * from "./api/agents";
6
- export * from "./models/agent";
7
- export * from "./models/job";
8
- export * from "./models/responses";
9
- export * from "./models/file";
1
+ export { RoeClient } from "./client.js";
2
+ export { RoeConfig } from "./config.js";
3
+ export { RoeAuth } from "./auth.js";
4
+ export * from "./exceptions.js";
5
+ export * from "./api/agents.js";
6
+ export * from "./models/agent.js";
7
+ export * from "./models/job.js";
8
+ export * from "./models/responses.js";
9
+ export * from "./models/file.js";
@@ -1,6 +1,6 @@
1
- import { UserInfo } from "./user";
2
- import { AgentsAPI } from "../api/agents";
3
- import { Job } from "./job";
1
+ import { UserInfo } from "./user.js";
2
+ import { AgentsAPI } from "../api/agents.js";
3
+ import { Job } from "./job.js";
4
4
  export type AgentInputDefinition = {
5
5
  key: string;
6
6
  data_type: string;
@@ -1,7 +1,7 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import mime from "mime-types";
4
- import { BadRequestError } from "../exceptions";
4
+ import { BadRequestError } from "../exceptions.js";
5
5
  /** Maximum file size: 2GB (aligned with main-roe backend) */
6
6
  const MAX_FILE_SIZE = 2 * 1024 * 1024 * 1024;
7
7
  export class FileUpload {
@@ -1,5 +1,5 @@
1
- import { AgentsAPI } from "../api/agents";
2
- import { AgentJobResult, AgentJobStatus } from "./responses";
1
+ import { AgentsAPI } from "../api/agents.js";
2
+ import { AgentJobResult, AgentJobStatus } from "./responses.js";
3
3
  export declare class Job {
4
4
  private readonly agentsApi;
5
5
  private readonly jobId;
@@ -1,4 +1,4 @@
1
- import { JobStatus } from "./responses";
1
+ import { JobStatus } from "./responses.js";
2
2
  export class Job {
3
3
  constructor(opts) {
4
4
  this.agentsApi = opts.agentsApi;
@@ -1,6 +1,6 @@
1
- import { FileUpload } from "../models/file";
2
- import { RoeAuth } from "../auth";
3
- import { RoeConfig } from "../config";
1
+ import { FileUpload } from "../models/file.js";
2
+ import { RoeAuth } from "../auth.js";
3
+ import { RoeConfig } from "../config.js";
4
4
  export declare class RoeHTTPClient {
5
5
  private readonly config;
6
6
  private readonly auth;
@@ -3,9 +3,9 @@ import FormData from "form-data";
3
3
  import fs from "fs";
4
4
  import http from "http";
5
5
  import https from "https";
6
- import { FileUpload } from "../models/file";
7
- import { getExceptionForStatusCode, extractErrorMessage } from "../exceptions";
8
- import { isFilePath, isUuidString } from "./fileDetection";
6
+ import { FileUpload } from "../models/file.js";
7
+ import { getExceptionForStatusCode, extractErrorMessage } from "../exceptions.js";
8
+ import { isFilePath, isUuidString } from "./fileDetection.js";
9
9
  // Keep-alive agents for connection reuse (improves performance under load)
10
10
  const httpAgent = new http.Agent({ keepAlive: true });
11
11
  const httpsAgent = new https.Agent({ keepAlive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roe-typescript",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript SDK for the Roe AI API (feature parity with roe-python).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",