@breign/client 1.0.100 → 1.0.102

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 (50) hide show
  1. package/dist/apis/AgentApi.d.ts +14 -0
  2. package/dist/apis/AgentApi.js +32 -0
  3. package/dist/apis/ConfigurationApi.d.ts +11 -1
  4. package/dist/apis/ConfigurationApi.js +26 -0
  5. package/dist/apis/ScheduledTasksApi.d.ts +143 -0
  6. package/dist/apis/ScheduledTasksApi.js +364 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ChatUio.d.ts +14 -0
  10. package/dist/models/ChatUio.js +10 -0
  11. package/dist/models/GetUploadLimits200ResponseUio.d.ts +32 -0
  12. package/dist/models/GetUploadLimits200ResponseUio.js +50 -0
  13. package/dist/models/PromptCreateRequestUio.d.ts +14 -0
  14. package/dist/models/PromptCreateRequestUio.js +10 -0
  15. package/dist/models/PromptFlowCreateRequestUio.d.ts +14 -0
  16. package/dist/models/PromptFlowCreateRequestUio.js +10 -0
  17. package/dist/models/RunStepUio.d.ts +78 -0
  18. package/dist/models/RunStepUio.js +74 -0
  19. package/dist/models/ScheduledTaskCreateUio.d.ts +77 -0
  20. package/dist/models/ScheduledTaskCreateUio.js +75 -0
  21. package/dist/models/ScheduledTaskListUio.d.ts +39 -0
  22. package/dist/models/ScheduledTaskListUio.js +55 -0
  23. package/dist/models/ScheduledTaskManualRunResponseUio.d.ts +32 -0
  24. package/dist/models/ScheduledTaskManualRunResponseUio.js +50 -0
  25. package/dist/models/ScheduledTaskRunListUio.d.ts +39 -0
  26. package/dist/models/ScheduledTaskRunListUio.js +55 -0
  27. package/dist/models/ScheduledTaskRunUio.d.ts +110 -0
  28. package/dist/models/ScheduledTaskRunUio.js +98 -0
  29. package/dist/models/ScheduledTaskStatusResponseUio.d.ts +46 -0
  30. package/dist/models/ScheduledTaskStatusResponseUio.js +60 -0
  31. package/dist/models/ScheduledTaskStatusToggleUio.d.ts +40 -0
  32. package/dist/models/ScheduledTaskStatusToggleUio.js +58 -0
  33. package/dist/models/ScheduledTaskUio.d.ts +146 -0
  34. package/dist/models/ScheduledTaskUio.js +123 -0
  35. package/dist/models/TaskScheduleEndOneOf1Uio.d.ts +45 -0
  36. package/dist/models/TaskScheduleEndOneOf1Uio.js +61 -0
  37. package/dist/models/TaskScheduleEndOneOf2Uio.d.ts +45 -0
  38. package/dist/models/TaskScheduleEndOneOf2Uio.js +61 -0
  39. package/dist/models/TaskScheduleEndOneOfUio.d.ts +39 -0
  40. package/dist/models/TaskScheduleEndOneOfUio.js +57 -0
  41. package/dist/models/TaskScheduleEndUio.d.ts +24 -0
  42. package/dist/models/TaskScheduleEndUio.js +64 -0
  43. package/dist/models/TaskScheduleIntervalUio.d.ts +47 -0
  44. package/dist/models/TaskScheduleIntervalUio.js +63 -0
  45. package/dist/models/TaskScheduleUio.d.ts +94 -0
  46. package/dist/models/TaskScheduleUio.js +78 -0
  47. package/dist/models/index.d.ts +16 -0
  48. package/dist/models/index.js +16 -0
  49. package/dist/openapi.json +933 -4
  50. package/package.json +1 -1
package/dist/openapi.json CHANGED
@@ -69,6 +69,9 @@
69
69
  }, {
70
70
  "description" : "Skills management endpoints",
71
71
  "name" : "skills"
72
+ }, {
73
+ "description" : "Scheduled task management endpoints",
74
+ "name" : "scheduled-tasks"
72
75
  } ],
73
76
  "paths" : {
74
77
  "/health" : {
@@ -1497,11 +1500,10 @@
1497
1500
  "type" : "string"
1498
1501
  }
1499
1502
  }, {
1500
- "description" : "Sort conversations by last activity (asc = oldest first, desc = most recent first)",
1503
+ "description" : "Sort order for results",
1501
1504
  "in" : "query",
1502
1505
  "name" : "sortOrder",
1503
1506
  "schema" : {
1504
- "default" : "desc",
1505
1507
  "enum" : [ "asc", "desc" ],
1506
1508
  "type" : "string"
1507
1509
  }
@@ -1598,6 +1600,55 @@
1598
1600
  "tags" : [ "prompts" ]
1599
1601
  }
1600
1602
  },
