@cadenya/cadenya 0.66.0 → 0.67.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.
Files changed (247) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +18 -18
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +18 -18
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/agents/agents.d.mts +28 -11
  11. package/resources/agents/agents.d.mts.map +1 -1
  12. package/resources/agents/agents.d.ts +28 -11
  13. package/resources/agents/agents.d.ts.map +1 -1
  14. package/resources/agents/agents.js +16 -10
  15. package/resources/agents/agents.js.map +1 -1
  16. package/resources/agents/agents.mjs +16 -10
  17. package/resources/agents/agents.mjs.map +1 -1
  18. package/resources/agents/feedback.d.mts +14 -9
  19. package/resources/agents/feedback.d.mts.map +1 -1
  20. package/resources/agents/feedback.d.ts +14 -9
  21. package/resources/agents/feedback.d.ts.map +1 -1
  22. package/resources/agents/feedback.js +3 -2
  23. package/resources/agents/feedback.js.map +1 -1
  24. package/resources/agents/feedback.mjs +3 -2
  25. package/resources/agents/feedback.mjs.map +1 -1
  26. package/resources/agents/index.d.mts +1 -1
  27. package/resources/agents/index.d.mts.map +1 -1
  28. package/resources/agents/index.d.ts +1 -1
  29. package/resources/agents/index.d.ts.map +1 -1
  30. package/resources/agents/index.js.map +1 -1
  31. package/resources/agents/index.mjs.map +1 -1
  32. package/resources/agents/schedules.d.mts +32 -11
  33. package/resources/agents/schedules.d.mts.map +1 -1
  34. package/resources/agents/schedules.d.ts +32 -11
  35. package/resources/agents/schedules.d.ts.map +1 -1
  36. package/resources/agents/schedules.js +18 -13
  37. package/resources/agents/schedules.js.map +1 -1
  38. package/resources/agents/schedules.mjs +18 -13
  39. package/resources/agents/schedules.mjs.map +1 -1
  40. package/resources/agents/variations.d.mts +51 -9
  41. package/resources/agents/variations.d.mts.map +1 -1
  42. package/resources/agents/variations.d.ts +51 -9
  43. package/resources/agents/variations.d.ts.map +1 -1
  44. package/resources/agents/variations.js +28 -32
  45. package/resources/agents/variations.js.map +1 -1
  46. package/resources/agents/variations.mjs +28 -32
  47. package/resources/agents/variations.mjs.map +1 -1
  48. package/resources/agents/webhook-deliveries.d.mts +7 -3
  49. package/resources/agents/webhook-deliveries.d.mts.map +1 -1
  50. package/resources/agents/webhook-deliveries.d.ts +7 -3
  51. package/resources/agents/webhook-deliveries.d.ts.map +1 -1
  52. package/resources/agents/webhook-deliveries.js +3 -2
  53. package/resources/agents/webhook-deliveries.js.map +1 -1
  54. package/resources/agents/webhook-deliveries.mjs +3 -2
  55. package/resources/agents/webhook-deliveries.mjs.map +1 -1
  56. package/resources/api-keys.d.mts +35 -12
  57. package/resources/api-keys.d.mts.map +1 -1
  58. package/resources/api-keys.d.ts +35 -12
  59. package/resources/api-keys.d.ts.map +1 -1
  60. package/resources/api-keys.js +19 -12
  61. package/resources/api-keys.js.map +1 -1
  62. package/resources/api-keys.mjs +19 -12
  63. package/resources/api-keys.mjs.map +1 -1
  64. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +10 -4
  65. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
  66. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +10 -4
  67. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
  68. package/resources/bulk-workspace-resources/bulk-workspace-resources.js +10 -9
  69. package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
  70. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +10 -9
  71. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
  72. package/resources/bulk-workspace-resources/index.d.mts +1 -1
  73. package/resources/bulk-workspace-resources/index.d.mts.map +1 -1
  74. package/resources/bulk-workspace-resources/index.d.ts +1 -1
  75. package/resources/bulk-workspace-resources/index.d.ts.map +1 -1
  76. package/resources/bulk-workspace-resources/index.js.map +1 -1
  77. package/resources/bulk-workspace-resources/index.mjs.map +1 -1
  78. package/resources/bulk-workspace-resources/results.d.mts +8 -4
  79. package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
  80. package/resources/bulk-workspace-resources/results.d.ts +8 -4
  81. package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
  82. package/resources/bulk-workspace-resources/results.js +3 -2
  83. package/resources/bulk-workspace-resources/results.js.map +1 -1
  84. package/resources/bulk-workspace-resources/results.mjs +3 -2
  85. package/resources/bulk-workspace-resources/results.mjs.map +1 -1
  86. package/resources/index.d.mts +9 -9
  87. package/resources/index.d.mts.map +1 -1
  88. package/resources/index.d.ts +9 -9
  89. package/resources/index.d.ts.map +1 -1
  90. package/resources/index.js.map +1 -1
  91. package/resources/index.mjs +1 -1
  92. package/resources/index.mjs.map +1 -1
  93. package/resources/memory-layers/entries.d.mts +35 -14
  94. package/resources/memory-layers/entries.d.mts.map +1 -1
  95. package/resources/memory-layers/entries.d.ts +35 -14
  96. package/resources/memory-layers/entries.d.ts.map +1 -1
  97. package/resources/memory-layers/entries.js +15 -13
  98. package/resources/memory-layers/entries.js.map +1 -1
  99. package/resources/memory-layers/entries.mjs +15 -13
  100. package/resources/memory-layers/entries.mjs.map +1 -1
  101. package/resources/memory-layers/index.d.mts +1 -1
  102. package/resources/memory-layers/index.d.mts.map +1 -1
  103. package/resources/memory-layers/index.d.ts +1 -1
  104. package/resources/memory-layers/index.d.ts.map +1 -1
  105. package/resources/memory-layers/index.js.map +1 -1
  106. package/resources/memory-layers/index.mjs.map +1 -1
  107. package/resources/memory-layers/memory-layers.d.mts +32 -9
  108. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  109. package/resources/memory-layers/memory-layers.d.ts +32 -9
  110. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  111. package/resources/memory-layers/memory-layers.js +13 -10
  112. package/resources/memory-layers/memory-layers.js.map +1 -1
  113. package/resources/memory-layers/memory-layers.mjs +13 -10
  114. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  115. package/resources/models.d.mts +15 -5
  116. package/resources/models.d.mts.map +1 -1
  117. package/resources/models.d.ts +15 -5
  118. package/resources/models.d.ts.map +1 -1
  119. package/resources/models.js +11 -6
  120. package/resources/models.js.map +1 -1
  121. package/resources/models.mjs +11 -6
  122. package/resources/models.mjs.map +1 -1
  123. package/resources/objectives/feedback.d.mts +16 -5
  124. package/resources/objectives/feedback.d.mts.map +1 -1
  125. package/resources/objectives/feedback.d.ts +16 -5
  126. package/resources/objectives/feedback.d.ts.map +1 -1
  127. package/resources/objectives/feedback.js +9 -4
  128. package/resources/objectives/feedback.js.map +1 -1
  129. package/resources/objectives/feedback.mjs +9 -4
  130. package/resources/objectives/feedback.mjs.map +1 -1
  131. package/resources/objectives/index.d.mts +1 -1
  132. package/resources/objectives/index.d.mts.map +1 -1
  133. package/resources/objectives/index.d.ts +1 -1
  134. package/resources/objectives/index.d.ts.map +1 -1
  135. package/resources/objectives/index.js.map +1 -1
  136. package/resources/objectives/index.mjs.map +1 -1
  137. package/resources/objectives/objectives.d.mts +49 -21
  138. package/resources/objectives/objectives.d.mts.map +1 -1
  139. package/resources/objectives/objectives.d.ts +49 -21
  140. package/resources/objectives/objectives.d.ts.map +1 -1
  141. package/resources/objectives/objectives.js +31 -16
  142. package/resources/objectives/objectives.js.map +1 -1
  143. package/resources/objectives/objectives.mjs +31 -16
  144. package/resources/objectives/objectives.mjs.map +1 -1
  145. package/resources/objectives/tasks.d.mts +10 -2
  146. package/resources/objectives/tasks.d.mts.map +1 -1
  147. package/resources/objectives/tasks.d.ts +10 -2
  148. package/resources/objectives/tasks.d.ts.map +1 -1
  149. package/resources/objectives/tasks.js +5 -4
  150. package/resources/objectives/tasks.js.map +1 -1
  151. package/resources/objectives/tasks.mjs +5 -4
  152. package/resources/objectives/tasks.mjs.map +1 -1
  153. package/resources/objectives/tool-calls.d.mts +15 -3
  154. package/resources/objectives/tool-calls.d.mts.map +1 -1
  155. package/resources/objectives/tool-calls.d.ts +15 -3
  156. package/resources/objectives/tool-calls.d.ts.map +1 -1
  157. package/resources/objectives/tool-calls.js +7 -12
  158. package/resources/objectives/tool-calls.js.map +1 -1
  159. package/resources/objectives/tool-calls.mjs +7 -12
  160. package/resources/objectives/tool-calls.mjs.map +1 -1
  161. package/resources/objectives/tools.d.mts +5 -1
  162. package/resources/objectives/tools.d.mts.map +1 -1
  163. package/resources/objectives/tools.d.ts +5 -1
  164. package/resources/objectives/tools.d.ts.map +1 -1
  165. package/resources/objectives/tools.js +3 -2
  166. package/resources/objectives/tools.js.map +1 -1
  167. package/resources/objectives/tools.mjs +3 -2
  168. package/resources/objectives/tools.mjs.map +1 -1
  169. package/resources/search.d.mts +1 -1
  170. package/resources/search.d.mts.map +1 -1
  171. package/resources/search.d.ts +1 -1
  172. package/resources/search.d.ts.map +1 -1
  173. package/resources/search.js +6 -2
  174. package/resources/search.js.map +1 -1
  175. package/resources/search.mjs +6 -2
  176. package/resources/search.mjs.map +1 -1
  177. package/resources/tool-sets/index.d.mts +1 -1
  178. package/resources/tool-sets/index.d.mts.map +1 -1
  179. package/resources/tool-sets/index.d.ts +1 -1
  180. package/resources/tool-sets/index.d.ts.map +1 -1
  181. package/resources/tool-sets/index.js.map +1 -1
  182. package/resources/tool-sets/index.mjs.map +1 -1
  183. package/resources/tool-sets/tool-sets.d.mts +39 -12
  184. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  185. package/resources/tool-sets/tool-sets.d.ts +39 -12
  186. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  187. package/resources/tool-sets/tool-sets.js +19 -15
  188. package/resources/tool-sets/tool-sets.js.map +1 -1
  189. package/resources/tool-sets/tool-sets.mjs +19 -15
  190. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  191. package/resources/tool-sets/tools.d.mts +39 -14
  192. package/resources/tool-sets/tools.d.mts.map +1 -1
  193. package/resources/tool-sets/tools.d.ts +39 -14
  194. package/resources/tool-sets/tools.d.ts.map +1 -1
  195. package/resources/tool-sets/tools.js +18 -13
  196. package/resources/tool-sets/tools.js.map +1 -1
  197. package/resources/tool-sets/tools.mjs +18 -13
  198. package/resources/tool-sets/tools.mjs.map +1 -1
  199. package/resources/uploads.d.mts +9 -3
  200. package/resources/uploads.d.mts.map +1 -1
  201. package/resources/uploads.d.ts +9 -3
  202. package/resources/uploads.d.ts.map +1 -1
  203. package/resources/uploads.js +5 -4
  204. package/resources/uploads.js.map +1 -1
  205. package/resources/uploads.mjs +5 -4
  206. package/resources/uploads.mjs.map +1 -1
  207. package/resources/workspace-secrets.d.mts +30 -10
  208. package/resources/workspace-secrets.d.mts.map +1 -1
  209. package/resources/workspace-secrets.d.ts +30 -10
  210. package/resources/workspace-secrets.d.ts.map +1 -1
  211. package/resources/workspace-secrets.js +16 -13
  212. package/resources/workspace-secrets.js.map +1 -1
  213. package/resources/workspace-secrets.mjs +16 -13
  214. package/resources/workspace-secrets.mjs.map +1 -1
  215. package/src/client.ts +30 -0
  216. package/src/resources/agents/agents.ts +43 -14
  217. package/src/resources/agents/feedback.ts +17 -10
  218. package/src/resources/agents/index.ts +2 -0
  219. package/src/resources/agents/schedules.ts +57 -22
  220. package/src/resources/agents/variations.ts +104 -39
  221. package/src/resources/agents/webhook-deliveries.ts +10 -4
  222. package/src/resources/api-keys.ts +54 -16
  223. package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +30 -8
  224. package/src/resources/bulk-workspace-resources/index.ts +1 -0
  225. package/src/resources/bulk-workspace-resources/results.ts +11 -5
  226. package/src/resources/index.ts +22 -1
  227. package/src/resources/memory-layers/entries.ts +62 -25
  228. package/src/resources/memory-layers/index.ts +2 -0
  229. package/src/resources/memory-layers/memory-layers.ts +52 -12
  230. package/src/resources/models.ts +25 -6
  231. package/src/resources/objectives/feedback.ts +26 -8
  232. package/src/resources/objectives/index.ts +1 -0
  233. package/src/resources/objectives/objectives.ts +86 -27
  234. package/src/resources/objectives/tasks.ts +19 -5
  235. package/src/resources/objectives/tool-calls.ts +30 -14
  236. package/src/resources/objectives/tools.ts +9 -3
  237. package/src/resources/search.ts +6 -1
  238. package/src/resources/tool-sets/index.ts +2 -0
  239. package/src/resources/tool-sets/tool-sets.ts +61 -19
  240. package/src/resources/tool-sets/tools.ts +64 -25
  241. package/src/resources/uploads.ts +13 -4
  242. package/src/resources/workspace-secrets.ts +57 -16
  243. package/src/version.ts +1 -1
  244. package/version.d.mts +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -30,8 +30,11 @@ import {
30
30
  import {
31
31
  APIKey,
32
32
  APIKeyCreateParams,
33
+ APIKeyDeleteParams,
33
34
  APIKeyInfo,
34
35
  APIKeyListParams,
36
+ APIKeyRetrieveParams,
37
+ APIKeyRotateParams,
35
38
  APIKeySpec,
36
39
  APIKeyUpdateParams,
37
40
  APIKeys,
@@ -40,6 +43,7 @@ import {
40
43
  import {
41
44
  Model,
42
45
  ModelListParams,
46
+ ModelRetrieveParams,
43
47
  ModelSetStatusParams,
44
48
  ModelSpec,
45
49
  Models,
@@ -54,6 +58,7 @@ import {
54
58
  Upload,
55
59
  UploadCreateParams,
56
60
  UploadInfo,
61
+ UploadRetrieveParams,
57
62
  UploadSpec,
58
63
  Uploads as UploadsAPIUploads,
59
64
  } from './resources/uploads';
@@ -61,8 +66,10 @@ import { UnsafeUnwrapWebhookEvent, UnwrapWebhookEvent, Webhooks } from './resour
61
66
  import {
62
67
  WorkspaceSecret,
63
68
  WorkspaceSecretCreateParams,
69
+ WorkspaceSecretDeleteParams,
64
70
  WorkspaceSecretInfo,
65
71
  WorkspaceSecretListParams,
72
+ WorkspaceSecretRetrieveParams,
66
73
  WorkspaceSecretSpec,
67
74
  WorkspaceSecretUpdateParams,
68
75
  WorkspaceSecrets,
@@ -78,8 +85,10 @@ import {
78
85
  import {
79
86
  Agent,
80
87
  AgentCreateParams,
88
+ AgentDeleteParams,
81
89
  AgentInfo,
82
90
  AgentListParams,
91
+ AgentRetrieveParams,
83
92
  AgentSpec,
84
93
  AgentUpdateParams,
85
94
  Agents,
@@ -97,6 +106,7 @@ import {
97
106
  BulkWorkspaceApplyStatus,
98
107
  BulkWorkspaceResourceApplyParams,
99
108
  BulkWorkspaceResourceListParams,
109
+ BulkWorkspaceResourceRetrieveParams,
100
110
  BulkWorkspaceResources,
101
111
  MemoryEntryItem,
102
112
  MemoryLayerEntry,
@@ -108,8 +118,10 @@ import {
108
118
  import {
109
119
  MemoryLayer,
110
120
  MemoryLayerCreateParams,
121
+ MemoryLayerDeleteParams,
111
122
  MemoryLayerInfo,
112
123
  MemoryLayerListParams,
124
+ MemoryLayerRetrieveParams,
113
125
  MemoryLayerSpec,
114
126
  MemoryLayerUpdateParams,
115
127
  MemoryLayers,
@@ -144,6 +156,7 @@ import {
144
156
  ObjectiveListEventsResponse,
145
157
  ObjectiveListEventsResponsesCursorPagination,
146
158
  ObjectiveListParams,
159
+ ObjectiveRetrieveParams,
147
160
  ObjectiveStatus,
148
161
  Objectives,
149
162
  ObjectivesCursorPagination,
@@ -166,12 +179,14 @@ import {
166
179
  ToolSetAdapterHTTP,
167
180
  ToolSetAdapterMcp,
168
181
  ToolSetCreateParams,
182
+ ToolSetDeleteParams,
169
183
  ToolSetEvent,
170
184
  ToolSetEventData,
171
185
  ToolSetEventsCursorPagination,
172
186
  ToolSetInfo,
173
187
  ToolSetListEventsParams,
174
188
  ToolSetListParams,
189
+ ToolSetRetrieveParams,
175
190
  ToolSetSpec,
176
191
  ToolSetUpdateParams,
177
192
  ToolSets,
@@ -1058,8 +1073,10 @@ export declare namespace Cadenya {
1058
1073
  type Page as Page,
1059
1074
  type AgentsCursorPagination as AgentsCursorPagination,
1060
1075
  type AgentCreateParams as AgentCreateParams,
1076
+ type AgentRetrieveParams as AgentRetrieveParams,
1061
1077
  type AgentUpdateParams as AgentUpdateParams,
1062
1078
  type AgentListParams as AgentListParams,
1079
+ type AgentDeleteParams as AgentDeleteParams,
1063
1080
  };
1064
1081
 
1065
1082
  export {
@@ -1096,6 +1113,7 @@ export declare namespace Cadenya {
1096
1113
  type ObjectiveContextWindowsCursorPagination as ObjectiveContextWindowsCursorPagination,
1097
1114
  type ObjectiveListEventsResponsesCursorPagination as ObjectiveListEventsResponsesCursorPagination,
1098
1115
  type ObjectiveCreateParams as ObjectiveCreateParams,
1116
+ type ObjectiveRetrieveParams as ObjectiveRetrieveParams,
1099
1117
  type ObjectiveListParams as ObjectiveListParams,
1100
1118
  type ObjectiveCancelParams as ObjectiveCancelParams,
1101
1119
  type ObjectiveCompactParams as ObjectiveCompactParams,
@@ -1111,8 +1129,10 @@ export declare namespace Cadenya {
1111
1129
  type MemoryLayerSpec as MemoryLayerSpec,
1112
1130
  type MemoryLayersCursorPagination as MemoryLayersCursorPagination,
1113
1131
  type MemoryLayerCreateParams as MemoryLayerCreateParams,
1132
+ type MemoryLayerRetrieveParams as MemoryLayerRetrieveParams,
1114
1133
  type MemoryLayerUpdateParams as MemoryLayerUpdateParams,
1115
1134
  type MemoryLayerListParams as MemoryLayerListParams,
1135
+ type MemoryLayerDeleteParams as MemoryLayerDeleteParams,
1116
1136
  };
1117
1137
 
1118
1138
  export {
@@ -1121,6 +1141,7 @@ export declare namespace Cadenya {
1121
1141
  type UploadInfo as UploadInfo,
1122
1142
  type UploadSpec as UploadSpec,
1123
1143
  type UploadCreateParams as UploadCreateParams,
1144
+ type UploadRetrieveParams as UploadRetrieveParams,
1124
1145
  };
1125
1146
 
1126
1147
  export {
@@ -1128,6 +1149,7 @@ export declare namespace Cadenya {
1128
1149
  type Model as Model,
1129
1150
  type ModelSpec as ModelSpec,
1130
1151
  type ModelsCursorPagination as ModelsCursorPagination,
1152
+ type ModelRetrieveParams as ModelRetrieveParams,
1131
1153
  type ModelListParams as ModelListParams,
1132
1154
  type ModelSetStatusParams as ModelSetStatusParams,
1133
1155
  };
@@ -1155,8 +1177,10 @@ export declare namespace Cadenya {
1155
1177
  type ToolSetsCursorPagination as ToolSetsCursorPagination,
1156
1178
  type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
1157
1179
  type ToolSetCreateParams as ToolSetCreateParams,
1180
+ type ToolSetRetrieveParams as ToolSetRetrieveParams,
1158
1181
  type ToolSetUpdateParams as ToolSetUpdateParams,
1159
1182
  type ToolSetListParams as ToolSetListParams,
1183
+ type ToolSetDeleteParams as ToolSetDeleteParams,
1160
1184
  type ToolSetListEventsParams as ToolSetListEventsParams,
1161
1185
  };
1162
1186
 
@@ -1167,8 +1191,11 @@ export declare namespace Cadenya {
1167
1191
  type APIKeySpec as APIKeySpec,
1168
1192
  type APIKeysCursorPagination as APIKeysCursorPagination,
1169
1193
  type APIKeyCreateParams as APIKeyCreateParams,
1194
+ type APIKeyRetrieveParams as APIKeyRetrieveParams,
1170
1195
  type APIKeyUpdateParams as APIKeyUpdateParams,
1171
1196
  type APIKeyListParams as APIKeyListParams,
1197
+ type APIKeyDeleteParams as APIKeyDeleteParams,
1198
+ type APIKeyRotateParams as APIKeyRotateParams,
1172
1199
  };
1173
1200
 
1174
1201
  export {
@@ -1178,8 +1205,10 @@ export declare namespace Cadenya {
1178
1205
  type WorkspaceSecretSpec as WorkspaceSecretSpec,
1179
1206
  type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination,
1180
1207
  type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams,
1208
+ type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams,
1181
1209
  type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams,
1182
1210
  type WorkspaceSecretListParams as WorkspaceSecretListParams,
1211
+ type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams,
1183
1212
  };
1184
1213
 
1185
1214
  export {
@@ -1212,6 +1241,7 @@ export declare namespace Cadenya {
1212
1241
  type VariationAssignmentEntry as VariationAssignmentEntry,
1213
1242
  type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
1214
1243
  type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
1244
+ type BulkWorkspaceResourceRetrieveParams as BulkWorkspaceResourceRetrieveParams,
1215
1245
  type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
1216
1246
  type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
1217
1247
  };
@@ -81,39 +81,46 @@ export class Agents extends APIResource {
81
81
  /**
82
82
  * Creates a new agent in the workspace
83
83
  */
84
- create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
85
- return this._client.post('/v1/agents', { body, ...options });
84
+ create(workspaceID: string, body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
85
+ return this._client.post(path`/v1/workspaces/${workspaceID}/agents`, { body, ...options });
86
86
  }
87
87
 
88
88
  /**
89
89
  * Retrieves an agent by ID from the workspace
90
90
  */
91
- retrieve(id: string, options?: RequestOptions): APIPromise<Agent> {
92
- return this._client.get(path`/v1/agents/${id}`, options);
91
+ retrieve(id: string, params: AgentRetrieveParams, options?: RequestOptions): APIPromise<Agent> {
92
+ const { workspaceId } = params;
93
+ return this._client.get(path`/v1/workspaces/${workspaceId}/agents/${id}`, options);
93
94
  }
94
95
 
95
96
  /**
96
97
  * Updates an agent in the workspace
97
98
  */
98
- update(id: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent> {
99
- return this._client.patch(path`/v1/agents/${id}`, { body, ...options });
99
+ update(id: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent> {
100
+ const { workspaceId, ...body } = params;
101
+ return this._client.patch(path`/v1/workspaces/${workspaceId}/agents/${id}`, { body, ...options });
100
102
  }
101
103
 
102
104
  /**
103
105
  * Lists all agents in the workspace
104
106
  */
105
107
  list(
108
+ workspaceID: string,
106
109
  query: AgentListParams | null | undefined = {},
107
110
  options?: RequestOptions,
108
111
  ): PagePromise<AgentsCursorPagination, Agent> {
109
- return this._client.getAPIList('/v1/agents', CursorPagination<Agent>, { query, ...options });
112
+ return this._client.getAPIList(path`/v1/workspaces/${workspaceID}/agents`, CursorPagination<Agent>, {
113
+ query,
114
+ ...options,
115
+ });
110
116
  }
111
117
 
112
118
  /**
113
119
  * Deletes an agent from the workspace
114
120
  */
115
- delete(id: string, options?: RequestOptions): APIPromise<void> {
116
- return this._client.delete(path`/v1/agents/${id}`, {
121
+ delete(id: string, params: AgentDeleteParams, options?: RequestOptions): APIPromise<void> {
122
+ const { workspaceId } = params;
123
+ return this._client.delete(path`/v1/workspaces/${workspaceId}/agents/${id}`, {
117
124
  ...options,
118
125
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
119
126
  });
@@ -244,21 +251,34 @@ export namespace AgentCreateParams {
244
251
  }
245
252
  }
246
253
 
254
+ export interface AgentRetrieveParams {
255
+ /**
256
+ * Workspace ID (from path).
257
+ */
258
+ workspaceId: string;
259
+ }
260
+
247
261
  export interface AgentUpdateParams {
248
262
  /**
249
- * UpdateResourceMetadata contains the user-provided fields for updating a
250
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
251
- * profile_id, created_at) are excluded since they are set by the server.
263
+ * Path param: Workspace ID (from path).
264
+ */
265
+ workspaceId: string;
266
+
267
+ /**
268
+ * Body param: UpdateResourceMetadata contains the user-provided fields for
269
+ * updating a workspace-scoped resource. Read-only fields (id, account_id,
270
+ * workspace_id, profile_id, created_at) are excluded since they are set by the
271
+ * server.
252
272
  */
253
273
  metadata?: Shared.UpdateResourceMetadata;
254
274
 
255
275
  /**
256
- * Agent specification (user-provided configuration)
276
+ * Body param: Agent specification (user-provided configuration)
257
277
  */
258
278
  spec?: AgentSpec;
259
279
 
260
280
  /**
261
- * Fields to update
281
+ * Body param: Fields to update
262
282
  */
263
283
  updateMask?: string;
264
284
  }
@@ -307,6 +327,13 @@ export interface AgentListParams extends CursorPaginationParams {
307
327
  | 'VARIATION_SELECTION_MODE_WEIGHTED';
308
328
  }
309
329
 
330
+ export interface AgentDeleteParams {
331
+ /**
332
+ * Workspace ID (from path).
333
+ */
334
+ workspaceId: string;
335
+ }
336
+
310
337
  Agents.Feedback = Feedback;
311
338
  Agents.WebhookDeliveries = WebhookDeliveries;
312
339
  Agents.Variations = Variations;
@@ -320,8 +347,10 @@ export declare namespace Agents {
320
347
  type Page as Page,
321
348
  type AgentsCursorPagination as AgentsCursorPagination,
322
349
  type AgentCreateParams as AgentCreateParams,
350
+ type AgentRetrieveParams as AgentRetrieveParams,
323
351
  type AgentUpdateParams as AgentUpdateParams,
324
352
  type AgentListParams as AgentListParams,
353
+ type AgentDeleteParams as AgentDeleteParams,
325
354
  };
326
355
 
327
356
  export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
@@ -23,11 +23,12 @@ export class Feedback extends APIResource {
23
23
  */
24
24
  list(
25
25
  agentID: string,
26
- query: FeedbackListParams | null | undefined = {},
26
+ params: FeedbackListParams,
27
27
  options?: RequestOptions,
28
28
  ): PagePromise<ObjectiveFeedbacksCursorPagination, ObjectivesFeedbackAPI.ObjectiveFeedback> {
29
+ const { workspaceId, ...query } = params;
29
30
  return this._client.getAPIList(
30
- path`/v1/agents/${agentID}/feedback`,
31
+ path`/v1/workspaces/${workspaceId}/agents/${agentID}/feedback`,
31
32
  CursorPagination<ObjectivesFeedbackAPI.ObjectiveFeedback>,
32
33
  { query, ...options },
33
34
  );
@@ -36,34 +37,40 @@ export class Feedback extends APIResource {
36
37
 
37
38
  export interface FeedbackListParams extends CursorPaginationParams {
38
39
  /**
39
- * Optional filter to limit results to feedback on objectives run by a single agent
40
- * variation. Supports "external_id:" prefix for external IDs.
40
+ * Path param: Workspace ID (from path).
41
+ */
42
+ workspaceId: string;
43
+
44
+ /**
45
+ * Query param: Optional filter to limit results to feedback on objectives run by a
46
+ * single agent variation. Supports "external_id:" prefix for external IDs.
41
47
  */
42
48
  agentVariationId?: string;
43
49
 
44
50
  /**
45
- * Inclusive lower bound on feedback creation time.
51
+ * Query param: Inclusive lower bound on feedback creation time.
46
52
  */
47
53
  createdAfter?: string;
48
54
 
49
55
  /**
50
- * Exclusive upper bound on feedback creation time.
56
+ * Query param: Exclusive upper bound on feedback creation time.
51
57
  */
52
58
  createdBefore?: string;
53
59
 
54
60
  /**
55
- * When set to true you may use more of your alloted API rate-limit
61
+ * Query param: When set to true you may use more of your alloted API rate-limit
56
62
  */
57
63
  includeInfo?: boolean;
58
64
 
59
65
  /**
60
- * Free-text search applied to the feedback comment. Case-insensitive substring
61
- * match.
66
+ * Query param: Free-text search applied to the feedback comment. Case-insensitive
67
+ * substring match.
62
68
  */
63
69
  query?: string;
64
70
 
65
71
  /**
66
- * Filter by sentiment. UNSPECIFIED returns feedback regardless of score.
72
+ * Query param: Filter by sentiment. UNSPECIFIED returns feedback regardless of
73
+ * score.
67
74
  */
68
75
  sentiment?:
69
76
  | 'FEEDBACK_SENTIMENT_UNSPECIFIED'
@@ -7,8 +7,10 @@ export {
7
7
  type AgentSpec,
8
8
  type Page,
9
9
  type AgentCreateParams,
10
+ type AgentRetrieveParams,
10
11
  type AgentUpdateParams,
11
12
  type AgentListParams,
13
+ type AgentDeleteParams,
12
14
  type AgentsCursorPagination,
13
15
  } from './agents';
14
16
  export { Feedback, type FeedbackListParams } from './feedback';
@@ -21,24 +21,31 @@ export class Schedules extends APIResource {
21
21
  /**
22
22
  * Creates a new schedule for an agent
23
23
  */
24
- create(agentID: string, body: ScheduleCreateParams, options?: RequestOptions): APIPromise<AgentSchedule> {
25
- return this._client.post(path`/v1/agents/${agentID}/schedules`, { body, ...options });
24
+ create(agentID: string, params: ScheduleCreateParams, options?: RequestOptions): APIPromise<AgentSchedule> {
25
+ const { workspaceId, ...body } = params;
26
+ return this._client.post(path`/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`, {
27
+ body,
28
+ ...options,
29
+ });
26
30
  }
27
31
 
28
32
  /**
29
33
  * Retrieves a schedule by ID from an agent
30
34
  */
31
35
  retrieve(id: string, params: ScheduleRetrieveParams, options?: RequestOptions): APIPromise<AgentSchedule> {
32
- const { agentId } = params;
33
- return this._client.get(path`/v1/agents/${agentId}/schedules/${id}`, options);
36
+ const { workspaceId, agentId } = params;
37
+ return this._client.get(path`/v1/workspaces/${workspaceId}/agents/${agentId}/schedules/${id}`, options);
34
38
  }
35
39
 
36
40
  /**
37
41
  * Updates a schedule for an agent
38
42
  */
39
43
  update(id: string, params: ScheduleUpdateParams, options?: RequestOptions): APIPromise<AgentSchedule> {
40
- const { agentId, ...body } = params;
41
- return this._client.patch(path`/v1/agents/${agentId}/schedules/${id}`, { body, ...options });
44
+ const { workspaceId, agentId, ...body } = params;
45
+ return this._client.patch(path`/v1/workspaces/${workspaceId}/agents/${agentId}/schedules/${id}`, {
46
+ body,
47
+ ...options,
48
+ });
42
49
  }
43
50
 
44
51
  /**
@@ -46,21 +53,23 @@ export class Schedules extends APIResource {
46
53
  */
47
54
  list(
48
55
  agentID: string,
49
- query: ScheduleListParams | null | undefined = {},
56
+ params: ScheduleListParams,
50
57
  options?: RequestOptions,
51
58
  ): PagePromise<AgentSchedulesCursorPagination, AgentSchedule> {
52
- return this._client.getAPIList(path`/v1/agents/${agentID}/schedules`, CursorPagination<AgentSchedule>, {
53
- query,
54
- ...options,
55
- });
59
+ const { workspaceId, ...query } = params;
60
+ return this._client.getAPIList(
61
+ path`/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`,
62
+ CursorPagination<AgentSchedule>,
63
+ { query, ...options },
64
+ );
56
65
  }
57
66
 
58
67
  /**
59
68
  * Deletes a schedule from an agent
60
69
  */
61
70
  delete(id: string, params: ScheduleDeleteParams, options?: RequestOptions): APIPromise<void> {
62
- const { agentId } = params;
63
- return this._client.delete(path`/v1/agents/${agentId}/schedules/${id}`, {
71
+ const { workspaceId, agentId } = params;
72
+ return this._client.delete(path`/v1/workspaces/${workspaceId}/agents/${agentId}/schedules/${id}`, {
64
73
  ...options,
65
74
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
66
75
  });
@@ -251,19 +260,30 @@ export interface ScheduleRange {
251
260
 
252
261
  export interface ScheduleCreateParams {
253
262
  /**
254
- * CreateResourceMetadata contains the user-provided fields for creating a
255
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
256
- * profile_id, created_at) are excluded since they are set by the server.
263
+ * Path param: Workspace ID (from path).
264
+ */
265
+ workspaceId: string;
266
+
267
+ /**
268
+ * Body param: CreateResourceMetadata contains the user-provided fields for
269
+ * creating a workspace-scoped resource. Read-only fields (id, account_id,
270
+ * workspace_id, profile_id, created_at) are excluded since they are set by the
271
+ * server.
257
272
  */
258
273
  metadata: Shared.CreateResourceMetadata;
259
274
 
260
275
  /**
261
- * AgentScheduleSpec is the user-provided configuration for a schedule.
276
+ * Body param: AgentScheduleSpec is the user-provided configuration for a schedule.
262
277
  */
263
278
  spec: AgentScheduleSpec;
264
279
  }
265
280
 
266
281
  export interface ScheduleRetrieveParams {
282
+ /**
283
+ * Workspace ID (from path).
284
+ */
285
+ workspaceId: string;
286
+
267
287
  /**
268
288
  * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
269
289
  * form (see common.proto "Path-parameter ID resolution").
@@ -272,6 +292,11 @@ export interface ScheduleRetrieveParams {
272
292
  }
273
293
 
274
294
  export interface ScheduleUpdateParams {
295
+ /**
296
+ * Path param: Workspace ID (from path).
297
+ */
298
+ workspaceId: string;
299
+
275
300
  /**
276
301
  * Path param: Agent ID (from path). Accepts canonical agent\_… form or
277
302
  * external_id:<value> form (see common.proto "Path-parameter ID resolution").
@@ -299,32 +324,42 @@ export interface ScheduleUpdateParams {
299
324
 
300
325
  export interface ScheduleListParams extends CursorPaginationParams {
301
326
  /**
302
- * Filter by bundle_key return only resources owned by this bundle.
327
+ * Path param: Workspace ID (from path).
328
+ */
329
+ workspaceId: string;
330
+
331
+ /**
332
+ * Query param: Filter by bundle_key — return only resources owned by this bundle.
303
333
  */
304
334
  bundleKey?: string;
305
335
 
306
336
  /**
307
- * When set to true you may use more of your alloted API rate-limit.
337
+ * Query param: When set to true you may use more of your alloted API rate-limit.
308
338
  */
309
339
  includeInfo?: boolean;
310
340
 
311
341
  /**
312
- * Filter expression (query param: prefix).
342
+ * Query param: Filter expression (query param: prefix).
313
343
  */
314
344
  prefix?: string;
315
345
 
316
346
  /**
317
- * Free-form search query.
347
+ * Query param: Free-form search query.
318
348
  */
319
349
  query?: string;
320
350
 
321
351
  /**
322
- * Sort order for results (asc or desc by creation time).
352
+ * Query param: Sort order for results (asc or desc by creation time).
323
353
  */
324
354
  sortOrder?: string;
325
355
  }
326
356
 
327
357
  export interface ScheduleDeleteParams {
358
+ /**
359
+ * Workspace ID (from path).
360
+ */
361
+ workspaceId: string;
362
+
328
363
  /**
329
364
  * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
330
365
  * form (see common.proto "Path-parameter ID resolution").