opensink 0.1.0 → 0.2.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.
@@ -1,13 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import AgentSession, { AgentSessionStatus } from '../../types/agent-session-data.js';
2
+ import AgentSession, { AgentSessionData } from '../../types/agent-session-data.js';
3
3
  import APIResource from '../shared/api-resource.js';
4
- type CreateSessionData = {
5
- agent_id: string;
6
- status?: AgentSessionStatus;
7
- state?: Record<string, unknown>;
8
- metadata?: Record<string, unknown>;
9
- };
10
- export default class AgentSessionsResource extends APIResource<AgentSession, CreateSessionData> {
4
+ export default class AgentSessionsResource extends APIResource<AgentSession, AgentSessionData> {
11
5
  constructor(axios: AxiosInstance);
12
6
  }
13
- export {};
@@ -16,3 +16,4 @@ export default interface AgentSession {
16
16
  created_at: string;
17
17
  updated_at: string;
18
18
  }
19
+ export type AgentSessionData = Omit<AgentSession, 'id' | 'created_at' | 'updated_at' | 'agent_id' | 'workspace_id'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opensink",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Official JavaScript/TypeScript client for the OpenSink API",
5
5
  "private": false,
6
6
  "type": "module",
@@ -36,7 +36,6 @@
36
36
  "lint:fix": "yarn lint --fix",
37
37
  "lint": "eslint ./src --ext .ts",
38
38
  "build": "tsc && tsc-alias",
39
- "build:packages": "yarn build",
40
39
  "typecheck": "tsc --noEmit"
41
40
  },
42
41
  "devDependencies": {