1603
+ "/agents/{agentId}/conversations/{conversationId}" : {
1604
+ "get" : {
1605
+ "description" : "Get a specific conversation by its ID for the given agent",
1606
+ "operationId" : "getAgentConversationById",
1607
+ "parameters" : [ {
1608
+ "description" : "ID of the agent",
1609
+ "in" : "path",
1610
+ "name" : "agentId",
1611
+ "required" : true,
1612
+ "schema" : {
1613
+ "format" : "uuid",
1614
+ "type" : "string"
1615
+ }
1616
+ }, {
1617
+ "in" : "path",
1618
+ "name" : "conversationId",
1619
+ "required" : true,
1620
+ "schema" : {
1621
+ "type" : "string"
1622
+ }
1623
+ } ],
1624
+ "responses" : {
1625
+ "200" : {
1626
+ "content" : {
1627
+ "application/json" : {
1628
+ "schema" : {
1629
+ "$ref" : "#/components/schemas/Chat"
1630
+ }
1631
+ }
1632
+ },
1633
+ "description" : "The conversation"
1634
+ },
1635
+ "401" : {
1636
+ "description" : "Unauthorized"
1637
+ },
1638
+ "403" : {
1639
+ "description" : "Forbidden - User doesn't have access to this agent"
1640
+ },
1641
+ "404" : {
1642
+ "description" : "Conversation not found"
1643
+ },
1644
+ "500" : {
1645
+ "description" : "Failed to get conversation"
1646
+ }
1647
+ },
1648
+ "summary" : "Get a conversation by ID for an agent",
1649
+ "tags" : [ "agent" ]
1650
+ }
1651
+ },
1601
1652
  "/agents/{agentId}/message-audio/{audioFileId}" : {
1602
1653
  "delete" : {
1603
1654
  "description" : "Removes the audio chunk from the message in the database and deletes the file from object storage.\n",
@@ -1747,6 +1798,486 @@
1747
1798
  "tags" : [ "agent" ]
1748
1799
  }
1749
1800
  },
