asteroid-odyssey 1.0.17 → 1.0.21

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.ts CHANGED
@@ -9,7 +9,9 @@ import type { CreateWorkflowRequest, WorkflowExecutionRequest, Execution } from
9
9
  * @example
10
10
  * const client = AsteroidClient('your-api-key');
11
11
  */
12
- export declare const AsteroidClient: (apiKey: string) => Client;
12
+ export declare const AsteroidClient: (apiKey: string, options?: {
13
+ baseUrl?: string;
14
+ }) => Client;
13
15
  /**
14
16
  * Create a new workflow for a given agent.
15
17
  *
package/dist/index.js CHANGED
@@ -48,9 +48,9 @@ const AgentsSDK = __importStar(require("./generated/agents/sdk.gen"));
48
48
  * @example
49
49
  * const client = AsteroidClient('your-api-key');
50
50
  */
51
- const AsteroidClient = (apiKey) => {
51
+ const AsteroidClient = (apiKey, options) => {
52
52
  return (0, client_fetch_1.createClient)({
53
- baseUrl: 'https://odyssey.asteroid.ai/api/v1',
53
+ baseUrl: options?.baseUrl || 'https://odyssey.asteroid.ai/api/v1',
54
54
  headers: {
55
55
  'X-Asteroid-Agents-Api-Key': apiKey
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "v1.0.17",
3
+ "version": "v1.0.21",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",