@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.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/client.d.mts +18 -18
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -18
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +28 -11
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +28 -11
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +16 -10
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +16 -10
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +14 -9
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +14 -9
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +3 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +3 -2
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +32 -11
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +32 -11
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +18 -13
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +18 -13
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +51 -9
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +51 -9
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +28 -32
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +28 -32
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +7 -3
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +7 -3
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +3 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +3 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +35 -12
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +35 -12
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +19 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +19 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +10 -4
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +10 -4
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +10 -9
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +10 -9
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/index.d.mts +1 -1
- package/resources/bulk-workspace-resources/index.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/index.d.ts +1 -1
- package/resources/bulk-workspace-resources/index.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/index.js.map +1 -1
- package/resources/bulk-workspace-resources/index.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +8 -4
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +8 -4
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +3 -2
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +3 -2
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/index.d.mts +9 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +35 -14
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +35 -14
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +15 -13
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +15 -13
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +32 -9
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +32 -9
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +13 -10
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +13 -10
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +15 -5
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +15 -5
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +11 -6
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +11 -6
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +16 -5
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +16 -5
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +9 -4
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +9 -4
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +1 -1
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +1 -1
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +49 -21
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +49 -21
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +31 -16
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +31 -16
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +10 -2
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +10 -2
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +5 -4
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +5 -4
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +15 -3
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +15 -3
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +7 -12
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +7 -12
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +5 -1
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +5 -1
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +3 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +3 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +1 -1
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +6 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +6 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +1 -1
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +1 -1
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +39 -12
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +39 -12
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +19 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +19 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +39 -14
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +39 -14
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -13
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -13
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +9 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +9 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +30 -10
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +30 -10
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +16 -13
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +16 -13
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +30 -0
- package/src/resources/agents/agents.ts +43 -14
- package/src/resources/agents/feedback.ts +17 -10
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/schedules.ts +57 -22
- package/src/resources/agents/variations.ts +104 -39
- package/src/resources/agents/webhook-deliveries.ts +10 -4
- package/src/resources/api-keys.ts +54 -16
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +30 -8
- package/src/resources/bulk-workspace-resources/index.ts +1 -0
- package/src/resources/bulk-workspace-resources/results.ts +11 -5
- package/src/resources/index.ts +22 -1
- package/src/resources/memory-layers/entries.ts +62 -25
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +52 -12
- package/src/resources/models.ts +25 -6
- package/src/resources/objectives/feedback.ts +26 -8
- package/src/resources/objectives/index.ts +1 -0
- package/src/resources/objectives/objectives.ts +86 -27
- package/src/resources/objectives/tasks.ts +19 -5
- package/src/resources/objectives/tool-calls.ts +30 -14
- package/src/resources/objectives/tools.ts +9 -3
- package/src/resources/search.ts +6 -1
- package/src/resources/tool-sets/index.ts +2 -0
- package/src/resources/tool-sets/tool-sets.ts +61 -19
- package/src/resources/tool-sets/tools.ts +64 -25
- package/src/resources/uploads.ts +13 -4
- package/src/resources/workspace-secrets.ts +57 -16
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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,
|
|
28
|
-
|
|
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}`, {
|
|
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
|
-
|
|
59
|
+
params: ToolListParams,
|
|
53
60
|
options?: RequestOptions,
|
|
54
61
|
): PagePromise<ToolsCursorPagination, Tool> {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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").
|
package/src/resources/uploads.ts
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
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(
|
|
17
|
-
|
|
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(
|
|
24
|
-
|
|
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
|
-
|
|
41
|
+
params: WorkspaceSecretUpdateParams,
|
|
33
42
|
options?: RequestOptions,
|
|
34
43
|
): APIPromise<WorkspaceSecret> {
|
|
35
|
-
|
|
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(
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
107
|
-
|
|
108
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.67.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.67.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|