1801
+ "/agents/{agentId}/scheduled-tasks" : {
1802
+ "get" : {
1803
+ "operationId" : "listScheduledTasks",
1804
+ "parameters" : [ {
1805
+ "description" : "ID of the agent",
1806
+ "in" : "path",
1807
+ "name" : "agentId",
1808
+ "required" : true,
1809
+ "schema" : {
1810
+ "format" : "uuid",
1811
+ "type" : "string"
1812
+ }
1813
+ }, {
1814
+ "description" : "Filter by task status",
1815
+ "in" : "query",
1816
+ "name" : "status",
1817
+ "schema" : {
1818
+ "enum" : [ "active", "paused", "done" ],
1819
+ "type" : "string"
1820
+ }
1821
+ }, {
1822
+ "description" : "Search query",
1823
+ "in" : "query",
1824
+ "name" : "q",
1825
+ "schema" : {
1826
+ "type" : "string"
1827
+ }
1828
+ }, {
1829
+ "in" : "query",
1830
+ "name" : "limit",
1831
+ "schema" : {
1832
+ "default" : 50,
1833
+ "type" : "integer"
1834
+ }
1835
+ }, {
1836
+ "description" : "Cursor for pagination (createdAt before this date)",
1837
+ "in" : "query",
1838
+ "name" : "before",
1839
+ "schema" : {
1840
+ "format" : "date-time",
1841
+ "type" : "string"
1842
+ }
1843
+ } ],
1844
+ "responses" : {
1845
+ "200" : {
1846
+ "content" : {
1847
+ "application/json" : {
1848
+ "schema" : {
1849
+ "$ref" : "#/components/schemas/ScheduledTaskList"
1850
+ }
1851
+ }
1852
+ },
1853
+ "description" : "List of scheduled tasks"
1854
+ },
1855
+ "401" : {
1856
+ "description" : "Unauthorized"
1857
+ },
1858
+ "403" : {
1859
+ "description" : "Forbidden"
1860
+ }
1861
+ },
1862
+ "summary" : "List scheduled tasks for an agent",
1863
+ "tags" : [ "scheduledTasks" ]
1864
+ },
1865
+ "post" : {
1866
+ "operationId" : "createScheduledTask",
1867
+ "parameters" : [ {
1868
+ "description" : "ID of the agent",
1869
+ "in" : "path",
1870
+ "name" : "agentId",
1871
+ "required" : true,
1872
+ "schema" : {
1873
+ "format" : "uuid",
1874
+ "type" : "string"
1875
+ }
1876
+ } ],
1877
+ "requestBody" : {
1878
+ "content" : {
1879
+ "application/json" : {
1880
+ "schema" : {
1881
+ "$ref" : "#/components/schemas/ScheduledTaskCreate"
1882
+ }
1883
+ }
1884
+ },
1885
+ "required" : true
1886
+ },
1887
+ "responses" : {
1888
+ "201" : {
1889
+ "content" : {
1890
+ "application/json" : {
1891
+ "schema" : {
1892
+ "$ref" : "#/components/schemas/ScheduledTask"
1893
+ }
1894
+ }
1895
+ },
1896
+ "description" : "Task created"
1897
+ },
1898
+ "400" : {
1899
+ "description" : "Invalid request body"
1900
+ },
1901
+ "401" : {
1902
+ "description" : "Unauthorized"
1903
+ },
1904
+ "403" : {
1905
+ "description" : "Forbidden"
1906
+ },
1907
+ "422" : {
1908
+ "description" : "Invalid schedule configuration"
1909
+ }
1910
+ },
1911
+ "summary" : "Create a scheduled task for an agent",
1912
+ "tags" : [ "scheduledTasks" ]
1913
+ }
1914
+ },
1915
+ "/agents/{agentId}/scheduled-tasks/{taskId}" : {
1916
+ "delete" : {
1917
+ "operationId" : "deleteScheduledTask",
1918
+ "parameters" : [ {
1919
+ "description" : "ID of the agent",
1920
+ "in" : "path",
1921
+ "name" : "agentId",
1922
+ "required" : true,
1923
+ "schema" : {
1924
+ "format" : "uuid",
1925
+ "type" : "string"
1926
+ }
1927
+ }, {
1928
+ "description" : "ID of the scheduled task",
1929
+ "in" : "path",
1930
+ "name" : "taskId",
1931
+ "required" : true,
1932
+ "schema" : {
1933
+ "type" : "string"
1934
+ }
1935
+ } ],
1936
+ "responses" : {
1937
+ "204" : {
1938
+ "description" : "Task deleted"
1939
+ },
1940
+ "401" : {
1941
+ "description" : "Unauthorized"
1942
+ },
1943
+ "403" : {
1944
+ "description" : "Forbidden"
1945
+ },
1946
+ "404" : {
1947
+ "description" : "Task not found"
1948
+ }
1949
+ },
1950
+ "summary" : "Delete a scheduled task",
1951
+ "tags" : [ "scheduledTasks" ]
1952
+ },
1953
+ "get" : {
1954
+ "operationId" : "getScheduledTask",
1955
+ "parameters" : [ {
1956
+ "description" : "ID of the agent",
1957
+ "in" : "path",
1958
+ "name" : "agentId",
1959
+ "required" : true,
1960
+ "schema" : {
1961
+ "format" : "uuid",
1962
+ "type" : "string"
1963
+ }
1964
+ }, {
1965
+ "description" : "ID of the scheduled task",
1966
+ "in" : "path",
1967
+ "name" : "taskId",
1968
+ "required" : true,
1969
+ "schema" : {
1970
+ "type" : "string"
1971
+ }
1972
+ } ],
1973
+ "responses" : {
1974
+ "200" : {
1975
+ "content" : {
1976
+ "application/json" : {
1977
+ "schema" : {
1978
+ "$ref" : "#/components/schemas/ScheduledTask"
1979
+ }
1980
+ }
1981
+ },
1982
+ "description" : "The scheduled task"
1983
+ },
1984
+ "401" : {
1985
+ "description" : "Unauthorized"
1986
+ },
1987
+ "403" : {
1988
+ "description" : "Forbidden"
1989
+ },
1990
+ "404" : {
1991
+ "description" : "Task not found"
1992
+ }
1993
+ },
1994
+ "summary" : "Get a scheduled task by ID",
1995
+ "tags" : [ "scheduledTasks" ]
1996
+ },
1997
+ "put" : {
1998
+ "operationId" : "updateScheduledTask",
1999
+ "parameters" : [ {
2000
+ "description" : "ID of the agent",
2001
+ "in" : "path",
2002
+ "name" : "agentId",
2003
+ "required" : true,
2004
+ "schema" : {
2005
+ "format" : "uuid",
2006
+ "type" : "string"
2007
+ }
2008
+ }, {
2009
+ "description" : "ID of the scheduled task",
2010
+ "in" : "path",
2011
+ "name" : "taskId",
2012
+ "required" : true,
2013
+ "schema" : {
2014
+ "type" : "string"
2015
+ }
2016
+ } ],
2017
+ "requestBody" : {
2018
+ "content" : {
2019
+ "application/json" : {
2020
+ "schema" : {
2021
+ "$ref" : "#/components/schemas/ScheduledTaskCreate"
2022
+ }
2023
+ }
2024
+ },
2025
+ "required" : true
2026
+ },
2027
+ "responses" : {
2028
+ "200" : {
2029
+ "content" : {
2030
+ "application/json" : {
2031
+ "schema" : {
2032
+ "$ref" : "#/components/schemas/ScheduledTask"
2033
+ }
2034
+ }
2035
+ },
2036
+ "description" : "Task updated"
2037
+ },
2038
+ "400" : {
2039
+ "description" : "Invalid request body"
2040
+ },
2041
+ "401" : {
2042
+ "description" : "Unauthorized"
2043
+ },
2044
+ "403" : {
2045
+ "description" : "Forbidden"
2046
+ },
2047
+ "404" : {
2048
+ "description" : "Task not found"
2049
+ },
2050
+ "422" : {
2051
+ "description" : "Task completed or invalid schedule"
2052
+ }
2053
+ },
2054
+ "summary" : "Update a scheduled task",
2055
+ "tags" : [ "scheduledTasks" ]
2056
+ }
2057
+ },
2058
+ "/agents/{agentId}/scheduled-tasks/{taskId}/status" : {
2059
+ "patch" : {
2060
+ "operationId" : "toggleScheduledTaskStatus",
2061
+ "parameters" : [ {
2062
+ "description" : "ID of the agent",
2063
+ "in" : "path",
2064
+ "name" : "agentId",
2065
+ "required" : true,
2066
+ "schema" : {
2067
+ "format" : "uuid",
2068
+ "type" : "string"
2069
+ }
2070
+ }, {
2071
+ "description" : "ID of the scheduled task",
2072
+ "in" : "path",
2073
+ "name" : "taskId",
2074
+ "required" : true,
2075
+ "schema" : {
2076
+ "type" : "string"
2077
+ }
2078
+ } ],
2079
+ "requestBody" : {
2080
+ "content" : {
2081
+ "application/json" : {
2082
+ "schema" : {
2083
+ "$ref" : "#/components/schemas/ScheduledTaskStatusToggle"
2084
+ }
2085
+ }
2086
+ },
2087
+ "required" : true
2088
+ },
2089
+ "responses" : {
2090
+ "200" : {
2091
+ "content" : {
2092
+ "application/json" : {
2093
+ "schema" : {
2094
+ "$ref" : "#/components/schemas/ScheduledTaskStatusResponse"
2095
+ }
2096
+ }
2097
+ },
2098
+ "description" : "Status updated"
2099
+ },
2100
+ "400" : {
2101
+ "description" : "Invalid status value"
2102
+ },
2103
+ "401" : {
2104
+ "description" : "Unauthorized"
2105
+ },
2106
+ "403" : {
2107
+ "description" : "Forbidden"
2108
+ },
2109
+ "404" : {
2110
+ "description" : "Task not found"
2111
+ },
2112
+ "422" : {
2113
+ "description" : "Task already completed"
2114
+ }
2115
+ },
2116
+ "summary" : "Toggle scheduled task status (active/paused)",
2117
+ "tags" : [ "scheduledTasks" ]
2118
+ }
2119
+ },
2120
+ "/agents/{agentId}/scheduled-tasks/{taskId}/run" : {
2121
+ "post" : {
2122
+ "operationId" : "triggerScheduledTask",
2123
+ "parameters" : [ {
2124
+ "description" : "ID of the agent",
2125
+ "in" : "path",
2126
+ "name" : "agentId",
2127
+ "required" : true,
2128
+ "schema" : {
2129
+ "format" : "uuid",
2130
+ "type" : "string"
2131
+ }
2132
+ }, {
2133
+ "description" : "ID of the scheduled task",
2134
+ "in" : "path",
2135
+ "name" : "taskId",
2136
+ "required" : true,
2137
+ "schema" : {
2138
+ "type" : "string"
2139
+ }
2140
+ } ],
2141
+ "responses" : {
2142
+ "202" : {
2143
+ "content" : {
2144
+ "application/json" : {
2145
+ "schema" : {
2146
+ "$ref" : "#/components/schemas/ScheduledTaskManualRunResponse"
2147
+ }
2148
+ }
2149
+ },
2150
+ "description" : "Run queued"
2151
+ },
2152
+ "401" : {
2153
+ "description" : "Unauthorized"
2154
+ },
2155
+ "403" : {
2156
+ "description" : "Forbidden"
2157
+ },
2158
+ "404" : {
2159
+ "description" : "Task not found"
2160
+ }
2161
+ },
2162
+ "summary" : "Manually trigger a scheduled task run",
2163
+ "tags" : [ "scheduledTasks" ]
2164
+ }
2165
+ },
2166
+ "/agents/{agentId}/scheduled-tasks/{taskId}/runs" : {
2167
+ "get" : {
2168
+ "operationId" : "listScheduledTaskRuns",
2169
+ "parameters" : [ {
2170
+ "description" : "ID of the agent",
2171
+ "in" : "path",
2172
+ "name" : "agentId",
2173
+ "required" : true,
2174
+ "schema" : {
2175
+ "format" : "uuid",
2176
+ "type" : "string"
2177
+ }
2178
+ }, {
2179
+ "description" : "ID of the scheduled task",
2180
+ "in" : "path",
2181
+ "name" : "taskId",
2182
+ "required" : true,
2183
+ "schema" : {
2184
+ "type" : "string"
2185
+ }
2186
+ }, {
2187
+ "in" : "query",
2188
+ "name" : "limit",
2189
+ "schema" : {
2190
+ "default" : 20,
2191
+ "type" : "integer"
2192
+ }
2193
+ }, {
2194
+ "description" : "Cursor for pagination (createdAt before this date)",
2195
+ "in" : "query",
2196
+ "name" : "before",
2197
+ "schema" : {
2198
+ "format" : "date-time",
2199
+ "type" : "string"
2200
+ }
2201
+ } ],
2202
+ "responses" : {
2203
+ "200" : {
2204
+ "content" : {
2205
+ "application/json" : {
2206
+ "schema" : {
2207
+ "$ref" : "#/components/schemas/ScheduledTaskRunList"
2208
+ }
2209
+ }
2210
+ },
2211
+ "description" : "List of task runs with next scheduled run time"
2212
+ },
2213
+ "401" : {
2214
+ "description" : "Unauthorized"
2215
+ },
2216
+ "403" : {
2217
+ "description" : "Forbidden"
2218
+ },
2219
+ "404" : {
2220
+ "description" : "Task not found"
2221
+ }
2222
+ },
2223
+ "summary" : "List runs for a scheduled task",
2224
+ "tags" : [ "scheduledTasks" ]
2225
+ }
2226
+ },
2227
+ "/agents/{agentId}/scheduled-tasks/{taskId}/runs/{runId}" : {
2228
+ "get" : {
2229
+ "operationId" : "getScheduledTaskRun",
2230
+ "parameters" : [ {
2231
+ "description" : "ID of the agent",
2232
+ "in" : "path",
2233
+ "name" : "agentId",
2234
+ "required" : true,
2235
+ "schema" : {
2236
+ "format" : "uuid",
2237
+ "type" : "string"
2238
+ }
2239
+ }, {
2240
+ "description" : "ID of the scheduled task",
2241
+ "in" : "path",
2242
+ "name" : "taskId",
2243
+ "required" : true,
2244
+ "schema" : {
2245
+ "type" : "string"
2246
+ }
2247
+ }, {
2248
+ "description" : "ID of the scheduled task run",
2249
+ "in" : "path",
2250
+ "name" : "runId",
2251
+ "required" : true,
2252
+ "schema" : {
2253
+ "type" : "string"
2254
+ }
2255
+ } ],
2256
+ "responses" : {
2257
+ "200" : {
2258
+ "content" : {
2259
+ "application/json" : {
2260
+ "schema" : {
2261
+ "$ref" : "#/components/schemas/ScheduledTaskRun"
2262
+ }
2263
+ }
2264
+ },
2265
+ "description" : "The task run"
2266
+ },
2267
+ "401" : {
2268
+ "description" : "Unauthorized"
2269
+ },
2270
+ "403" : {
2271
+ "description" : "Forbidden"
2272
+ },
2273
+ "404" : {
2274
+ "description" : "Run not found"
2275
+ }
2276
+ },
2277
+ "summary" : "Get a specific scheduled task run by ID",
2278
+ "tags" : [ "scheduledTasks" ]
2279
+ }
2280
+ },
1750
2281
  "/agents/{agentId}/apps" : {
1751
2282
  "get" : {
1752
2283
  "description" : "Get apps for agent id",
@@ -3411,6 +3942,29 @@
3411
3942
  "tags" : [ "configuration" ]
3412
3943
  }
3413
3944
  },
