@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
@@ -24,24 +24,31 @@ export class Tools extends APIResource {
24
24
  /**
25
25
  * Creates a new tool in the tool set
26
26
  */
27
- create(toolSetID: string, body: ToolCreateParams, options?: RequestOptions): APIPromise<Tool> {
28
- return this._client.post(path`/v1/tool_sets/${toolSetID}/tools`, { body, ...options });
27
+ create(toolSetID: string, params: ToolCreateParams, options?: RequestOptions): APIPromise<Tool> {
28
+ const { workspaceId, ...body } = params;
29
+ return this._client.post(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/tools`, {
30
+ body,
31
+ ...options,
32
+ });
29
33
  }
30
34
 
31
35
  /**
32
36
  * Retrieves a tool by ID from the workspace
33
37
  */
34
38
  retrieve(id: string, params: ToolRetrieveParams, options?: RequestOptions): APIPromise<Tool> {
35
- const { toolSetId } = params;
36
- return this._client.get(path`/v1/tool_sets/${toolSetId}/tools/${id}`, options);
39
+ const { workspaceId, toolSetId } = params;
40
+ return this._client.get(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}`, options);
37
41
  }
38
42
 
39
43
  /**
40
44
  * Updates a tool in the tool set
41
45
  */
42
46
  update(id: string, params: ToolUpdateParams, options?: RequestOptions): APIPromise<Tool> {
43
- const { toolSetId, ...body } = params;
44
- return this._client.put(path`/v1/tool_sets/${toolSetId}/tools/${id}`, { body, ...options });
47
+ const { workspaceId, toolSetId, ...body } = params;
48
+ return this._client.put(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}`, {
49
+ body,
50
+ ...options,
51
+ });
45
52
  }
46
53
 
47
54
  /**
@@ -49,21 +56,23 @@ export class Tools extends APIResource {
49
56
  */
50
57
  list(
51
58
  toolSetID: string,
52
- query: ToolListParams | null | undefined = {},
59
+ params: ToolListParams,
53
60
  options?: RequestOptions,
54
61
  ): PagePromise<ToolsCursorPagination, Tool> {
55
- return this._client.getAPIList(path`/v1/tool_sets/${toolSetID}/tools`, CursorPagination<Tool>, {
56
- query,
57
- ...options,
58
- });
62
+ const { workspaceId, ...query } = params;
63
+ return this._client.getAPIList(
64
+ path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/tools`,
65
+ CursorPagination<Tool>,
66
+ { query, ...options },
67
+ );
59
68
  }
60
69
 
61
70
  /**
62
71
  * Deletes a tool in the tool set
63
72
  */
64
73
  delete(id: string, params: ToolDeleteParams, options?: RequestOptions): APIPromise<void> {
65
- const { toolSetId } = params;
66
- return this._client.delete(path`/v1/tool_sets/${toolSetId}/tools/${id}`, {
74
+ const { workspaceId, toolSetId } = params;
75
+ return this._client.delete(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}`, {
67
76
  ...options,
68
77
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
69
78
  });
@@ -163,16 +172,30 @@ export interface ToolSpecConfig {
163
172
 
164
173
  export interface ToolCreateParams {
165
174
  /**
166
- * CreateResourceMetadata contains the user-provided fields for creating a
167
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
168
- * profile_id, created_at) are excluded since they are set by the server.
175
+ * Path param: Workspace ID (from path).
176
+ */
177
+ workspaceId: string;
178
+
179
+ /**
180
+ * Body param: CreateResourceMetadata contains the user-provided fields for
181
+ * creating a workspace-scoped resource. Read-only fields (id, account_id,
182
+ * workspace_id, profile_id, created_at) are excluded since they are set by the
183
+ * server.
169
184
  */
170
185
  metadata: Shared.CreateResourceMetadata;
171
186
 
187
+ /**
188
+ * Body param
189
+ */
172
190
  spec: ToolSpec;
173
191
  }
174
192
 
175
193
  export interface ToolRetrieveParams {
194
+ /**
195
+ * Workspace ID (from path).
196
+ */
197
+ workspaceId: string;
198
+
176
199
  /**
177
200
  * Tool set ID (from path). Accepts canonical ts\_… form or external_id:<value>
178
201
  * form (see common.proto "Path-parameter ID resolution").
@@ -181,6 +204,11 @@ export interface ToolRetrieveParams {
181
204
  }
182
205
 
183
206
  export interface ToolUpdateParams {
207
+ /**
208
+ * Path param: Workspace ID (from path).
209
+ */
210
+ workspaceId: string;
211
+
184
212
  /**
185
213
  * Path param: Tool set ID (from path). Accepts canonical ts\_… form or
186
214
  * external_id:<value> form (see common.proto "Path-parameter ID resolution").
@@ -208,43 +236,49 @@ export interface ToolUpdateParams {
208
236
 
209
237
  export interface ToolListParams extends CursorPaginationParams {
210
238
  /**
211
- * Filter by bundle_key return only resources owned by this bundle.
239
+ * Path param: Workspace ID (from path).
240
+ */
241
+ workspaceId: string;
242
+
243
+ /**
244
+ * Query param: Filter by bundle_key — return only resources owned by this bundle.
212
245
  */
213
246
  bundleKey?: string;
214
247
 
215
248
  /**
216
- * When set to true you may use more of your alloted API rate-limit
249
+ * Query param: When set to true you may use more of your alloted API rate-limit
217
250
  */
218
251
  includeInfo?: boolean;
219
252
 
220
253
  /**
221
- * Filter by tool name (exact match). Multiple values are OR'd together.
254
+ * Query param: Filter by tool name (exact match). Multiple values are OR'd
255
+ * together.
222
256
  */
223
257
  names?: Array<string>;
224
258
 
225
259
  /**
226
- * Filter expression (query param: prefix)
260
+ * Query param: Filter expression (query param: prefix)
227
261
  */
228
262
  prefix?: string;
229
263
 
230
264
  /**
231
- * Free-form search query
265
+ * Query param: Free-form search query
232
266
  */
233
267
  query?: string;
234
268
 
235
269
  /**
236
- * Filter by approval requirement. Omitted = no filter; true = only tools requiring
237
- * approval; false = only tools not requiring approval.
270
+ * Query param: Filter by approval requirement. Omitted = no filter; true = only
271
+ * tools requiring approval; false = only tools not requiring approval.
238
272
  */
239
273
  requiresApproval?: boolean;
240
274
 
241
275
  /**
242
- * Sort order for results (asc or desc by creation time)
276
+ * Query param: Sort order for results (asc or desc by creation time)
243
277
  */
244
278
  sortOrder?: string;
245
279
 
246
280
  /**
247
- * Filter by tool status. Multiple values are OR'd together.
281
+ * Query param: Filter by tool status. Multiple values are OR'd together.
248
282
  */
249
283
  statuses?: Array<
250
284
  'TOOL_STATUS_UNSPECIFIED' | 'TOOL_STATUS_AVAILABLE' | 'TOOL_STATUS_OMITTED' | 'TOOL_STATUS_ARCHIVED'
@@ -252,6 +286,11 @@ export interface ToolListParams extends CursorPaginationParams {
252
286
  }
253
287
 
254
288
  export interface ToolDeleteParams {
289
+ /**
290
+ * Workspace ID (from path).
291
+ */
292
+ workspaceId: string;
293
+
255
294
  /**
256
295
  * Tool set ID (from path). Accepts canonical ts\_… form or external_id:<value>
257
296
  * form (see common.proto "Path-parameter ID resolution").
@@ -22,15 +22,16 @@ export class Uploads extends APIResource {
22
22
  * returned id is used to reference the upload from resources that accept binary
23
23
  * content.
24
24
  */
25
- create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload> {
26
- return this._client.post('/v1/uploads', { body, ...options });
25
+ create(workspaceID: string, body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload> {
26
+ return this._client.post(path`/v1/workspaces/${workspaceID}/uploads`, { body, ...options });
27
27
  }
28
28
 
29
29
  /**
30
30
  * Retrieves the current state of an upload, including its lifecycle status
31
31
  */
32
- retrieve(id: string, options?: RequestOptions): APIPromise<Upload> {
33
- return this._client.get(path`/v1/uploads/${id}`, options);
32
+ retrieve(id: string, params: UploadRetrieveParams, options?: RequestOptions): APIPromise<Upload> {
33
+ const { workspaceId } = params;
34
+ return this._client.get(path`/v1/workspaces/${workspaceId}/uploads/${id}`, options);
34
35
  }
35
36
  }
36
37
 
@@ -118,11 +119,19 @@ export interface UploadCreateParams {
118
119
  spec: UploadSpec;
119
120
  }
120
121
 
122
+ export interface UploadRetrieveParams {
123
+ /**
124
+ * Workspace ID (from path).
125
+ */
126
+ workspaceId: string;
127
+ }
128
+
121
129
  export declare namespace Uploads {
122
130
  export {
123
131
  type Upload as Upload,
124
132
  type UploadInfo as UploadInfo,
125
133
  type UploadSpec as UploadSpec,
126
134
  type UploadCreateParams as UploadCreateParams,
135
+ type UploadRetrieveParams as UploadRetrieveParams,
127
136
  };
128
137
  }
@@ -13,15 +13,24 @@ export class WorkspaceSecrets extends APIResource {
13
13
  /**
14
14
  * Creates a new workspace secret in the workspace
15
15
  */
16
- create(body: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret> {
17
- return this._client.post('/v1/workspace_secrets', { body, ...options });
16
+ create(
17
+ workspaceID: string,
18
+ body: WorkspaceSecretCreateParams,
19
+ options?: RequestOptions,
20
+ ): APIPromise<WorkspaceSecret> {
21
+ return this._client.post(path`/v1/workspaces/${workspaceID}/workspace_secrets`, { body, ...options });
18
22
  }
19
23
 
20
24
  /**
21
25
  * Retrieves a workspace secret by ID from the workspace
22
26
  */
23
- retrieve(id: string, options?: RequestOptions): APIPromise<WorkspaceSecret> {
24
- return this._client.get(path`/v1/workspace_secrets/${id}`, options);
27
+ retrieve(
28
+ id: string,
29
+ params: WorkspaceSecretRetrieveParams,
30
+ options?: RequestOptions,
31
+ ): APIPromise<WorkspaceSecret> {
32
+ const { workspaceId } = params;
33
+ return this._client.get(path`/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, options);
25
34
  }
26
35
 
27
36
  /**
@@ -29,30 +38,37 @@ export class WorkspaceSecrets extends APIResource {
29
38
  */
30
39
  update(
31
40
  id: string,
32
- body: WorkspaceSecretUpdateParams,
41
+ params: WorkspaceSecretUpdateParams,
33
42
  options?: RequestOptions,
34
43
  ): APIPromise<WorkspaceSecret> {
35
- return this._client.patch(path`/v1/workspace_secrets/${id}`, { body, ...options });
44
+ const { workspaceId, ...body } = params;
45
+ return this._client.patch(path`/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
46
+ body,
47
+ ...options,
48
+ });
36
49
  }
37
50
 
38
51
  /**
39
52
  * Lists all workspace secrets in the workspace
40
53
  */
41
54
  list(
55
+ workspaceID: string,
42
56
  query: WorkspaceSecretListParams | null | undefined = {},
43
57
  options?: RequestOptions,
44
58
  ): PagePromise<WorkspaceSecretsCursorPagination, WorkspaceSecret> {
45
- return this._client.getAPIList('/v1/workspace_secrets', CursorPagination<WorkspaceSecret>, {
46
- query,
47
- ...options,
48
- });
59
+ return this._client.getAPIList(
60
+ path`/v1/workspaces/${workspaceID}/workspace_secrets`,
61
+ CursorPagination<WorkspaceSecret>,
62
+ { query, ...options },
63
+ );
49
64
  }
50
65
 
51
66
  /**
52
67
  * Deletes a workspace secret from the workspace
53
68
  */
54
- delete(id: string, options?: RequestOptions): APIPromise<void> {
55
- return this._client.delete(path`/v1/workspace_secrets/${id}`, {
69
+ delete(id: string, params: WorkspaceSecretDeleteParams, options?: RequestOptions): APIPromise<void> {
70
+ const { workspaceId } = params;
71
+ return this._client.delete(path`/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
56
72
  ...options,
57
73
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
58
74
  });
@@ -101,18 +117,34 @@ export interface WorkspaceSecretCreateParams {
101
117
  spec: WorkspaceSecretSpec;
102
118
  }
103
119
 
120
+ export interface WorkspaceSecretRetrieveParams {
121
+ /**
122
+ * Workspace ID (from path).
123
+ */
124
+ workspaceId: string;
125
+ }
126
+
104
127
  export interface WorkspaceSecretUpdateParams {
105
128
  /**
106
- * UpdateResourceMetadata contains the user-provided fields for updating a
107
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
108
- * profile_id, created_at) are excluded since they are set by the server.
129
+ * Path param: Workspace ID (from path).
130
+ */
131
+ workspaceId: string;
132
+
133
+ /**
134
+ * Body param: UpdateResourceMetadata contains the user-provided fields for
135
+ * updating a workspace-scoped resource. Read-only fields (id, account_id,
136
+ * workspace_id, profile_id, created_at) are excluded since they are set by the
137
+ * server.
109
138
  */
110
139
  metadata?: Shared.UpdateResourceMetadata;
111
140
 
141
+ /**
142
+ * Body param
143
+ */
112
144
  spec?: WorkspaceSecretSpec;
113
145
 
114
146
  /**
115
- * Fields to update
147
+ * Body param: Fields to update
116
148
  */
117
149
  updateMask?: string;
118
150
  }
@@ -144,6 +176,13 @@ export interface WorkspaceSecretListParams extends CursorPaginationParams {
144
176
  sortOrder?: string;
145
177
  }
146
178
 
179
+ export interface WorkspaceSecretDeleteParams {
180
+ /**
181
+ * Workspace ID (from path).
182
+ */
183
+ workspaceId: string;
184
+ }
185
+
147
186
  export declare namespace WorkspaceSecrets {
148
187
  export {
149
188
  type WorkspaceSecret as WorkspaceSecret,
@@ -151,7 +190,9 @@ export declare namespace WorkspaceSecrets {
151
190
  type WorkspaceSecretSpec as WorkspaceSecretSpec,
152
191
  type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination,
153
192
  type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams,
193
+ type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams,
154
194
  type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams,
155
195
  type WorkspaceSecretListParams as WorkspaceSecretListParams,
196
+ type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams,
156
197
  };
157
198
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.66.0'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.66.0";
1
+ export declare const VERSION = "0.67.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.66.0";
1
+ export declare const VERSION = "0.67.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.66.0'; // x-release-please-version
4
+ exports.VERSION = '0.67.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.66.0'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map