@cadenya/cadenya 0.66.0 → 0.68.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 +16 -0
- package/README.md +2 -2
- package/client.d.mts +42 -81
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -81
- package/client.d.ts.map +1 -1
- package/client.js +24 -63
- package/client.js.map +1 -1
- package/client.mjs +24 -63
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +18 -22
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +18 -22
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -6
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -6
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +34 -21
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +34 -21
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +17 -16
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -16
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +15 -15
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +15 -15
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +4 -8
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +4 -8
- 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 +44 -26
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +44 -26
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +20 -19
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +20 -19
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +88 -43
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +88 -43
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +31 -32
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +31 -32
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +10 -11
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +10 -11
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +4 -8
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +4 -8
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +48 -28
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +48 -28
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +21 -17
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +21 -17
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +13 -17
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +13 -17
- 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 +30 -35
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +30 -35
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +6 -10
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +6 -10
- 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 +40 -33
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +40 -33
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +19 -23
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +19 -23
- 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 +33 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +33 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +17 -20
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +17 -20
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +18 -12
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +18 -12
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +14 -13
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +14 -13
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +19 -8
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +19 -8
- 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 +63 -44
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +63 -44
- 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 +7 -2
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +7 -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 +18 -9
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +18 -9
- 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 +66 -43
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +66 -43
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +23 -23
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +23 -23
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +50 -31
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +50 -31
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +22 -21
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +22 -21
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +21 -19
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +21 -19
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +8 -11
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +8 -11
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +33 -13
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +33 -13
- 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/resources/workspaces.d.mts +2 -6
- package/resources/workspaces.d.mts.map +1 -1
- package/resources/workspaces.d.ts +2 -6
- package/resources/workspaces.d.ts.map +1 -1
- package/resources/workspaces.js +2 -6
- package/resources/workspaces.js.map +1 -1
- package/resources/workspaces.mjs +2 -6
- package/resources/workspaces.mjs.map +1 -1
- package/src/client.ts +54 -63
- package/src/resources/account.ts +18 -22
- package/src/resources/agents/agents.ts +49 -24
- package/src/resources/agents/feedback.ts +18 -16
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/schedules.ts +69 -37
- package/src/resources/agents/variations.ts +141 -73
- package/src/resources/agents/webhook-deliveries.ts +13 -12
- package/src/resources/api-keys.ts +67 -32
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +40 -25
- package/src/resources/bulk-workspace-resources/index.ts +1 -0
- package/src/resources/bulk-workspace-resources/results.ts +33 -36
- package/src/resources/index.ts +22 -1
- package/src/resources/memory-layers/entries.ts +67 -44
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -25
- package/src/resources/models.ts +28 -13
- package/src/resources/objectives/feedback.ts +29 -11
- package/src/resources/objectives/index.ts +1 -0
- package/src/resources/objectives/objectives.ts +100 -50
- package/src/resources/objectives/tasks.ts +16 -5
- package/src/resources/objectives/tool-calls.ts +33 -20
- 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 +88 -50
- package/src/resources/tool-sets/tools.ts +75 -42
- package/src/resources/uploads.ts +25 -20
- package/src/resources/workspace-secrets.ts +60 -19
- package/src/resources/workspaces.ts +2 -6
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB
|
|
1
|
+
{"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -4,12 +4,8 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
4
4
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
|
|
7
|
+
* Manage workspaces within an account. Workspaces provide organizational
|
|
8
|
+
* grouping and isolation for resources such as agents, tools, and API keys.
|
|
13
9
|
*/
|
|
14
10
|
export declare class Workspaces extends APIResource {
|
|
15
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/workspaces.js
CHANGED
|
@@ -5,12 +5,8 @@ exports.Workspaces = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
11
|
-
*
|
|
12
|
-
* Authentication: Bearer token (JWT)
|
|
13
|
-
* Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
|
|
8
|
+
* Manage workspaces within an account. Workspaces provide organizational
|
|
9
|
+
* grouping and isolation for resources such as agents, tools, and API keys.
|
|
14
10
|
*/
|
|
15
11
|
class Workspaces extends resource_1.APIResource {
|
|
16
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgG;AAGhG
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgG;AAGhG;;;GAGG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,6BAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAlBD,gCAkBC"}
|
package/resources/workspaces.mjs
CHANGED
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { CursorPagination } from "../core/pagination.mjs";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
8
|
-
*
|
|
9
|
-
* Authentication: Bearer token (JWT)
|
|
10
|
-
* Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
|
|
5
|
+
* Manage workspaces within an account. Workspaces provide organizational
|
|
6
|
+
* grouping and isolation for resources such as agents, tools, and API keys.
|
|
11
7
|
*/
|
|
12
8
|
export class Workspaces extends APIResource {
|
|
13
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,gBAAgB,EAA4C;AAGrE
|
|
1
|
+
{"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,gBAAgB,EAA4C;AAGrE;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,gBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
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,
|
|
@@ -922,98 +937,59 @@ export class Cadenya {
|
|
|
922
937
|
static toFile = Uploads.toFile;
|
|
923
938
|
|
|
924
939
|
/**
|
|
925
|
-
*
|
|
926
|
-
*
|
|
927
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
928
|
-
*
|
|
929
|
-
* Authentication: Bearer token (JWT)
|
|
930
|
-
* Scope: Account-level operations
|
|
940
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
941
|
+
* unit and contain one or more workspaces.
|
|
931
942
|
*/
|
|
932
943
|
account: API.AccountResource = new API.AccountResource(this);
|
|
933
944
|
/**
|
|
934
|
-
*
|
|
935
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
936
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
937
|
-
*
|
|
938
|
-
* Authentication: Bearer token (JWT)
|
|
939
|
-
* Scope: Workspace-level operations
|
|
945
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
940
946
|
*/
|
|
941
947
|
agents: API.Agents = new API.Agents(this);
|
|
942
948
|
objectives: API.Objectives = new API.Objectives(this);
|
|
943
949
|
/**
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
949
|
-
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
950
|
-
* cannot be mutated through this API.
|
|
951
|
-
*
|
|
952
|
-
* Authentication: Bearer token (JWT)
|
|
953
|
-
* Scope: Workspace-level operations
|
|
950
|
+
* Manage memory layers and their entries. Layers are named containers that can
|
|
951
|
+
* be composed into an objective's memory stack; entries are the keyed values
|
|
952
|
+
* within a layer. System-managed layers (e.g., episodic layers created by the
|
|
953
|
+
* runtime) cannot be mutated through this API.
|
|
954
954
|
*/
|
|
955
955
|
memoryLayers: API.MemoryLayers = new API.MemoryLayers(this);
|
|
956
956
|
/**
|
|
957
|
-
*
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
* MemoryEntry).
|
|
961
|
-
*
|
|
962
|
-
* Authentication: Bearer token (JWT)
|
|
963
|
-
* Scope: Workspace-level operations
|
|
957
|
+
* Issue short-lived presigned URLs for direct client-to-object-storage
|
|
958
|
+
* uploads. Created uploads can be referenced by id when creating or updating
|
|
959
|
+
* resources that accept binary content (e.g., MemoryEntry).
|
|
964
960
|
*/
|
|
965
961
|
uploads: API.Uploads = new API.Uploads(this);
|
|
966
962
|
/**
|
|
967
|
-
*
|
|
968
|
-
*
|
|
969
|
-
*
|
|
970
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
971
|
-
*
|
|
972
|
-
* Authentication: Bearer token (JWT)
|
|
973
|
-
* Scope: Workspace-level operations
|
|
963
|
+
* Manage LLM models available to a workspace. Models represent provider and
|
|
964
|
+
* family pairs (e.g., "anthropic/claude-sonnet-4.6"). Workspaces are seeded
|
|
965
|
+
* with the supported models and you can enable or disable each one.
|
|
974
966
|
*/
|
|
975
967
|
models: API.Models = new API.Models(this);
|
|
976
968
|
search: API.Search = new API.Search(this);
|
|
977
969
|
/**
|
|
978
|
-
*
|
|
979
|
-
*
|
|
980
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
981
|
-
*
|
|
982
|
-
* Note: When a ToolSet has managed=true, only API Key actors can modify its tools.
|
|
983
|
-
* Profile actors (humans) are restricted from modifying managed tool sets.
|
|
970
|
+
* Manage tool sets and the tools they contain. Tool sets group related tools,
|
|
971
|
+
* and tools define specific capabilities available to agents.
|
|
984
972
|
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
973
|
+
* When a tool set is managed, only API key actors can modify its tools; human
|
|
974
|
+
* (profile) actors cannot.
|
|
987
975
|
*/
|
|
988
976
|
toolSets: API.ToolSets = new API.ToolSets(this);
|
|
989
977
|
/**
|
|
990
|
-
*
|
|
991
|
-
*
|
|
992
|
-
*
|
|
993
|
-
* Authentication: Bearer token (JWT)
|
|
994
|
-
* Scope: Workspace-level operations
|
|
978
|
+
* Issue, rotate, and revoke API keys for a workspace. Each API key belongs to
|
|
979
|
+
* exactly one workspace, ensuring isolation between environments.
|
|
995
980
|
*/
|
|
996
981
|
apiKeys: API.APIKeys = new API.APIKeys(this);
|
|
997
982
|
workspaceSecrets: API.WorkspaceSecrets = new API.WorkspaceSecrets(this);
|
|
998
983
|
/**
|
|
999
|
-
*
|
|
1000
|
-
*
|
|
1001
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
1002
|
-
*
|
|
1003
|
-
* Authentication: Bearer token (JWT)
|
|
1004
|
-
* Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
|
|
984
|
+
* Manage workspaces within an account. Workspaces provide organizational
|
|
985
|
+
* grouping and isolation for resources such as agents, tools, and API keys.
|
|
1005
986
|
*/
|
|
1006
987
|
workspaces: API.Workspaces = new API.Workspaces(this);
|
|
1007
988
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
1008
989
|
/**
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1012
|
-
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
1013
|
-
* for the full design.
|
|
1014
|
-
*
|
|
1015
|
-
* Authentication: Bearer token (JWT)
|
|
1016
|
-
* Scope: Workspace-level operations
|
|
990
|
+
* Apply a declarative bundle of workspace resources — tool sets, memory
|
|
991
|
+
* layers, agents, variations, assignments, and schedules — in a single
|
|
992
|
+
* asynchronous operation.
|
|
1017
993
|
*/
|
|
1018
994
|
bulkWorkspaceResources: API.BulkWorkspaceResources = new API.BulkWorkspaceResources(this);
|
|
1019
995
|
}
|
|
@@ -1058,8 +1034,10 @@ export declare namespace Cadenya {
|
|
|
1058
1034
|
type Page as Page,
|
|
1059
1035
|
type AgentsCursorPagination as AgentsCursorPagination,
|
|
1060
1036
|
type AgentCreateParams as AgentCreateParams,
|
|
1037
|
+
type AgentRetrieveParams as AgentRetrieveParams,
|
|
1061
1038
|
type AgentUpdateParams as AgentUpdateParams,
|
|
1062
1039
|
type AgentListParams as AgentListParams,
|
|
1040
|
+
type AgentDeleteParams as AgentDeleteParams,
|
|
1063
1041
|
};
|
|
1064
1042
|
|
|
1065
1043
|
export {
|
|
@@ -1096,6 +1074,7 @@ export declare namespace Cadenya {
|
|
|
1096
1074
|
type ObjectiveContextWindowsCursorPagination as ObjectiveContextWindowsCursorPagination,
|
|
1097
1075
|
type ObjectiveListEventsResponsesCursorPagination as ObjectiveListEventsResponsesCursorPagination,
|
|
1098
1076
|
type ObjectiveCreateParams as ObjectiveCreateParams,
|
|
1077
|
+
type ObjectiveRetrieveParams as ObjectiveRetrieveParams,
|
|
1099
1078
|
type ObjectiveListParams as ObjectiveListParams,
|
|
1100
1079
|
type ObjectiveCancelParams as ObjectiveCancelParams,
|
|
1101
1080
|
type ObjectiveCompactParams as ObjectiveCompactParams,
|
|
@@ -1111,8 +1090,10 @@ export declare namespace Cadenya {
|
|
|
1111
1090
|
type MemoryLayerSpec as MemoryLayerSpec,
|
|
1112
1091
|
type MemoryLayersCursorPagination as MemoryLayersCursorPagination,
|
|
1113
1092
|
type MemoryLayerCreateParams as MemoryLayerCreateParams,
|
|
1093
|
+
type MemoryLayerRetrieveParams as MemoryLayerRetrieveParams,
|
|
1114
1094
|
type MemoryLayerUpdateParams as MemoryLayerUpdateParams,
|
|
1115
1095
|
type MemoryLayerListParams as MemoryLayerListParams,
|
|
1096
|
+
type MemoryLayerDeleteParams as MemoryLayerDeleteParams,
|
|
1116
1097
|
};
|
|
1117
1098
|
|
|
1118
1099
|
export {
|
|
@@ -1121,6 +1102,7 @@ export declare namespace Cadenya {
|
|
|
1121
1102
|
type UploadInfo as UploadInfo,
|
|
1122
1103
|
type UploadSpec as UploadSpec,
|
|
1123
1104
|
type UploadCreateParams as UploadCreateParams,
|
|
1105
|
+
type UploadRetrieveParams as UploadRetrieveParams,
|
|
1124
1106
|
};
|
|
1125
1107
|
|
|
1126
1108
|
export {
|
|
@@ -1128,6 +1110,7 @@ export declare namespace Cadenya {
|
|
|
1128
1110
|
type Model as Model,
|
|
1129
1111
|
type ModelSpec as ModelSpec,
|
|
1130
1112
|
type ModelsCursorPagination as ModelsCursorPagination,
|
|
1113
|
+
type ModelRetrieveParams as ModelRetrieveParams,
|
|
1131
1114
|
type ModelListParams as ModelListParams,
|
|
1132
1115
|
type ModelSetStatusParams as ModelSetStatusParams,
|
|
1133
1116
|
};
|
|
@@ -1155,8 +1138,10 @@ export declare namespace Cadenya {
|
|
|
1155
1138
|
type ToolSetsCursorPagination as ToolSetsCursorPagination,
|
|
1156
1139
|
type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
|
|
1157
1140
|
type ToolSetCreateParams as ToolSetCreateParams,
|
|
1141
|
+
type ToolSetRetrieveParams as ToolSetRetrieveParams,
|
|
1158
1142
|
type ToolSetUpdateParams as ToolSetUpdateParams,
|
|
1159
1143
|
type ToolSetListParams as ToolSetListParams,
|
|
1144
|
+
type ToolSetDeleteParams as ToolSetDeleteParams,
|
|
1160
1145
|
type ToolSetListEventsParams as ToolSetListEventsParams,
|
|
1161
1146
|
};
|
|
1162
1147
|
|
|
@@ -1167,8 +1152,11 @@ export declare namespace Cadenya {
|
|
|
1167
1152
|
type APIKeySpec as APIKeySpec,
|
|
1168
1153
|
type APIKeysCursorPagination as APIKeysCursorPagination,
|
|
1169
1154
|
type APIKeyCreateParams as APIKeyCreateParams,
|
|
1155
|
+
type APIKeyRetrieveParams as APIKeyRetrieveParams,
|
|
1170
1156
|
type APIKeyUpdateParams as APIKeyUpdateParams,
|
|
1171
1157
|
type APIKeyListParams as APIKeyListParams,
|
|
1158
|
+
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
1159
|
+
type APIKeyRotateParams as APIKeyRotateParams,
|
|
1172
1160
|
};
|
|
1173
1161
|
|
|
1174
1162
|
export {
|
|
@@ -1178,8 +1166,10 @@ export declare namespace Cadenya {
|
|
|
1178
1166
|
type WorkspaceSecretSpec as WorkspaceSecretSpec,
|
|
1179
1167
|
type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination,
|
|
1180
1168
|
type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams,
|
|
1169
|
+
type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams,
|
|
1181
1170
|
type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams,
|
|
1182
1171
|
type WorkspaceSecretListParams as WorkspaceSecretListParams,
|
|
1172
|
+
type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams,
|
|
1183
1173
|
};
|
|
1184
1174
|
|
|
1185
1175
|
export {
|
|
@@ -1212,6 +1202,7 @@ export declare namespace Cadenya {
|
|
|
1212
1202
|
type VariationAssignmentEntry as VariationAssignmentEntry,
|
|
1213
1203
|
type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
|
|
1214
1204
|
type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
|
|
1205
|
+
type BulkWorkspaceResourceRetrieveParams as BulkWorkspaceResourceRetrieveParams,
|
|
1215
1206
|
type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
|
|
1216
1207
|
type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
|
|
1217
1208
|
};
|
package/src/resources/account.ts
CHANGED
|
@@ -7,12 +7,8 @@ import { APIPromise } from '../core/api-promise';
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
13
|
-
*
|
|
14
|
-
* Authentication: Bearer token (JWT)
|
|
15
|
-
* Scope: Account-level operations
|
|
10
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
11
|
+
* unit and contain one or more workspaces.
|
|
16
12
|
*/
|
|
17
13
|
export class AccountResource extends APIResource {
|
|
18
14
|
/**
|
|
@@ -32,11 +28,12 @@ export class AccountResource extends APIResource {
|
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
/**
|
|
35
|
-
*
|
|
31
|
+
* An account, the top-level organizational unit. Contains workspaces and
|
|
32
|
+
* account-wide settings such as the webhook signing secret.
|
|
36
33
|
*/
|
|
37
34
|
export interface Account {
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
36
|
+
* Server-populated information about the account.
|
|
40
37
|
*/
|
|
41
38
|
info: Account.Info;
|
|
42
39
|
|
|
@@ -47,14 +44,14 @@ export interface Account {
|
|
|
47
44
|
metadata: Shared.AccountResourceMetadata;
|
|
48
45
|
|
|
49
46
|
/**
|
|
50
|
-
*
|
|
47
|
+
* Configuration for an account.
|
|
51
48
|
*/
|
|
52
49
|
spec: AccountSpec;
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
export namespace Account {
|
|
56
53
|
/**
|
|
57
|
-
*
|
|
54
|
+
* Server-populated information about the account.
|
|
58
55
|
*/
|
|
59
56
|
export interface Info {
|
|
60
57
|
/**
|
|
@@ -67,7 +64,7 @@ export namespace Account {
|
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
/**
|
|
70
|
-
*
|
|
67
|
+
* Configuration for an account.
|
|
71
68
|
*/
|
|
72
69
|
export interface AccountSpec {
|
|
73
70
|
billingEmail?: string;
|
|
@@ -80,9 +77,9 @@ export interface AccountSpec {
|
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
/**
|
|
83
|
-
*
|
|
84
|
-
* account-scoped
|
|
85
|
-
*
|
|
80
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
81
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
82
|
+
* workspaces.
|
|
86
83
|
*/
|
|
87
84
|
export interface Profile {
|
|
88
85
|
/**
|
|
@@ -92,35 +89,34 @@ export interface Profile {
|
|
|
92
89
|
metadata: Shared.AccountResourceMetadata;
|
|
93
90
|
|
|
94
91
|
/**
|
|
95
|
-
*
|
|
92
|
+
* Configuration for a profile.
|
|
96
93
|
*/
|
|
97
94
|
spec: ProfileSpec;
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
/**
|
|
101
|
-
*
|
|
98
|
+
* Configuration for a profile.
|
|
102
99
|
*/
|
|
103
100
|
export interface ProfileSpec {
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
106
|
-
* the deal.
|
|
102
|
+
* Whether this profile represents a human user, an API key, or a system principal.
|
|
107
103
|
*/
|
|
108
104
|
type: 'PROFILE_TYPE_USER' | 'PROFILE_TYPE_API_KEY' | 'PROFILE_TYPE_SYSTEM';
|
|
109
105
|
|
|
110
106
|
/**
|
|
111
|
-
* Email address of the
|
|
107
|
+
* Email address of the profile. Required and unique within an account for user
|
|
108
|
+
* profiles.
|
|
112
109
|
*/
|
|
113
110
|
email?: string;
|
|
114
111
|
|
|
115
112
|
/**
|
|
116
|
-
* Display name
|
|
113
|
+
* Display name (e.g., "Bobby Tables").
|
|
117
114
|
*/
|
|
118
115
|
name?: string;
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
/**
|
|
122
|
-
*
|
|
123
|
-
* RotateWebhookEventsHmacSecretRequest.
|
|
119
|
+
* Response containing the newly generated webhook signing secret.
|
|
124
120
|
*/
|
|
125
121
|
export interface RotateWebhookSigningKeyResponse {
|
|
126
122
|
webhookEventsHmacSecret?: string;
|
|
@@ -63,12 +63,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
63
63
|
import { path } from '../../internal/utils/path';
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
68
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
69
|
-
*
|
|
70
|
-
* Authentication: Bearer token (JWT)
|
|
71
|
-
* Scope: Workspace-level operations
|
|
66
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
72
67
|
*/
|
|
73
68
|
export class Agents extends APIResource {
|
|
74
69
|
feedback: FeedbackAPI.Feedback = new FeedbackAPI.Feedback(this._client);
|
|
@@ -81,39 +76,46 @@ export class Agents extends APIResource {
|
|
|
81
76
|
/**
|
|
82
77
|
* Creates a new agent in the workspace
|
|
83
78
|
*/
|
|
84
|
-
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
|
|
85
|
-
return this._client.post(
|
|
79
|
+
create(workspaceID: string, body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
|
|
80
|
+
return this._client.post(path`/v1/workspaces/${workspaceID}/agents`, { body, ...options });
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
/**
|
|
89
84
|
* Retrieves an agent by ID from the workspace
|
|
90
85
|
*/
|
|
91
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Agent> {
|
|
92
|
-
|
|
86
|
+
retrieve(id: string, params: AgentRetrieveParams, options?: RequestOptions): APIPromise<Agent> {
|
|
87
|
+
const { workspaceId } = params;
|
|
88
|
+
return this._client.get(path`/v1/workspaces/${workspaceId}/agents/${id}`, options);
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
/**
|
|
96
92
|
* Updates an agent in the workspace
|
|
97
93
|
*/
|
|
98
|
-
update(id: string,
|
|
99
|
-
|
|
94
|
+
update(id: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent> {
|
|
95
|
+
const { workspaceId, ...body } = params;
|
|
96
|
+
return this._client.patch(path`/v1/workspaces/${workspaceId}/agents/${id}`, { body, ...options });
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
/**
|
|
103
100
|
* Lists all agents in the workspace
|
|
104
101
|
*/
|
|
105
102
|
list(
|
|
103
|
+
workspaceID: string,
|
|
106
104
|
query: AgentListParams | null | undefined = {},
|
|
107
105
|
options?: RequestOptions,
|
|
108
106
|
): PagePromise<AgentsCursorPagination, Agent> {
|
|
109
|
-
return this._client.getAPIList(
|
|
107
|
+
return this._client.getAPIList(path`/v1/workspaces/${workspaceID}/agents`, CursorPagination<Agent>, {
|
|
108
|
+
query,
|
|
109
|
+
...options,
|
|
110
|
+
});
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* Deletes an agent from the workspace
|
|
114
115
|
*/
|
|
115
|
-
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
116
|
-
|
|
116
|
+
delete(id: string, params: AgentDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
117
|
+
const { workspaceId } = params;
|
|
118
|
+
return this._client.delete(path`/v1/workspaces/${workspaceId}/agents/${id}`, {
|
|
117
119
|
...options,
|
|
118
120
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
119
121
|
});
|
|
@@ -149,9 +151,9 @@ export interface Agent {
|
|
|
149
151
|
*/
|
|
150
152
|
export interface AgentInfo {
|
|
151
153
|
/**
|
|
152
|
-
*
|
|
153
|
-
* account-scoped
|
|
154
|
-
*
|
|
154
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
155
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
156
|
+
* workspaces.
|
|
155
157
|
*/
|
|
156
158
|
createdBy?: AccountAPI.Profile;
|
|
157
159
|
|
|
@@ -244,21 +246,34 @@ export namespace AgentCreateParams {
|
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
|
|
249
|
+
export interface AgentRetrieveParams {
|
|
250
|
+
/**
|
|
251
|
+
* Workspace ID.
|
|
252
|
+
*/
|
|
253
|
+
workspaceId: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
247
256
|
export interface AgentUpdateParams {
|
|
248
257
|
/**
|
|
249
|
-
*
|
|
250
|
-
|
|
251
|
-
|
|
258
|
+
* Path param: Workspace ID.
|
|
259
|
+
*/
|
|
260
|
+
workspaceId: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
264
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
265
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
266
|
+
* server.
|
|
252
267
|
*/
|
|
253
268
|
metadata?: Shared.UpdateResourceMetadata;
|
|
254
269
|
|
|
255
270
|
/**
|
|
256
|
-
* Agent specification (user-provided configuration)
|
|
271
|
+
* Body param: Agent specification (user-provided configuration)
|
|
257
272
|
*/
|
|
258
273
|
spec?: AgentSpec;
|
|
259
274
|
|
|
260
275
|
/**
|
|
261
|
-
* Fields to update
|
|
276
|
+
* Body param: Fields to update
|
|
262
277
|
*/
|
|
263
278
|
updateMask?: string;
|
|
264
279
|
}
|
|
@@ -270,7 +285,8 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
270
285
|
bundleKey?: string;
|
|
271
286
|
|
|
272
287
|
/**
|
|
273
|
-
* When
|
|
288
|
+
* When true, the `info` field on each returned agent is populated. Requests with
|
|
289
|
+
* this flag count more against your rate limit.
|
|
274
290
|
*/
|
|
275
291
|
includeInfo?: boolean;
|
|
276
292
|
|
|
@@ -307,6 +323,13 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
307
323
|
| 'VARIATION_SELECTION_MODE_WEIGHTED';
|
|
308
324
|
}
|
|
309
325
|
|
|
326
|
+
export interface AgentDeleteParams {
|
|
327
|
+
/**
|
|
328
|
+
* Workspace ID.
|
|
329
|
+
*/
|
|
330
|
+
workspaceId: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
310
333
|
Agents.Feedback = Feedback;
|
|
311
334
|
Agents.WebhookDeliveries = WebhookDeliveries;
|
|
312
335
|
Agents.Variations = Variations;
|
|
@@ -320,8 +343,10 @@ export declare namespace Agents {
|
|
|
320
343
|
type Page as Page,
|
|
321
344
|
type AgentsCursorPagination as AgentsCursorPagination,
|
|
322
345
|
type AgentCreateParams as AgentCreateParams,
|
|
346
|
+
type AgentRetrieveParams as AgentRetrieveParams,
|
|
323
347
|
type AgentUpdateParams as AgentUpdateParams,
|
|
324
348
|
type AgentListParams as AgentListParams,
|
|
349
|
+
type AgentDeleteParams as AgentDeleteParams,
|
|
325
350
|
};
|
|
326
351
|
|
|
327
352
|
export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
|