3945
+ "/configuration/upload-limits" : {
3946
+ "get" : {
3947
+ "description" : "Retrieves file upload size limits for the application",
3948
+ "operationId" : "getUploadLimits",
3949
+ "responses" : {
3950
+ "200" : {
3951
+ "content" : {
3952
+ "application/json" : {
3953
+ "schema" : {
3954
+ "$ref" : "#/components/schemas/getUploadLimits_200_response"
3955
+ }
3956
+ }
3957
+ },
3958
+ "description" : "Upload limits"
3959
+ },
3960
+ "401" : {
3961
+ "description" : "Unauthorized"
3962
+ }
3963
+ },
3964
+ "summary" : "Get upload limits",
3965
+ "tags" : [ "configuration" ]
3966
+ }
3967
+ },
3414
3968
  "/contents/permanents/{contentId}" : {
3415
3969
  "get" : {
3416
3970
  "description" : "Retrieves a permanent audio file by its ID",
@@ -8546,11 +9100,10 @@
8546
9100
  }
8547
9101
  },
8548
9102
  "sortOrder" : {
8549
- "description" : "Sort conversations by last activity (asc = oldest first, desc = most recent first)",
9103
+ "description" : "Sort order for results",
8550
9104
  "in" : "query",
8551
9105
  "name" : "sortOrder",
8552
9106
  "schema" : {
8553
- "default" : "desc",
8554
9107
  "enum" : [ "asc", "desc" ],
8555
9108
  "type" : "string"
8556
9109
  }
@@ -8591,6 +9144,24 @@
8591
9144
  "type" : "string"
8592
9145
  }
