@taico/client 0.8.2 → 0.8.3

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @taico/client
2
2
 
3
- [![Socket Badge](https://badge.socket.dev/npm/package/@taico/client/0.8.2)](https://badge.socket.dev/npm/package/@taico/client/0.8.2)
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@taico/client/0.8.3)](https://badge.socket.dev/npm/package/@taico/client/0.8.3)
@@ -1598,6 +1598,24 @@ export interface paths {
1598
1598
  patch?: never;
1599
1599
  trace?: never;
1600
1600
  };
1601
+ "/api/v1/threads/{id}/pin": {
1602
+ parameters: {
1603
+ query?: never;
1604
+ header?: never;
1605
+ path?: never;
1606
+ cookie?: never;
1607
+ };
1608
+ get?: never;
1609
+ /** Pin the thread to the top of the caller's thread list */
1610
+ put: operations["ThreadsController_pinThread"];
1611
+ post?: never;
1612
+ /** Unpin the thread from the caller's thread list */
1613
+ delete: operations["ThreadsController_unpinThread"];
1614
+ options?: never;
1615
+ head?: never;
1616
+ patch?: never;
1617
+ trace?: never;
1618
+ };
1601
1619
  "/api/v1/agents": {
1602
1620
  parameters: {
1603
1621
  query?: never;
@@ -4926,6 +4944,11 @@ export interface components {
4926
4944
  * @example 2
4927
4945
  */
4928
4946
  unreadCount: number;
4947
+ /**
4948
+ * @description The caller pinned this thread. Pinned threads are listed before all others
4949
+ * @example false
4950
+ */
4951
+ pinned: boolean;
4929
4952
  };
4930
4953
  ThreadListResponseDto: {
4931
4954
  /** @description Array of thread list items */
@@ -5022,6 +5045,11 @@ export interface components {
5022
5045
  * @example What is the status of this feature?
5023
5046
  */
5024
5047
  content: string;
5048
+ /**
5049
+ * @description IANA timezone of the person writing, as their client reports it. Lets the threads agent read relative times such as "tomorrow at 5pm". Raw offsets are rejected.
5050
+ * @example Australia/Sydney
5051
+ */
5052
+ timezone?: string;
5025
5053
  };
5026
5054
  ThreadMessageResponseDto: {
5027
5055
  /**
@@ -10879,6 +10907,62 @@ export interface operations {
10879
10907
  };
10880
10908
  };
10881
10909
  };
10910
+ ThreadsController_pinThread: {
10911
+ parameters: {
10912
+ query?: never;
10913
+ header?: never;
10914
+ path: {
10915
+ /** @description Thread UUID */
10916
+ id: string;
10917
+ };
10918
+ cookie?: never;
10919
+ };
10920
+ requestBody?: never;
10921
+ responses: {
10922
+ /** @description Thread pinned */
10923
+ 204: {
10924
+ headers: {
10925
+ [name: string]: unknown;
10926
+ };
10927
+ content?: never;
10928
+ };
10929
+ /** @description Thread not found */
10930
+ 404: {
10931
+ headers: {
10932
+ [name: string]: unknown;
10933
+ };
10934
+ content?: never;
10935
+ };
10936
+ };
10937
+ };
10938
+ ThreadsController_unpinThread: {
10939
+ parameters: {
10940
+ query?: never;
10941
+ header?: never;
10942
+ path: {
10943
+ /** @description Thread UUID */
10944
+ id: string;
10945
+ };
10946
+ cookie?: never;
10947
+ };
10948
+ requestBody?: never;
10949
+ responses: {
10950
+ /** @description Thread unpinned */
10951
+ 204: {
10952
+ headers: {
10953
+ [name: string]: unknown;
10954
+ };
10955
+ content?: never;
10956
+ };
10957
+ /** @description Thread not found */
10958
+ 404: {
10959
+ headers: {
10960
+ [name: string]: unknown;
10961
+ };
10962
+ content?: never;
10963
+ };
10964
+ };
10965
+ };
10882
10966
  AgentsController_listAgents: {
10883
10967
  parameters: {
10884
10968
  query?: {
@@ -3,4 +3,8 @@ export type CreateThreadMessageDto = {
3
3
  * Content of the message
4
4
  */
5
5
  content: string;
6
+ /**
7
+ * IANA timezone of the person writing, as their client reports it. Lets the threads agent read relative times such as "tomorrow at 5pm". Raw offsets are rejected.
8
+ */
9
+ timezone?: string;
6
10
  };
@@ -19,4 +19,8 @@ export type ThreadListItemResponseDto = {
19
19
  * Messages in this thread written by someone else that the caller has not read yet
20
20
  */
21
21
  unreadCount: number;
22
+ /**
23
+ * The caller pinned this thread. Pinned threads are listed before all others
24
+ */
25
+ pinned: boolean;
22
26
  };
@@ -179,4 +179,18 @@ export declare class ThreadsService {
179
179
  * @throws ApiError
180
180
  */
181
181
  static threadsControllerMarkThreadRead(id: string, config?: OpenAPIConfig): CancelablePromise<void>;
182
+ /**
183
+ * Pin the thread to the top of the caller's thread list
184
+ * @param id Thread UUID
185
+ * @returns void
186
+ * @throws ApiError
187
+ */
188
+ static threadsControllerPinThread(id: string, config?: OpenAPIConfig): CancelablePromise<void>;
189
+ /**
190
+ * Unpin the thread from the caller's thread list
191
+ * @param id Thread UUID
192
+ * @returns void
193
+ * @throws ApiError
194
+ */
195
+ static threadsControllerUnpinThread(id: string, config?: OpenAPIConfig): CancelablePromise<void>;
182
196
  }
@@ -417,4 +417,40 @@ export class ThreadsService {
417
417
  },
418
418
  });
419
419
  }
420
+ /**
421
+ * Pin the thread to the top of the caller's thread list
422
+ * @param id Thread UUID
423
+ * @returns void
424
+ * @throws ApiError
425
+ */
426
+ static threadsControllerPinThread(id, config = OpenAPI) {
427
+ return __request(config, {
428
+ method: 'PUT',
429
+ url: '/api/v1/threads/{id}/pin',
430
+ path: {
431
+ 'id': id,
432
+ },
433
+ errors: {
434
+ 404: `Thread not found`,
435
+ },
436
+ });
437
+ }
438
+ /**
439
+ * Unpin the thread from the caller's thread list
440
+ * @param id Thread UUID
441
+ * @returns void
442
+ * @throws ApiError
443
+ */
444
+ static threadsControllerUnpinThread(id, config = OpenAPI) {
445
+ return __request(config, {
446
+ method: 'DELETE',
447
+ url: '/api/v1/threads/{id}/pin',
448
+ path: {
449
+ 'id': id,
450
+ },
451
+ errors: {
452
+ 404: `Thread not found`,
453
+ },
454
+ });
455
+ }
420
456
  }
@@ -121,4 +121,14 @@ export declare class ThreadsResource extends BaseClient {
121
121
  id: string;
122
122
  signal?: AbortSignal;
123
123
  }): Promise<void>;
