@letta-ai/letta-client 1.6.6 → 1.6.7

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.
Files changed (226) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +2 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +165 -13
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +165 -13
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +0 -8
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +0 -8
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/index.d.mts +1 -3
  20. package/resources/agents/index.d.mts.map +1 -1
  21. package/resources/agents/index.d.ts +1 -3
  22. package/resources/agents/index.d.ts.map +1 -1
  23. package/resources/agents/index.js +1 -5
  24. package/resources/agents/index.js.map +1 -1
  25. package/resources/agents/index.mjs +0 -2
  26. package/resources/agents/index.mjs.map +1 -1
  27. package/resources/agents/messages.d.mts +1 -2
  28. package/resources/agents/messages.d.mts.map +1 -1
  29. package/resources/agents/messages.d.ts +1 -2
  30. package/resources/agents/messages.d.ts.map +1 -1
  31. package/resources/agents/messages.js.map +1 -1
  32. package/resources/agents/messages.mjs.map +1 -1
  33. package/resources/conversations/conversations.d.mts +2 -2
  34. package/resources/conversations/conversations.d.mts.map +1 -1
  35. package/resources/conversations/conversations.d.ts +2 -2
  36. package/resources/conversations/conversations.d.ts.map +1 -1
  37. package/resources/conversations/conversations.js.map +1 -1
  38. package/resources/conversations/conversations.mjs.map +1 -1
  39. package/resources/conversations/index.d.mts +1 -1
  40. package/resources/conversations/index.d.mts.map +1 -1
  41. package/resources/conversations/index.d.ts +1 -1
  42. package/resources/conversations/index.d.ts.map +1 -1
  43. package/resources/conversations/index.js.map +1 -1
  44. package/resources/conversations/index.mjs.map +1 -1
  45. package/resources/conversations/messages.d.mts +12 -16
  46. package/resources/conversations/messages.d.mts.map +1 -1
  47. package/resources/conversations/messages.d.ts +12 -16
  48. package/resources/conversations/messages.d.ts.map +1 -1
  49. package/resources/conversations/messages.js +3 -3
  50. package/resources/conversations/messages.js.map +1 -1
  51. package/resources/conversations/messages.mjs +3 -3
  52. package/resources/conversations/messages.mjs.map +1 -1
  53. package/resources/index.d.mts +1 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +1 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -7
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +0 -3
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/messages.d.mts +6 -1
  62. package/resources/messages.d.mts.map +1 -1
  63. package/resources/messages.d.ts +6 -1
  64. package/resources/messages.d.ts.map +1 -1
  65. package/resources/messages.js +7 -0
  66. package/resources/messages.js.map +1 -1
  67. package/resources/messages.mjs +7 -0
  68. package/resources/messages.mjs.map +1 -1
  69. package/src/client.ts +2 -79
  70. package/src/resources/agents/agents.ts +210 -37
  71. package/src/resources/agents/index.ts +0 -13
  72. package/src/resources/agents/messages.ts +1 -3
  73. package/src/resources/conversations/conversations.ts +0 -2
  74. package/src/resources/conversations/index.ts +0 -1
  75. package/src/resources/conversations/messages.ts +17 -19
  76. package/src/resources/index.ts +1 -35
  77. package/src/resources/messages.ts +11 -0
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
  83. package/resources/agents/groups.d.mts +0 -22
  84. package/resources/agents/groups.d.mts.map +0 -1
  85. package/resources/agents/groups.d.ts +0 -22
  86. package/resources/agents/groups.d.ts.map +0 -1
  87. package/resources/agents/groups.js +0 -20
  88. package/resources/agents/groups.js.map +0 -1
  89. package/resources/agents/groups.mjs +0 -16
  90. package/resources/agents/groups.mjs.map +0 -1
  91. package/resources/agents/schedule.d.mts +0 -197
  92. package/resources/agents/schedule.d.mts.map +0 -1
  93. package/resources/agents/schedule.d.ts +0 -197
  94. package/resources/agents/schedule.d.ts.map +0 -1
  95. package/resources/agents/schedule.js +0 -40
  96. package/resources/agents/schedule.js.map +0 -1
  97. package/resources/agents/schedule.mjs +0 -36
  98. package/resources/agents/schedule.mjs.map +0 -1
  99. package/resources/batches/batches.d.mts +0 -240
  100. package/resources/batches/batches.d.mts.map +0 -1
  101. package/resources/batches/batches.d.ts +0 -240
  102. package/resources/batches/batches.d.ts.map +0 -1
  103. package/resources/batches/batches.js +0 -46
  104. package/resources/batches/batches.js.map +0 -1
  105. package/resources/batches/batches.mjs +0 -41
  106. package/resources/batches/batches.mjs.map +0 -1
  107. package/resources/batches/index.d.mts +0 -3
  108. package/resources/batches/index.d.mts.map +0 -1
  109. package/resources/batches/index.d.ts +0 -3
  110. package/resources/batches/index.d.ts.map +0 -1
  111. package/resources/batches/index.js +0 -9
  112. package/resources/batches/index.js.map +0 -1
  113. package/resources/batches/index.mjs +0 -4
  114. package/resources/batches/index.mjs.map +0 -1
  115. package/resources/batches/messages.d.mts +0 -22
  116. package/resources/batches/messages.d.mts.map +0 -1
  117. package/resources/batches/messages.d.ts +0 -22
  118. package/resources/batches/messages.d.ts.map +0 -1
  119. package/resources/batches/messages.js +0 -17
  120. package/resources/batches/messages.js.map +0 -1
  121. package/resources/batches/messages.mjs +0 -13
  122. package/resources/batches/messages.mjs.map +0 -1
  123. package/resources/batches.d.mts +0 -2
  124. package/resources/batches.d.mts.map +0 -1
  125. package/resources/batches.d.ts +0 -2
  126. package/resources/batches.d.ts.map +0 -1
  127. package/resources/batches.js +0 -6
  128. package/resources/batches.js.map +0 -1
  129. package/resources/batches.mjs +0 -3
  130. package/resources/batches.mjs.map +0 -1
  131. package/resources/groups/groups.d.mts +0 -197
  132. package/resources/groups/groups.d.mts.map +0 -1
  133. package/resources/groups/groups.d.ts +0 -197
  134. package/resources/groups/groups.d.ts.map +0 -1
  135. package/resources/groups/groups.js +0 -49
  136. package/resources/groups/groups.js.map +0 -1
  137. package/resources/groups/groups.mjs +0 -44
  138. package/resources/groups/groups.mjs.map +0 -1
  139. package/resources/groups/index.d.mts +0 -3
  140. package/resources/groups/index.d.mts.map +0 -1
  141. package/resources/groups/index.d.ts +0 -3
  142. package/resources/groups/index.d.ts.map +0 -1
  143. package/resources/groups/index.js +0 -9
  144. package/resources/groups/index.js.map +0 -1
  145. package/resources/groups/index.mjs +0 -4
  146. package/resources/groups/index.mjs.map +0 -1
  147. package/resources/groups/messages.d.mts +0 -360
  148. package/resources/groups/messages.d.mts.map +0 -1
  149. package/resources/groups/messages.d.ts +0 -360
  150. package/resources/groups/messages.d.ts.map +0 -1
  151. package/resources/groups/messages.js +0 -54
  152. package/resources/groups/messages.js.map +0 -1
  153. package/resources/groups/messages.mjs +0 -50
  154. package/resources/groups/messages.mjs.map +0 -1
  155. package/resources/groups.d.mts +0 -2
  156. package/resources/groups.d.mts.map +0 -1
  157. package/resources/groups.d.ts +0 -2
  158. package/resources/groups.d.ts.map +0 -1
  159. package/resources/groups.js +0 -6
  160. package/resources/groups.js.map +0 -1
  161. package/resources/groups.mjs +0 -3
  162. package/resources/groups.mjs.map +0 -1
  163. package/resources/identities/agents.d.mts +0 -23
  164. package/resources/identities/agents.d.mts.map +0 -1
  165. package/resources/identities/agents.d.ts +0 -23
  166. package/resources/identities/agents.d.ts.map +0 -1
  167. package/resources/identities/agents.js +0 -17
  168. package/resources/identities/agents.js.map +0 -1
  169. package/resources/identities/agents.mjs +0 -13
  170. package/resources/identities/agents.mjs.map +0 -1
  171. package/resources/identities/blocks.d.mts +0 -18
  172. package/resources/identities/blocks.d.mts.map +0 -1
  173. package/resources/identities/blocks.d.ts +0 -18
  174. package/resources/identities/blocks.d.ts.map +0 -1
  175. package/resources/identities/blocks.js +0 -17
  176. package/resources/identities/blocks.js.map +0 -1
  177. package/resources/identities/blocks.mjs +0 -13
  178. package/resources/identities/blocks.mjs.map +0 -1
  179. package/resources/identities/identities.d.mts +0 -204
  180. package/resources/identities/identities.d.mts.map +0 -1
  181. package/resources/identities/identities.d.ts +0 -204
  182. package/resources/identities/identities.d.ts.map +0 -1
  183. package/resources/identities/identities.js +0 -63
  184. package/resources/identities/identities.js.map +0 -1
  185. package/resources/identities/identities.mjs +0 -58
  186. package/resources/identities/identities.mjs.map +0 -1
  187. package/resources/identities/index.d.mts +0 -5
  188. package/resources/identities/index.d.mts.map +0 -1
  189. package/resources/identities/index.d.ts +0 -5
  190. package/resources/identities/index.d.ts.map +0 -1
  191. package/resources/identities/index.js +0 -13
  192. package/resources/identities/index.js.map +0 -1
  193. package/resources/identities/index.mjs +0 -6
  194. package/resources/identities/index.mjs.map +0 -1
  195. package/resources/identities/properties.d.mts +0 -18
  196. package/resources/identities/properties.d.mts.map +0 -1
  197. package/resources/identities/properties.d.ts +0 -18
  198. package/resources/identities/properties.d.ts.map +0 -1
  199. package/resources/identities/properties.js +0 -17
  200. package/resources/identities/properties.js.map +0 -1
  201. package/resources/identities/properties.mjs +0 -13
  202. package/resources/identities/properties.mjs.map +0 -1
  203. package/resources/identities.d.mts +0 -2
  204. package/resources/identities.d.mts.map +0 -1
  205. package/resources/identities.d.ts +0 -2
  206. package/resources/identities.d.ts.map +0 -1
  207. package/resources/identities.js +0 -6
  208. package/resources/identities.js.map +0 -1
  209. package/resources/identities.mjs +0 -3
  210. package/resources/identities.mjs.map +0 -1
  211. package/src/resources/agents/groups.ts +0 -37
  212. package/src/resources/agents/schedule.ts +0 -361
  213. package/src/resources/batches/batches.ts +0 -317
  214. package/src/resources/batches/index.ts +0 -11
  215. package/src/resources/batches/messages.ts +0 -38
  216. package/src/resources/batches.ts +0 -3
  217. package/src/resources/groups/groups.ts +0 -334
  218. package/src/resources/groups/index.ts +0 -27
  219. package/src/resources/groups/messages.ts +0 -505
  220. package/src/resources/groups.ts +0 -3
  221. package/src/resources/identities/agents.ts +0 -48
  222. package/src/resources/identities/blocks.ts +0 -33
  223. package/src/resources/identities/identities.ts +0 -286
  224. package/src/resources/identities/index.ts +0 -17
  225. package/src/resources/identities/properties.ts +0 -30
  226. package/src/resources/identities.ts +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,SAAS,EAAE,CAAA,sBAAgC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAdD,wBAcC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { ArrayPage } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Groups extends APIResource {
6
- /**
7
- * Lists the groups for an agent.
8
- */
9
- list(agentID, query = {}, options) {
10
- return this._client.getAPIList(path `/v1/agents/${agentID}/groups`, (ArrayPage), {
11
- query,
12
- ...options,
13
- });
14
- }
15
- }
16
- //# sourceMappingURL=groups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,cAAc,OAAO,SAAS,EAAE,CAAA,SAAgC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,197 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Schedule extends APIResource {
5
- /**
6
- * Schedule a message to be sent by the agent at a specified time or on a recurring
7
- * basis.
8
- */
9
- create(agentID: string, body: ScheduleCreateParams, options?: RequestOptions): APIPromise<ScheduleCreateResponse>;
10
- /**
11
- * Retrieve a scheduled message by its ID for a specific agent.
12
- */
13
- retrieve(scheduledMessageID: string, params: ScheduleRetrieveParams, options?: RequestOptions): APIPromise<ScheduleRetrieveResponse>;
14
- /**
15
- * List all scheduled messages for a specific agent.
16
- */
17
- list(agentID: string, query?: ScheduleListParams | null | undefined, options?: RequestOptions): APIPromise<ScheduleListResponse>;
18
- /**
19
- * Delete a scheduled message by its ID for a specific agent.
20
- */
21
- delete(scheduledMessageID: string, params: ScheduleDeleteParams, options?: RequestOptions): APIPromise<ScheduleDeleteResponse>;
22
- }
23
- export interface ScheduleCreateResponse {
24
- id: string;
25
- next_scheduled_at?: string;
26
- }
27
- export interface ScheduleRetrieveResponse {
28
- id: string;
29
- agent_id: string;
30
- message: ScheduleRetrieveResponse.Message;
31
- next_scheduled_time: string | null;
32
- schedule: ScheduleRetrieveResponse.UnionMember0 | ScheduleRetrieveResponse.UnionMember1;
33
- }
34
- export declare namespace ScheduleRetrieveResponse {
35
- interface Message {
36
- messages: Array<Message.Message>;
37
- callback_url?: string;
38
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
39
- max_steps?: number;
40
- }
41
- namespace Message {
42
- interface Message {
43
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
44
- role: 'user' | 'assistant' | 'system';
45
- name?: string;
46
- otid?: string;
47
- sender_id?: string;
48
- type?: 'message';
49
- }
50
- namespace Message {
51
- interface UnionMember0 {
52
- text: string;
53
- signature?: string | null;
54
- type?: 'text';
55
- }
56
- interface UnionMember1 {
57
- source: UnionMember1.Source;
58
- type: 'image';
59
- }
60
- namespace UnionMember1 {
61
- interface Source {
62
- data: string;
63
- media_type: string;
64
- detail?: string;
65
- type?: 'base64';
66
- }
67
- }
68
- }
69
- }
70
- interface UnionMember0 {
71
- scheduled_at: number;
72
- type?: 'one-time';
73
- }
74
- interface UnionMember1 {
75
- cron_expression: string;
76
- type: 'recurring';
77
- }
78
- }
79
- export interface ScheduleListResponse {
80
- has_next_page: boolean;
81
- scheduled_messages: Array<ScheduleListResponse.ScheduledMessage>;
82
- }
83
- export declare namespace ScheduleListResponse {
84
- interface ScheduledMessage {
85
- id: string;
86
- agent_id: string;
87
- message: ScheduledMessage.Message;
88
- next_scheduled_time: string | null;
89
- schedule: ScheduledMessage.UnionMember0 | ScheduledMessage.UnionMember1;
90
- }
91
- namespace ScheduledMessage {
92
- interface Message {
93
- messages: Array<Message.Message>;
94
- callback_url?: string;
95
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
96
- max_steps?: number;
97
- }
98
- namespace Message {
99
- interface Message {
100
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
101
- role: 'user' | 'assistant' | 'system';
102
- name?: string;
103
- otid?: string;
104
- sender_id?: string;
105
- type?: 'message';
106
- }
107
- namespace Message {
108
- interface UnionMember0 {
109
- text: string;
110
- signature?: string | null;
111
- type?: 'text';
112
- }
113
- interface UnionMember1 {
114
- source: UnionMember1.Source;
115
- type: 'image';
116
- }
117
- namespace UnionMember1 {
118
- interface Source {
119
- data: string;
120
- media_type: string;
121
- detail?: string;
122
- type?: 'base64';
123
- }
124
- }
125
- }
126
- }
127
- interface UnionMember0 {
128
- scheduled_at: number;
129
- type?: 'one-time';
130
- }
131
- interface UnionMember1 {
132
- cron_expression: string;
133
- type: 'recurring';
134
- }
135
- }
136
- }
137
- export interface ScheduleDeleteResponse {
138
- success: true;
139
- }
140
- export interface ScheduleCreateParams {
141
- messages: Array<ScheduleCreateParams.Message>;
142
- schedule: ScheduleCreateParams.UnionMember0 | ScheduleCreateParams.UnionMember1;
143
- callback_url?: string;
144
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
145
- max_steps?: number;
146
- }
147
- export declare namespace ScheduleCreateParams {
148
- interface Message {
149
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
150
- role: 'user' | 'assistant' | 'system';
151
- name?: string;
152
- otid?: string;
153
- sender_id?: string;
154
- type?: 'message';
155
- }
156
- namespace Message {
157
- interface UnionMember0 {
158
- text: string;
159
- signature?: string | null;
160
- type?: 'text';
161
- }
162
- interface UnionMember1 {
163
- source: UnionMember1.Source;
164
- type: 'image';
165
- }
166
- namespace UnionMember1 {
167
- interface Source {
168
- data: string;
169
- media_type: string;
170
- detail?: string;
171
- type?: 'base64';
172
- }
173
- }
174
- }
175
- interface UnionMember0 {
176
- scheduled_at: number;
177
- type?: 'one-time';
178
- }
179
- interface UnionMember1 {
180
- cron_expression: string;
181
- type: 'recurring';
182
- }
183
- }
184
- export interface ScheduleRetrieveParams {
185
- agent_id: string;
186
- }
187
- export interface ScheduleListParams {
188
- after?: string;
189
- limit?: string;
190
- }
191
- export interface ScheduleDeleteParams {
192
- agent_id: string;
193
- }
194
- export declare namespace Schedule {
195
- export { type ScheduleCreateResponse as ScheduleCreateResponse, type ScheduleRetrieveResponse as ScheduleRetrieveResponse, type ScheduleListResponse as ScheduleListResponse, type ScheduleDeleteResponse as ScheduleDeleteResponse, type ScheduleCreateParams as ScheduleCreateParams, type ScheduleRetrieveParams as ScheduleRetrieveParams, type ScheduleListParams as ScheduleListParams, type ScheduleDeleteParams as ScheduleDeleteParams, };
196
- }
197
- //# sourceMappingURL=schedule.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.d.mts","sourceRoot":"","sources":["../../src/resources/agents/schedule.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,QAAQ,CACN,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAKvC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CACJ,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAOtC;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IAEX,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE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K,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,197 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class Schedule extends APIResource {
5
- /**
6
- * Schedule a message to be sent by the agent at a specified time or on a recurring
7
- * basis.
8
- */
9
- create(agentID: string, body: ScheduleCreateParams, options?: RequestOptions): APIPromise<ScheduleCreateResponse>;
10
- /**
11
- * Retrieve a scheduled message by its ID for a specific agent.
12
- */
13
- retrieve(scheduledMessageID: string, params: ScheduleRetrieveParams, options?: RequestOptions): APIPromise<ScheduleRetrieveResponse>;
14
- /**
15
- * List all scheduled messages for a specific agent.
16
- */
17
- list(agentID: string, query?: ScheduleListParams | null | undefined, options?: RequestOptions): APIPromise<ScheduleListResponse>;
18
- /**
19
- * Delete a scheduled message by its ID for a specific agent.
20
- */
21
- delete(scheduledMessageID: string, params: ScheduleDeleteParams, options?: RequestOptions): APIPromise<ScheduleDeleteResponse>;
22
- }
23
- export interface ScheduleCreateResponse {
24
- id: string;
25
- next_scheduled_at?: string;
26
- }
27
- export interface ScheduleRetrieveResponse {
28
- id: string;
29
- agent_id: string;
30
- message: ScheduleRetrieveResponse.Message;
31
- next_scheduled_time: string | null;
32
- schedule: ScheduleRetrieveResponse.UnionMember0 | ScheduleRetrieveResponse.UnionMember1;
33
- }
34
- export declare namespace ScheduleRetrieveResponse {
35
- interface Message {
36
- messages: Array<Message.Message>;
37
- callback_url?: string;
38
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
39
- max_steps?: number;
40
- }
41
- namespace Message {
42
- interface Message {
43
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
44
- role: 'user' | 'assistant' | 'system';
45
- name?: string;
46
- otid?: string;
47
- sender_id?: string;
48
- type?: 'message';
49
- }
50
- namespace Message {
51
- interface UnionMember0 {
52
- text: string;
53
- signature?: string | null;
54
- type?: 'text';
55
- }
56
- interface UnionMember1 {
57
- source: UnionMember1.Source;
58
- type: 'image';
59
- }
60
- namespace UnionMember1 {
61
- interface Source {
62
- data: string;
63
- media_type: string;
64
- detail?: string;
65
- type?: 'base64';
66
- }
67
- }
68
- }
69
- }
70
- interface UnionMember0 {
71
- scheduled_at: number;
72
- type?: 'one-time';
73
- }
74
- interface UnionMember1 {
75
- cron_expression: string;
76
- type: 'recurring';
77
- }
78
- }
79
- export interface ScheduleListResponse {
80
- has_next_page: boolean;
81
- scheduled_messages: Array<ScheduleListResponse.ScheduledMessage>;
82
- }
83
- export declare namespace ScheduleListResponse {
84
- interface ScheduledMessage {
85
- id: string;
86
- agent_id: string;
87
- message: ScheduledMessage.Message;
88
- next_scheduled_time: string | null;
89
- schedule: ScheduledMessage.UnionMember0 | ScheduledMessage.UnionMember1;
90
- }
91
- namespace ScheduledMessage {
92
- interface Message {
93
- messages: Array<Message.Message>;
94
- callback_url?: string;
95
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
96
- max_steps?: number;
97
- }
98
- namespace Message {
99
- interface Message {
100
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
101
- role: 'user' | 'assistant' | 'system';
102
- name?: string;
103
- otid?: string;
104
- sender_id?: string;
105
- type?: 'message';
106
- }
107
- namespace Message {
108
- interface UnionMember0 {
109
- text: string;
110
- signature?: string | null;
111
- type?: 'text';
112
- }
113
- interface UnionMember1 {
114
- source: UnionMember1.Source;
115
- type: 'image';
116
- }
117
- namespace UnionMember1 {
118
- interface Source {
119
- data: string;
120
- media_type: string;
121
- detail?: string;
122
- type?: 'base64';
123
- }
124
- }
125
- }
126
- }
127
- interface UnionMember0 {
128
- scheduled_at: number;
129
- type?: 'one-time';
130
- }
131
- interface UnionMember1 {
132
- cron_expression: string;
133
- type: 'recurring';
134
- }
135
- }
136
- }
137
- export interface ScheduleDeleteResponse {
138
- success: true;
139
- }
140
- export interface ScheduleCreateParams {
141
- messages: Array<ScheduleCreateParams.Message>;
142
- schedule: ScheduleCreateParams.UnionMember0 | ScheduleCreateParams.UnionMember1;
143
- callback_url?: string;
144
- include_return_message_types?: Array<'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message'>;
145
- max_steps?: number;
146
- }
147
- export declare namespace ScheduleCreateParams {
148
- interface Message {
149
- content: Array<Message.UnionMember0 | Message.UnionMember1> | string;
150
- role: 'user' | 'assistant' | 'system';
151
- name?: string;
152
- otid?: string;
153
- sender_id?: string;
154
- type?: 'message';
155
- }
156
- namespace Message {
157
- interface UnionMember0 {
158
- text: string;
159
- signature?: string | null;
160
- type?: 'text';
161
- }
162
- interface UnionMember1 {
163
- source: UnionMember1.Source;
164
- type: 'image';
165
- }
166
- namespace UnionMember1 {
167
- interface Source {
168
- data: string;
169
- media_type: string;
170
- detail?: string;
171
- type?: 'base64';
172
- }
173
- }
174
- }
175
- interface UnionMember0 {
176
- scheduled_at: number;
177
- type?: 'one-time';
178
- }
179
- interface UnionMember1 {
180
- cron_expression: string;
181
- type: 'recurring';
182
- }
183
- }
184
- export interface ScheduleRetrieveParams {
185
- agent_id: string;
186
- }
187
- export interface ScheduleListParams {
188
- after?: string;
189
- limit?: string;
190
- }
191
- export interface ScheduleDeleteParams {
192
- agent_id: string;
193
- }
194
- export declare namespace Schedule {
195
- export { type ScheduleCreateResponse as ScheduleCreateResponse, type ScheduleRetrieveResponse as ScheduleRetrieveResponse, type ScheduleListResponse as ScheduleListResponse, type ScheduleDeleteResponse as ScheduleDeleteResponse, type ScheduleCreateParams as ScheduleCreateParams, type ScheduleRetrieveParams as ScheduleRetrieveParams, type ScheduleListParams as ScheduleListParams, type ScheduleDeleteParams as ScheduleDeleteParams, };
196
- }
197
- //# sourceMappingURL=schedule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../src/resources/agents/schedule.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,QAAQ,CACN,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAKvC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CACJ,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBA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IAED,UAAiB,YAAY;QAC3B,eAAe,EAAE,MAAM,CAAC;QAExB,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Schedule = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- class Schedule extends resource_1.APIResource {
8
- /**
9
- * Schedule a message to be sent by the agent at a specified time or on a recurring
10
- * basis.
11
- */
12
- create(agentID, body, options) {
13
- return this._client.post((0, path_1.path) `/v1/agents/${agentID}/schedule`, { body, ...options });
14
- }
15
- /**
16
- * Retrieve a scheduled message by its ID for a specific agent.
17
- */
18
- retrieve(scheduledMessageID, params, options) {
19
- const { agent_id } = params;
20
- return this._client.get((0, path_1.path) `/v1/agents/${agent_id}/schedule/${scheduledMessageID}`, options);
21
- }
22
- /**
23
- * List all scheduled messages for a specific agent.
24
- */
25
- list(agentID, query = {}, options) {
26
- return this._client.get((0, path_1.path) `/v1/agents/${agentID}/schedule`, { query, ...options });
27
- }
28
- /**
29
- * Delete a scheduled message by its ID for a specific agent.
30
- */
31
- delete(scheduledMessageID, params, options) {
32
- const { agent_id, ...body } = params;
33
- return this._client.delete((0, path_1.path) `/v1/agents/${agent_id}/schedule/${scheduledMessageID}`, {
34
- body,
35
- ...options,
36
- });
37
- }
38
- }
39
- exports.Schedule = Schedule;
40
- //# sourceMappingURL=schedule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../src/resources/agents/schedule.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,kBAA0B,EAC1B,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,aAAa,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,kBAA0B,EAC1B,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,aAAa,kBAAkB,EAAE,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAlDD,4BAkDC"}
@@ -1,36 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { path } from "../../internal/utils/path.mjs";
4
- export class Schedule extends APIResource {
5
- /**
6
- * Schedule a message to be sent by the agent at a specified time or on a recurring
7
- * basis.
8
- */
9
- create(agentID, body, options) {
10
- return this._client.post(path `/v1/agents/${agentID}/schedule`, { body, ...options });
11
- }
12
- /**
13
- * Retrieve a scheduled message by its ID for a specific agent.
14
- */
15
- retrieve(scheduledMessageID, params, options) {
16
- const { agent_id } = params;
17
- return this._client.get(path `/v1/agents/${agent_id}/schedule/${scheduledMessageID}`, options);
18
- }
19
- /**
20
- * List all scheduled messages for a specific agent.
21
- */
22
- list(agentID, query = {}, options) {
23
- return this._client.get(path `/v1/agents/${agentID}/schedule`, { query, ...options });
24
- }
25
- /**
26
- * Delete a scheduled message by its ID for a specific agent.
27
- */
28
- delete(scheduledMessageID, params, options) {
29
- const { agent_id, ...body } = params;
30
- return this._client.delete(path `/v1/agents/${agent_id}/schedule/${scheduledMessageID}`, {
31
- body,
32
- ...options,
33
- });
34
- }
35
- }
36
- //# sourceMappingURL=schedule.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.mjs","sourceRoot":"","sources":["../../src/resources/agents/schedule.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,OAAO,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,kBAA0B,EAC1B,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,QAAQ,aAAa,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,kBAA0B,EAC1B,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,QAAQ,aAAa,kBAAkB,EAAE,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}