8593
9146
  },
9147
+ "taskIdPath" : {
9148
+ "description" : "ID of the scheduled task",
9149
+ "in" : "path",
9150
+ "name" : "taskId",
9151
+ "required" : true,
9152
+ "schema" : {
9153
+ "type" : "string"
9154
+ }
9155
+ },
9156
+ "runIdPath" : {
9157
+ "description" : "ID of the scheduled task run",
9158
+ "in" : "path",
9159
+ "name" : "runId",
9160
+ "required" : true,
9161
+ "schema" : {
9162
+ "type" : "string"
9163
+ }
9164
+ },
8594
9165
  "appIdPath" : {
8595
9166
  "description" : "ID of the app",
8596
9167
  "in" : "path",
@@ -10067,6 +10638,11 @@
10067
10638
  "id" : {
10068
10639
  "type" : "string"
10069
10640
  },
10641
+ "type" : {
10642
+ "enum" : [ "chat", "task" ],
10643
+ "nullable" : true,
10644
+ "type" : "string"
10645
+ },
10070
10646
  "title" : {
10071
10647
  "nullable" : true,
10072
10648
  "type" : "string"
@@ -10344,6 +10920,11 @@
10344
10920
  "customUserId" : {
10345
10921
  "description" : "Optional custom user identifier",
10346
10922
  "type" : "string"
10923
+ },
10924
+ "type" : {
10925
+ "description" : "Type of conversation (defaults to 'chat')",
10926
+ "enum" : [ "chat", "task" ],
10927
+ "type" : "string"
10347
10928
  }
10348
10929
  },
10349
10930
  "required" : [ "lang" ],
@@ -10369,6 +10950,307 @@
10369
10950
  "required" : [ "url" ],
10370
10951
  "type" : "object"
10371
10952
  },
