@kaiban/sdk 0.2.0 → 0.3.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.
@@ -9,12 +9,23 @@ export interface Column {
9
9
  }
10
10
  export interface Board {
11
11
  id: string;
12
- name: string;
13
- description: string;
14
- team_id: string;
15
- owner_id: string;
16
12
  agent_ids: string[];
13
+ created_at: ISODate;
14
+ created_by: string;
15
+ description: string;
17
16
  member_ids: string[];
18
- allowed_roles: string[];
17
+ name: string;
18
+ owner_id: string;
19
+ team_id: string;
19
20
  columns: Column[];
21
+ allowed_roles: string[];
20
22
  }
23
+ /**
24
+ * Input type for creating a new board
25
+ * Fields agent_ids, member_ids, and allowed_roles are optional and default to []
26
+ */
27
+ export type CreateBoardInput = Omit<Board, 'id' | 'created_at'> & {
28
+ agent_ids?: string[];
29
+ member_ids?: string[];
30
+ allowed_roles?: string[];
31
+ };
@@ -6,19 +6,28 @@ export declare const CardStatus: {
6
6
  readonly BLOCKED: "blocked";
7
7
  readonly DONE: "done";
8
8
  };
9
- export type CardPart = {
9
+ export interface TextPart {
10
10
  type: 'text';
11
- text: {
12
- content: string;
13
- };
14
- } | {
11
+ text: string;
12
+ metadata?: Record<string, unknown>;
13
+ }
14
+ export interface FileContent {
15
+ name: string;
16
+ mimeType: string;
17
+ bytes?: string;
18
+ uri?: string;
19
+ }
20
+ export interface FilePart {
15
21
  type: 'file';
16
- file: {
17
- name: string;
18
- mimeType: string;
19
- uri: string;
20
- };
21
- };
22
+ file: FileContent;
23
+ metadata?: Record<string, unknown>;
24
+ }
25
+ export interface DataPart {
26
+ type: 'data';
27
+ data: Record<string, unknown>;
28
+ metadata?: Record<string, unknown>;
29
+ }
30
+ export type CardPart = TextPart | FilePart | DataPart;
22
31
  export interface Card {
23
32
  id: string;
24
33
  team_id: string;
@@ -29,12 +38,12 @@ export interface Card {
29
38
  description?: string;
30
39
  status: (typeof CardStatus)[keyof typeof CardStatus];
31
40
  column_key: string;
41
+ created_at?: ISODate;
42
+ updated_at?: ISODate;
32
43
  priority: string;
33
44
  result?: string;
34
45
  member_ids: string[];
35
46
  metadata?: Record<string, unknown>;
36
47
  enabled?: boolean;
37
48
  parts?: CardPart[];
38
- created_at: ISODate;
39
- updated_at?: ISODate;
40
49
  }
@@ -27,6 +27,6 @@ export interface ExternalChannel {
27
27
  status: (typeof ExternalChannelStatus)[keyof typeof ExternalChannelStatus];
28
28
  priority: (typeof ExternalChannelPriority)[keyof typeof ExternalChannelPriority];
29
29
  metadata?: Record<string, unknown>;
30
- created_at: ISODate;
30
+ created_at?: ISODate;
31
31
  updated_at?: ISODate;
32
32
  }
@@ -2,13 +2,15 @@ import { ISODate } from './shared';
2
2
  export interface Team {
3
3
  id: string;
4
4
  name: string;
5
+ description: string;
5
6
  created_at: ISODate;
6
7
  }
7
8
  export interface TeamMember {
8
9
  id: string;
9
- team_id: string;
10
- role: string;
11
10
  is_agent: boolean;
12
11
  joined_at: ISODate;
12
+ role: string;
13
+ team_id: string;
14
+ user_id: string;
13
15
  created_at: ISODate;
14
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaiban/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Official TypeScript SDK for the Kaiban API",
5
5
  "keywords": [
6
6
  "kaiban",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@eslint/js": "^9.12.0",
79
- "@vitest/coverage-v8": "^2.1.1",
79
+ "@vitest/coverage-v8": "^4.0.16",
80
80
  "eslint": "^9.12.0",
81
81
  "eslint-config-prettier": "^9.1.0",
82
82
  "prettier": "^3.3.3",
@@ -85,6 +85,6 @@
85
85
  "typedoc": "^0.28.14",
86
86
  "typescript": "^5.4.0",
87
87
  "typescript-eslint": "^8.8.0",
88
- "vitest": "^2.1.1"
88
+ "vitest": "^4.0.16"
89
89
  }
90
90
  }