124
+ /** Pin the thread to the top of the caller's thread list */
125
+ ThreadsController_pinThread(params: {
126
+ id: string;
127
+ signal?: AbortSignal;
128
+ }): Promise<void>;
129
+ /** Unpin the thread from the caller's thread list */
130
+ ThreadsController_unpinThread(params: {
131
+ id: string;
132
+ signal?: AbortSignal;
133
+ }): Promise<void>;
124
134
  }
@@ -87,4 +87,12 @@ export class ThreadsResource extends BaseClient {
87
87
  async ThreadsController_markThreadRead(params) {
88
88
  return this.request('POST', `/api/v1/threads/${params.id}/read`, { responseType: 'void', signal: params?.signal });
89
89
  }
90
+ /** Pin the thread to the top of the caller's thread list */
91
+ async ThreadsController_pinThread(params) {
92
+ return this.request('PUT', `/api/v1/threads/${params.id}/pin`, { responseType: 'void', signal: params?.signal });
93
+ }
94
+ /** Unpin the thread from the caller's thread list */
95
+ async ThreadsController_unpinThread(params) {
96
+ return this.request('DELETE', `/api/v1/threads/${params.id}/pin`, { responseType: 'void', signal: params?.signal });
97
+ }
90
98
  }
@@ -663,6 +663,7 @@ export interface ThreadListItemResponseDto {
663
663
  stateContextBlockId: string;
664
664
  lastActivityAt: string;
665
665
  unreadCount: number;
666
+ pinned: boolean;
666
667
  }
667
668
  export interface ThreadListResponseDto {
668
669
  items: ThreadListItemResponseDto[];
@@ -697,6 +698,7 @@ export interface AppendThreadStateDto {
697
698
  }
698
699
  export interface CreateThreadMessageDto {
699
700
  content: string;
701
+ timezone?: string;
700
702
  }
701
703
  export interface ThreadMessageResponseDto {
702
704
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/client",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "PolyForm-Small-Business-1.0.0",