10953
+ "ScheduledTaskList" : {
10954
+ "properties" : {
10955
+ "tasks" : {
10956
+ "items" : {
10957
+ "$ref" : "#/components/schemas/ScheduledTask"
10958
+ },
10959
+ "type" : "array"
10960
+ },
10961
+ "total" : {
10962
+ "type" : "integer"
10963
+ }
10964
+ },
10965
+ "required" : [ "tasks", "total" ],
10966
+ "type" : "object"
10967
+ },
10968
+ "ScheduledTask" : {
10969
+ "properties" : {
10970
+ "id" : {
10971
+ "type" : "string"
10972
+ },
10973
+ "agentId" : {
10974
+ "type" : "string"
10975
+ },
10976
+ "organizationId" : {
10977
+ "type" : "string"
10978
+ },
10979
+ "name" : {
10980
+ "type" : "string"
10981
+ },
10982
+ "message" : {
10983
+ "type" : "string"
10984
+ },
10985
+ "mode" : {
10986
+ "enum" : [ "once", "recurring" ],
10987
+ "type" : "string"
10988
+ },
10989
+ "status" : {
10990
+ "enum" : [ "active", "paused", "done" ],
10991
+ "type" : "string"
10992
+ },
10993
+ "schedule" : {
10994
+ "$ref" : "#/components/schemas/TaskSchedule"
10995
+ },
10996
+ "cronExpression" : {
10997
+ "type" : "string"
10998
+ },
10999
+ "timezone" : {
11000
+ "type" : "string"
11001
+ },
11002
+ "lang" : {
11003
+ "type" : "string"
11004
+ },
11005
+ "callbackUrl" : {
11006
+ "type" : "string"
11007
+ },
11008
+ "runCount" : {
11009
+ "type" : "integer"
11010
+ },
11011
+ "nextRunAt" : {
11012
+ "format" : "date-time",
11013
+ "type" : "string"
11014
+ },
11015
+ "endedAt" : {
11016
+ "format" : "date-time",
11017
+ "type" : "string"
11018
+ },
11019
+ "createdAt" : {
11020
+ "format" : "date-time",
11021
+ "type" : "string"
11022
+ },
11023
+ "updatedAt" : {
11024
+ "format" : "date-time",
11025
+ "type" : "string"
11026
+ }
11027
+ },
11028
+ "required" : [ "agentId", "createdAt", "cronExpression", "id", "lang", "message", "mode", "organizationId", "runCount", "schedule", "status", "timezone", "updatedAt" ],
11029
+ "type" : "object"
11030
+ },
11031
+ "TaskSchedule" : {
11032
+ "properties" : {
11033
+ "at" : {
11034
+ "type" : "string"
11035
+ },
11036
+ "freq" : {
11037
+ "enum" : [ "minute", "interval", "daily", "weekly", "monthly", "cron" ],
11038
+ "type" : "string"
11039
+ },
11040
+ "time" : {
11041
+ "pattern" : "^([01]\\d|2[0-3]):[0-5]\\d$",
11042
+ "type" : "string"
11043
+ },
11044
+ "days" : {
11045
+ "items" : {
11046
+ "maximum" : 6,
11047
+ "minimum" : 0,
11048
+ "type" : "integer"
11049
+ },
11050
+ "type" : "array"
11051
+ },
11052
+ "dom" : {
11053
+ "maximum" : 31,
11054
+ "minimum" : 1,
11055
+ "type" : "integer"
11056
+ },
11057
+ "interval" : {
11058
+ "$ref" : "#/components/schemas/TaskScheduleInterval"
11059
+ },
11060
+ "cron" : {
11061
+ "type" : "string"
11062
+ },
11063
+ "start" : {
11064
+ "type" : "string"
11065
+ },
11066
+ "end" : {
11067
+ "$ref" : "#/components/schemas/TaskScheduleEnd"
11068
+ }
11069
+ },
11070
+ "type" : "object"
11071
+ },
11072
+ "TaskScheduleInterval" : {
11073
+ "properties" : {
11074
+ "n" : {
11075
+ "minimum" : 1,
11076
+ "type" : "integer"
11077
+ },
11078
+ "unit" : {
11079
+ "enum" : [ "minutes", "hours", "days" ],
11080
+ "type" : "string"
11081
+ }
11082
+ },
11083
+ "required" : [ "n", "unit" ],
11084
+ "type" : "object"
11085
+ },
11086
+ "TaskScheduleEnd" : {
11087
+ "oneOf" : [ {
11088
+ "$ref" : "#/components/schemas/TaskScheduleEnd_oneOf"
11089
+ }, {
11090
+ "$ref" : "#/components/schemas/TaskScheduleEnd_oneOf_1"
11091
+ }, {
11092
+ "$ref" : "#/components/schemas/TaskScheduleEnd_oneOf_2"
11093
+ } ],
11094
+ "type" : "object"
11095
+ },
11096
+ "ScheduledTaskCreate" : {
11097
+ "properties" : {
11098
+ "message" : {
11099
+ "minLength" : 1,
11100
+ "type" : "string"
11101
+ },
11102
+ "mode" : {
11103
+ "enum" : [ "once", "recurring" ],
11104
+ "type" : "string"
11105
+ },
11106
+ "schedule" : {
11107
+ "$ref" : "#/components/schemas/TaskSchedule"
11108
+ },
11109
+ "name" : {
11110
+ "type" : "string"
11111
+ },
11112
+ "timezone" : {
11113
+ "type" : "string"
11114
+ },
11115
+ "callbackUrl" : {
11116
+ "format" : "uri",
11117
+ "type" : "string"
11118
+ },
11119
+ "lang" : {
11120
+ "minLength" : 2,
11121
+ "type" : "string"
11122
+ }
11123
+ },
11124
+ "required" : [ "message", "mode", "schedule" ],
11125
+ "type" : "object"
11126
+ },
11127
+ "ScheduledTaskStatusToggle" : {
11128
+ "properties" : {
11129
+ "status" : {
11130
+ "enum" : [ "active", "paused" ],
11131
+ "type" : "string"
11132
+ }
11133
+ },
11134
+ "required" : [ "status" ],
11135
+ "type" : "object"
11136
+ },
11137
+ "ScheduledTaskStatusResponse" : {
11138
+ "properties" : {
11139
+ "status" : {
11140
+ "enum" : [ "active", "paused" ],
11141
+ "type" : "string"
11142
+ },
11143
+ "nextRunAt" : {
11144
+ "format" : "date-time",
11145
+ "nullable" : true,
11146
+ "type" : "string"
11147
+ }
11148
+ },
11149
+ "required" : [ "status" ],
11150
+ "type" : "object"
11151
+ },
11152
+ "ScheduledTaskManualRunResponse" : {
11153
+ "properties" : {
11154
+ "runId" : {
11155
+ "type" : "string"
11156
+ }
11157
+ },
11158
+ "required" : [ "runId" ],
11159
+ "type" : "object"
11160
+ },
11161
+ "ScheduledTaskRunList" : {
11162
+ "properties" : {
11163
+ "runs" : {
11164
+ "items" : {
11165
+ "$ref" : "#/components/schemas/ScheduledTaskRun"
11166
+ },
11167
+ "type" : "array"
11168
+ },
11169
+ "nextRun" : {
11170
+ "format" : "date-time",
11171
+ "nullable" : true,
11172
+ "type" : "string"
11173
+ }
11174
+ },
11175
+ "required" : [ "nextRun", "runs" ],
11176
+ "type" : "object"
11177
+ },
11178
+ "ScheduledTaskRun" : {
11179
+ "properties" : {
11180
+ "id" : {
11181
+ "type" : "string"
11182
+ },
11183
+ "taskId" : {
11184
+ "type" : "string"
11185
+ },
11186
+ "status" : {
11187
+ "enum" : [ "pending", "running", "success", "error", "failed_permanently" ],
11188
+ "type" : "string"
11189
+ },
11190
+ "prompt" : {
11191
+ "type" : "string"
11192
+ },
11193
+ "conversationId" : {
11194
+ "type" : "string"
11195
+ },
11196
+ "triggeredAt" : {
11197
+ "format" : "date-time",
11198
+ "type" : "string"
11199
+ },
11200
+ "startedAt" : {
11201
+ "format" : "date-time",
11202
+ "type" : "string"
11203
+ },
11204
+ "finishedAt" : {
11205
+ "format" : "date-time",
11206
+ "type" : "string"
11207
+ },
11208
+ "claimedAt" : {
11209
+ "format" : "date-time",
11210
+ "type" : "string"
11211
+ },
11212
+ "retryCount" : {
11213
+ "type" : "integer"
11214
+ },
11215
+ "steps" : {
11216
+ "items" : {
11217
+ "$ref" : "#/components/schemas/RunStep"
11218
+ },
11219
+ "type" : "array"
11220
+ },
11221
+ "createdAt" : {
11222
+ "format" : "date-time",
11223
+ "type" : "string"
11224
+ }
11225
+ },
11226
+ "required" : [ "createdAt", "id", "prompt", "retryCount", "status", "steps", "taskId", "triggeredAt" ],
11227
+ "type" : "object"
11228
+ },
11229
+ "RunStep" : {
11230
+ "properties" : {
11231
+ "type" : {
11232
+ "enum" : [ "llm_call", "tool_call", "tool_result", "llm_response" ],
11233
+ "type" : "string"
11234
+ },
11235
+ "at" : {
11236
+ "format" : "date-time",
11237
+ "type" : "string"
11238
+ },
11239
+ "tool" : {
11240
+ "type" : "string"
11241
+ },
11242
+ "input" : { },
11243
+ "output" : { },
11244
+ "tokens" : {
11245
+ "type" : "integer"
11246
+ },
11247
+ "error" : {
11248
+ "type" : "string"
11249
+ }
11250
+ },
11251
+ "required" : [ "at", "type" ],
11252
+ "type" : "object"
11253
+ },
10372
11254
  "AppLight" : {
10373
11255
  "properties" : {
10374
11256
  "id" : {
@@ -13057,6 +13939,16 @@
13057
13939
  "required" : [ "message" ],
13058
13940
  "type" : "object"
13059
13941
  },
13942
+ "getUploadLimits_200_response" : {
13943
+ "properties" : {
13944
+ "conversationAttachmentMaxBytes" : {
13945
+ "description" : "Maximum size in bytes for conversation attachments",
13946
+ "type" : "number"
13947
+ }
13948
+ },
13949
+ "required" : [ "conversationAttachmentMaxBytes" ],
13950
+ "type" : "object"
13951
+ },
13060
13952
  "updateConversationTitle_request" : {
13061
13953
  "properties" : {
13062
13954
  "title" : {
@@ -13471,6 +14363,43 @@
13471
14363
  "required" : [ "latitude", "longitude" ],
13472
14364
  "type" : "object"
13473
14365
  },
14366
+ "TaskScheduleEnd_oneOf" : {
14367
+ "properties" : {
14368
+ "type" : {
14369
+ "enum" : [ "never" ],
14370
+ "type" : "string"
14371
+ }
14372
+ },
14373
+ "required" : [ "type" ],
14374
+ "type" : "object"
14375
+ },
14376
+ "TaskScheduleEnd_oneOf_1" : {
14377
+ "properties" : {
14378
+ "type" : {
14379
+ "enum" : [ "count" ],
14380
+ "type" : "string"
14381
+ },
14382
+ "count" : {
14383
+ "minimum" : 1,
14384
+ "type" : "integer"
14385
+ }
14386
+ },
14387
+ "required" : [ "count", "type" ],
14388
+ "type" : "object"
14389
+ },
14390
+ "TaskScheduleEnd_oneOf_2" : {
14391
+ "properties" : {
14392
+ "type" : {
14393
+ "enum" : [ "date" ],
14394
+ "type" : "string"
14395
+ },
14396
+ "date" : {
14397
+ "type" : "string"
14398
+ }
14399
+ },
14400
+ "required" : [ "date", "type" ],
14401
+ "type" : "object"
14402
+ },
13474
14403
  "App_commands_inner" : {
13475
14404
  "properties" : {
13476
14405
  "name" : {