@cadenya/cadenya 0.81.0 → 0.84.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 +39 -0
- package/README.md +8 -17
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +3 -1
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +3 -1
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +142 -0
- package/resources/ai-provider-keys.d.mts.map +1 -0
- package/resources/ai-provider-keys.d.ts +142 -0
- package/resources/ai-provider-keys.d.ts.map +1 -0
- package/resources/ai-provider-keys.js +51 -0
- package/resources/ai-provider-keys.js.map +1 -0
- package/resources/ai-provider-keys.mjs +47 -0
- package/resources/ai-provider-keys.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +63 -1
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +63 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -0
- package/resources/models.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 +149 -98
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +149 -98
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +3 -3
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +3 -3
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +1 -1
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +1 -1
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +2 -2
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +2 -2
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +2 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +2 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js +3 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs +1 -0
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +32 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -0
- package/resources/workspace-admin/profiles.d.ts +32 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -0
- package/resources/workspace-admin/profiles.js +28 -0
- package/resources/workspace-admin/profiles.js.map +1 -0
- package/resources/workspace-admin/profiles.mjs +24 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -0
- package/resources/workspace-admin/workspace-admin.d.mts +47 -1
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +47 -1
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +10 -0
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +10 -0
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/src/client.ts +35 -6
- package/src/resources/account.ts +4 -1
- package/src/resources/ai-provider-keys.ts +216 -0
- package/src/resources/index.ts +17 -3
- package/src/resources/models.ts +80 -0
- package/src/resources/objectives/index.ts +2 -3
- package/src/resources/objectives/objectives.ts +171 -120
- package/src/resources/objectives/tool-calls.ts +11 -11
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/profiles.ts +45 -0
- package/src/resources/workspace-admin/workspace-admin.ts +60 -0
- 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":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,qBAAkB;AAC1G,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,GACtC,6BAA0B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,qBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,GACtC,6BAA0B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkspaceAdmin = exports.Members = void 0;
|
|
4
|
+
exports.WorkspaceAdmin = exports.Profiles = exports.Members = void 0;
|
|
5
5
|
var members_1 = require("./members.js");
|
|
6
6
|
Object.defineProperty(exports, "Members", { enumerable: true, get: function () { return members_1.Members; } });
|
|
7
|
+
var profiles_1 = require("./profiles.js");
|
|
8
|
+
Object.defineProperty(exports, "Profiles", { enumerable: true, get: function () { return profiles_1.Profiles; } });
|
|
7
9
|
var workspace_admin_1 = require("./workspace-admin.js");
|
|
8
10
|
Object.defineProperty(exports, "WorkspaceAdmin", { enumerable: true, get: function () { return workspace_admin_1.WorkspaceAdmin; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,0CAA8D;AAArD,oGAAA,QAAQ,OAAA;AACjB,wDAO2B;AANzB,iHAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAwE,sBAAkB;AAC1G,OAAO,EACL,cAAc,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAwE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAA0B,uBAAmB;AAC9D,OAAO,EACL,cAAc,GAMf,8BAA0B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AccountAPI from "../account.mjs";
|
|
3
|
+
import { ProfilesCursorPagination } from "../account.mjs";
|
|
4
|
+
import { type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Administer workspaces across the account: create and archive workspaces and
|
|
8
|
+
* manage their membership. These operations are account-scoped and require the
|
|
9
|
+
* admin role (a token whose profile holds the WorkOS admin role); they live
|
|
10
|
+
* under /v1/account/workspaces rather than the workspace-scoped /v1/workspaces
|
|
11
|
+
* tree so an admin can manage any workspace in the account, including ones they
|
|
12
|
+
* are not themselves a member of.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Profiles extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Searches the account's profiles for a member picker, with free-form name/email
|
|
17
|
+
* search and an optional type filter. Account-scoped; admin only.
|
|
18
|
+
*/
|
|
19
|
+
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): PagePromise<ProfilesCursorPagination, AccountAPI.Profile>;
|
|
20
|
+
}
|
|
21
|
+
export interface ProfileListParams extends CursorPaginationParams {
|
|
22
|
+
/**
|
|
23
|
+
* Free-form search over profile name and email. Case-insensitive substring match;
|
|
24
|
+
* empty returns all profiles.
|
|
25
|
+
*/
|
|
26
|
+
query?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace Profiles {
|
|
29
|
+
export { type ProfileListParams as ProfileListParams };
|
|
30
|
+
}
|
|
31
|
+
export { type ProfilesCursorPagination };
|
|
32
|
+
//# sourceMappingURL=profiles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,uBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,UAAU,CAAC,OAAO,CAAC;CAM7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AccountAPI from "../account.js";
|
|
3
|
+
import { ProfilesCursorPagination } from "../account.js";
|
|
4
|
+
import { type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Administer workspaces across the account: create and archive workspaces and
|
|
8
|
+
* manage their membership. These operations are account-scoped and require the
|
|
9
|
+
* admin role (a token whose profile holds the WorkOS admin role); they live
|
|
10
|
+
* under /v1/account/workspaces rather than the workspace-scoped /v1/workspaces
|
|
11
|
+
* tree so an admin can manage any workspace in the account, including ones they
|
|
12
|
+
* are not themselves a member of.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Profiles extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Searches the account's profiles for a member picker, with free-form name/email
|
|
17
|
+
* search and an optional type filter. Account-scoped; admin only.
|
|
18
|
+
*/
|
|
19
|
+
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): PagePromise<ProfilesCursorPagination, AccountAPI.Profile>;
|
|
20
|
+
}
|
|
21
|
+
export interface ProfileListParams extends CursorPaginationParams {
|
|
22
|
+
/**
|
|
23
|
+
* Free-form search over profile name and email. Case-insensitive substring match;
|
|
24
|
+
* empty returns all profiles.
|
|
25
|
+
*/
|
|
26
|
+
query?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace Profiles {
|
|
29
|
+
export { type ProfileListParams as ProfileListParams };
|
|
30
|
+
}
|
|
31
|
+
export { type ProfilesCursorPagination };
|
|
32
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,sBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,UAAU,CAAC,OAAO,CAAC;CAM7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Profiles = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
/**
|
|
8
|
+
* Administer workspaces across the account: create and archive workspaces and
|
|
9
|
+
* manage their membership. These operations are account-scoped and require the
|
|
10
|
+
* admin role (a token whose profile holds the WorkOS admin role); they live
|
|
11
|
+
* under /v1/account/workspaces rather than the workspace-scoped /v1/workspaces
|
|
12
|
+
* tree so an admin can manage any workspace in the account, including ones they
|
|
13
|
+
* are not themselves a member of.
|
|
14
|
+
*/
|
|
15
|
+
class Profiles extends resource_1.APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Searches the account's profiles for a member picker, with free-form name/email
|
|
18
|
+
* search and an optional type filter. Account-scoped; admin only.
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.getAPIList('/v1/account/profiles', (pagination_1.CursorPagination), {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Profiles = Profiles;
|
|
28
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAmG;AAGnG;;;;;;;GAOG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,6BAAoC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAdD,4BAcC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPagination } from "../../core/pagination.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Administer workspaces across the account: create and archive workspaces and
|
|
6
|
+
* manage their membership. These operations are account-scoped and require the
|
|
7
|
+
* admin role (a token whose profile holds the WorkOS admin role); they live
|
|
8
|
+
* under /v1/account/workspaces rather than the workspace-scoped /v1/workspaces
|
|
9
|
+
* tree so an admin can manage any workspace in the account, including ones they
|
|
10
|
+
* are not themselves a member of.
|
|
11
|
+
*/
|
|
12
|
+
export class Profiles extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Searches the account's profiles for a member picker, with free-form name/email
|
|
15
|
+
* search and an optional type filter. Account-scoped; admin only.
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.getAPIList('/v1/account/profiles', (CursorPagination), {
|
|
19
|
+
query,
|
|
20
|
+
...options,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=profiles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AAGnG;;;;;;;GAOG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,gBAAoC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -3,6 +3,8 @@ import * as WorkspacesAPI from "../workspaces.mjs";
|
|
|
3
3
|
import { WorkspacesCursorPagination } from "../workspaces.mjs";
|
|
4
4
|
import * as MembersAPI from "./members.mjs";
|
|
5
5
|
import { MemberAddParams, MemberListParams, MemberRemoveParams, Members } from "./members.mjs";
|
|
6
|
+
import * as ProfilesAPI from "./profiles.mjs";
|
|
7
|
+
import { ProfileListParams, Profiles } from "./profiles.mjs";
|
|
6
8
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
9
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
10
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -16,6 +18,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
16
18
|
*/
|
|
17
19
|
export declare class WorkspaceAdmin extends APIResource {
|
|
18
20
|
members: MembersAPI.Members;
|
|
21
|
+
profiles: ProfilesAPI.Profiles;
|
|
19
22
|
/**
|
|
20
23
|
* Creates a new workspace in the account. Admin only.
|
|
21
24
|
*/
|
|
@@ -24,6 +27,10 @@ export declare class WorkspaceAdmin extends APIResource {
|
|
|
24
27
|
* Retrieves a workspace in the account by ID. Admin only.
|
|
25
28
|
*/
|
|
26
29
|
retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspacesAPI.Workspace>;
|
|
30
|
+
/**
|
|
31
|
+
* Updates a workspace's metadata (e.g. name) and spec. Admin only.
|
|
32
|
+
*/
|
|
33
|
+
update(workspaceID: string, body: WorkspaceAdminUpdateParams, options?: RequestOptions): APIPromise<WorkspacesAPI.Workspace>;
|
|
27
34
|
/**
|
|
28
35
|
* Lists every workspace in the account, optionally including archived ones. Admin
|
|
29
36
|
* only.
|
|
@@ -98,6 +105,44 @@ export declare namespace WorkspaceAdminCreateParams {
|
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
}
|
|
108
|
+
export interface WorkspaceAdminUpdateParams {
|
|
109
|
+
/**
|
|
110
|
+
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
111
|
+
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
112
|
+
* excluded since they are set by the server.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: WorkspaceAdminUpdateParams.Metadata;
|
|
115
|
+
spec?: WorkspacesAPI.WorkspaceSpec;
|
|
116
|
+
/**
|
|
117
|
+
* Fields to update.
|
|
118
|
+
*/
|
|
119
|
+
updateMask?: string;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace WorkspaceAdminUpdateParams {
|
|
122
|
+
/**
|
|
123
|
+
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
124
|
+
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
125
|
+
* excluded since they are set by the server.
|
|
126
|
+
*/
|
|
127
|
+
interface Metadata {
|
|
128
|
+
/**
|
|
129
|
+
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
130
|
+
* Workspace")
|
|
131
|
+
*/
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
135
|
+
*/
|
|
136
|
+
externalId?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
139
|
+
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
140
|
+
*/
|
|
141
|
+
labels?: {
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
101
146
|
export interface WorkspaceAdminListParams extends CursorPaginationParams {
|
|
102
147
|
/**
|
|
103
148
|
* When true, archived workspaces are included in the results. Defaults to false
|
|
@@ -106,8 +151,9 @@ export interface WorkspaceAdminListParams extends CursorPaginationParams {
|
|
|
106
151
|
includeArchived?: boolean;
|
|
107
152
|
}
|
|
108
153
|
export declare namespace WorkspaceAdmin {
|
|
109
|
-
export { type WorkspaceMember as WorkspaceMember, type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams, type WorkspaceAdminListParams as WorkspaceAdminListParams, };
|
|
154
|
+
export { type WorkspaceMember as WorkspaceMember, type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams, type WorkspaceAdminUpdateParams as WorkspaceAdminUpdateParams, type WorkspaceAdminListParams as WorkspaceAdminListParams, };
|
|
110
155
|
export { Members as Members, type MemberListParams as MemberListParams, type MemberAddParams as MemberAddParams, type MemberRemoveParams as MemberRemoveParams, };
|
|
156
|
+
export { Profiles as Profiles, type ProfileListParams as ProfileListParams };
|
|
111
157
|
}
|
|
112
158
|
export { type WorkspacesCursorPagination };
|
|
113
159
|
//# sourceMappingURL=workspace-admin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-admin.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,0BAAsB;AAC/C,OAAO,EAAE,0BAA0B,EAAE,0BAAsB;AAC3D,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,OAAO,EAAE,sBAAkB;AAC3F,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;GAOG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;
|
|
1
|
+
{"version":3,"file":"workspace-admin.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,E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,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAKD,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC9E;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
|
@@ -3,6 +3,8 @@ import * as WorkspacesAPI from "../workspaces.js";
|
|
|
3
3
|
import { WorkspacesCursorPagination } from "../workspaces.js";
|
|
4
4
|
import * as MembersAPI from "./members.js";
|
|
5
5
|
import { MemberAddParams, MemberListParams, MemberRemoveParams, Members } from "./members.js";
|
|
6
|
+
import * as ProfilesAPI from "./profiles.js";
|
|
7
|
+
import { ProfileListParams, Profiles } from "./profiles.js";
|
|
6
8
|
import { APIPromise } from "../../core/api-promise.js";
|
|
7
9
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
8
10
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
@@ -16,6 +18,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
16
18
|
*/
|
|
17
19
|
export declare class WorkspaceAdmin extends APIResource {
|
|
18
20
|
members: MembersAPI.Members;
|
|
21
|
+
profiles: ProfilesAPI.Profiles;
|
|
19
22
|
/**
|
|
20
23
|
* Creates a new workspace in the account. Admin only.
|
|
21
24
|
*/
|
|
@@ -24,6 +27,10 @@ export declare class WorkspaceAdmin extends APIResource {
|
|
|
24
27
|
* Retrieves a workspace in the account by ID. Admin only.
|
|
25
28
|
*/
|
|
26
29
|
retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspacesAPI.Workspace>;
|
|
30
|
+
/**
|
|
31
|
+
* Updates a workspace's metadata (e.g. name) and spec. Admin only.
|
|
32
|
+
*/
|
|
33
|
+
update(workspaceID: string, body: WorkspaceAdminUpdateParams, options?: RequestOptions): APIPromise<WorkspacesAPI.Workspace>;
|
|
27
34
|
/**
|
|
28
35
|
* Lists every workspace in the account, optionally including archived ones. Admin
|
|
29
36
|
* only.
|
|
@@ -98,6 +105,44 @@ export declare namespace WorkspaceAdminCreateParams {
|
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
}
|
|
108
|
+
export interface WorkspaceAdminUpdateParams {
|
|
109
|
+
/**
|
|
110
|
+
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
111
|
+
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
112
|
+
* excluded since they are set by the server.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: WorkspaceAdminUpdateParams.Metadata;
|
|
115
|
+
spec?: WorkspacesAPI.WorkspaceSpec;
|
|
116
|
+
/**
|
|
117
|
+
* Fields to update.
|
|
118
|
+
*/
|
|
119
|
+
updateMask?: string;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace WorkspaceAdminUpdateParams {
|
|
122
|
+
/**
|
|
123
|
+
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
124
|
+
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
125
|
+
* excluded since they are set by the server.
|
|
126
|
+
*/
|
|
127
|
+
interface Metadata {
|
|
128
|
+
/**
|
|
129
|
+
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
130
|
+
* Workspace")
|
|
131
|
+
*/
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
135
|
+
*/
|
|
136
|
+
externalId?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
139
|
+
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
140
|
+
*/
|
|
141
|
+
labels?: {
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
101
146
|
export interface WorkspaceAdminListParams extends CursorPaginationParams {
|
|
102
147
|
/**
|
|
103
148
|
* When true, archived workspaces are included in the results. Defaults to false
|
|
@@ -106,8 +151,9 @@ export interface WorkspaceAdminListParams extends CursorPaginationParams {
|
|
|
106
151
|
includeArchived?: boolean;
|
|
107
152
|
}
|
|
108
153
|
export declare namespace WorkspaceAdmin {
|
|
109
|
-
export { type WorkspaceMember as WorkspaceMember, type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams, type WorkspaceAdminListParams as WorkspaceAdminListParams, };
|
|
154
|
+
export { type WorkspaceMember as WorkspaceMember, type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams, type WorkspaceAdminUpdateParams as WorkspaceAdminUpdateParams, type WorkspaceAdminListParams as WorkspaceAdminListParams, };
|
|
110
155
|
export { Members as Members, type MemberListParams as MemberListParams, type MemberAddParams as MemberAddParams, type MemberRemoveParams as MemberRemoveParams, };
|
|
156
|
+
export { Profiles as Profiles, type ProfileListParams as ProfileListParams };
|
|
111
157
|
}
|
|
112
158
|
export { type WorkspacesCursorPagination };
|
|
113
159
|
//# sourceMappingURL=workspace-admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-admin.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,aAAa,yBAAsB;AAC/C,OAAO,EAAE,0BAA0B,EAAE,yBAAsB;AAC3D,OAAO,KAA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ACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,0BAA0B,CAAC,QAAQ,CAAC;IAE/C,IAAI,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;IAEnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;;OAIG;IACH,UAAiB,QAAQ;QACvB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACpC;CACF;AAED,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAKD,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC9E;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
|
@@ -6,6 +6,8 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const MembersAPI = tslib_1.__importStar(require("./members.js"));
|
|
8
8
|
const members_1 = require("./members.js");
|
|
9
|
+
const ProfilesAPI = tslib_1.__importStar(require("./profiles.js"));
|
|
10
|
+
const profiles_1 = require("./profiles.js");
|
|
9
11
|
const pagination_1 = require("../../core/pagination.js");
|
|
10
12
|
const headers_1 = require("../../internal/headers.js");
|
|
11
13
|
const path_1 = require("../../internal/utils/path.js");
|
|
@@ -21,6 +23,7 @@ class WorkspaceAdmin extends resource_1.APIResource {
|
|
|
21
23
|
constructor() {
|
|
22
24
|
super(...arguments);
|
|
23
25
|
this.members = new MembersAPI.Members(this._client);
|
|
26
|
+
this.profiles = new ProfilesAPI.Profiles(this._client);
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Creates a new workspace in the account. Admin only.
|
|
@@ -34,6 +37,12 @@ class WorkspaceAdmin extends resource_1.APIResource {
|
|
|
34
37
|
retrieve(workspaceID, options) {
|
|
35
38
|
return this._client.get((0, path_1.path) `/v1/account/workspaces/${workspaceID}`, options);
|
|
36
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Updates a workspace's metadata (e.g. name) and spec. Admin only.
|
|
42
|
+
*/
|
|
43
|
+
update(workspaceID, body, options) {
|
|
44
|
+
return this._client.patch((0, path_1.path) `/v1/account/workspaces/${workspaceID}`, { body, ...options });
|
|
45
|
+
}
|
|
37
46
|
/**
|
|
38
47
|
* Lists every workspace in the account, optionally including archived ones. Admin
|
|
39
48
|
* only.
|
|
@@ -59,4 +68,5 @@ class WorkspaceAdmin extends resource_1.APIResource {
|
|
|
59
68
|
}
|
|
60
69
|
exports.WorkspaceAdmin = WorkspaceAdmin;
|
|
61
70
|
WorkspaceAdmin.Members = members_1.Members;
|
|
71
|
+
WorkspaceAdmin.Profiles = profiles_1.Profiles;
|
|
62
72
|
//# sourceMappingURL=workspace-admin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-admin.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,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;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,WAAmB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,0BAA0B,WAAW,EAAE,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvDD,wCAuDC;AA0HD,cAAc,CAAC,OAAO,GAAG,iBAAO,CAAC;AACjC,cAAc,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as MembersAPI from "./members.mjs";
|
|
4
4
|
import { Members } from "./members.mjs";
|
|
5
|
+
import * as ProfilesAPI from "./profiles.mjs";
|
|
6
|
+
import { Profiles } from "./profiles.mjs";
|
|
5
7
|
import { CursorPagination } from "../../core/pagination.mjs";
|
|
6
8
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
7
9
|
import { path } from "../../internal/utils/path.mjs";
|
|
@@ -17,6 +19,7 @@ export class WorkspaceAdmin extends APIResource {
|
|
|
17
19
|
constructor() {
|
|
18
20
|
super(...arguments);
|
|
19
21
|
this.members = new MembersAPI.Members(this._client);
|
|
22
|
+
this.profiles = new ProfilesAPI.Profiles(this._client);
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Creates a new workspace in the account. Admin only.
|
|
@@ -30,6 +33,12 @@ export class WorkspaceAdmin extends APIResource {
|
|
|
30
33
|
retrieve(workspaceID, options) {
|
|
31
34
|
return this._client.get(path `/v1/account/workspaces/${workspaceID}`, options);
|
|
32
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Updates a workspace's metadata (e.g. name) and spec. Admin only.
|
|
38
|
+
*/
|
|
39
|
+
update(workspaceID, body, options) {
|
|
40
|
+
return this._client.patch(path `/v1/account/workspaces/${workspaceID}`, { body, ...options });
|
|
41
|
+
}
|
|
33
42
|
/**
|
|
34
43
|
* Lists every workspace in the account, optionally including archived ones. Admin
|
|
35
44
|
* only.
|
|
@@ -54,4 +63,5 @@ export class WorkspaceAdmin extends APIResource {
|
|
|
54
63
|
}
|
|
55
64
|
}
|
|
56
65
|
WorkspaceAdmin.Members = Members;
|
|
66
|
+
WorkspaceAdmin.Profiles = Profiles;
|
|
57
67
|
//# sourceMappingURL=workspace-admin.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-admin.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAyD,OAAO,EAAE,sBAAkB;
|
|
1
|
+
{"version":3,"file":"workspace-admin.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/workspace-admin.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAyD,OAAO,EAAE,sBAAkB;AAC3F,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAqB,QAAQ,EAAE,uBAAmB;AAEzD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;GAOG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAA/C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,C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28
|
ProfileSpec,
|
|
29
29
|
RotateWebhookSigningKeyResponse,
|
|
30
30
|
} from './resources/account';
|
|
31
|
+
import {
|
|
32
|
+
AIProviderKey,
|
|
33
|
+
AIProviderKeyCreateParams,
|
|
34
|
+
AIProviderKeyDeleteParams,
|
|
35
|
+
AIProviderKeyListParams,
|
|
36
|
+
AIProviderKeyRetrieveParams,
|
|
37
|
+
AIProviderKeySpec,
|
|
38
|
+
AIProviderKeyUpdateParams,
|
|
39
|
+
AIProviderKeys,
|
|
40
|
+
AIProviderKeysCursorPagination,
|
|
41
|
+
} from './resources/ai-provider-keys';
|
|
31
42
|
import {
|
|
32
43
|
Model,
|
|
33
44
|
ModelListParams,
|
|
34
45
|
ModelRetrieveParams,
|
|
35
46
|
ModelSetStatusParams,
|
|
36
47
|
ModelSpec,
|
|
48
|
+
ModelSwapParams,
|
|
49
|
+
ModelSwapResponse,
|
|
37
50
|
Models,
|
|
38
51
|
ModelsCursorPagination,
|
|
39
52
|
} from './resources/models';
|
|
@@ -136,14 +149,13 @@ import {
|
|
|
136
149
|
ObjectiveCancelParams,
|
|
137
150
|
ObjectiveCompactParams,
|
|
138
151
|
ObjectiveCompactResponse,
|
|
152
|
+
ObjectiveConfigSnapshot,
|
|
139
153
|
ObjectiveContextWindow,
|
|
140
154
|
ObjectiveContextWindowData,
|
|
141
155
|
ObjectiveContextWindowsCursorPagination,
|
|
142
156
|
ObjectiveContinueParams,
|
|
143
157
|
ObjectiveContinueResponse,
|
|
144
158
|
ObjectiveCreateParams,
|
|
145
|
-
ObjectiveData,
|
|
146
|
-
ObjectiveDataSecret,
|
|
147
159
|
ObjectiveError,
|
|
148
160
|
ObjectiveEventData,
|
|
149
161
|
ObjectiveEventInfo,
|
|
@@ -155,7 +167,7 @@ import {
|
|
|
155
167
|
ObjectiveListEventsResponsesCursorPagination,
|
|
156
168
|
ObjectiveListParams,
|
|
157
169
|
ObjectiveRetrieveParams,
|
|
158
|
-
|
|
170
|
+
ObjectiveSecret,
|
|
159
171
|
Objectives,
|
|
160
172
|
ObjectivesCursorPagination,
|
|
161
173
|
SubAgentSpawned,
|
|
@@ -201,6 +213,7 @@ import {
|
|
|
201
213
|
WorkspaceAdmin,
|
|
202
214
|
WorkspaceAdminCreateParams,
|
|
203
215
|
WorkspaceAdminListParams,
|
|
216
|
+
WorkspaceAdminUpdateParams,
|
|
204
217
|
WorkspaceMember,
|
|
205
218
|
} from './resources/workspace-admin/workspace-admin';
|
|
206
219
|
import { type Fetch } from './internal/builtin-types';
|
|
@@ -947,6 +960,7 @@ export class Cadenya {
|
|
|
947
960
|
|
|
948
961
|
static toFile = Uploads.toFile;
|
|
949
962
|
|
|
963
|
+
aiProviderKeys: API.AIProviderKeys = new API.AIProviderKeys(this);
|
|
950
964
|
/**
|
|
951
965
|
* Manage the authenticated account. Accounts are the top-level organizational
|
|
952
966
|
* unit and contain one or more workspaces.
|
|
@@ -1018,6 +1032,7 @@ export class Cadenya {
|
|
|
1018
1032
|
bulkWorkspaceResources: API.BulkWorkspaceResources = new API.BulkWorkspaceResources(this);
|
|
1019
1033
|
}
|
|
1020
1034
|
|
|
1035
|
+
Cadenya.AIProviderKeys = AIProviderKeys;
|
|
1021
1036
|
Cadenya.AccountResource = AccountResource;
|
|
1022
1037
|
Cadenya.Agents = Agents;
|
|
1023
1038
|
Cadenya.Objectives = Objectives;
|
|
@@ -1042,6 +1057,18 @@ export declare namespace Cadenya {
|
|
|
1042
1057
|
type CursorPaginationResponse as CursorPaginationResponse,
|
|
1043
1058
|
};
|
|
1044
1059
|
|
|
1060
|
+
export {
|
|
1061
|
+
AIProviderKeys as AIProviderKeys,
|
|
1062
|
+
type AIProviderKey as AIProviderKey,
|
|
1063
|
+
type AIProviderKeySpec as AIProviderKeySpec,
|
|
1064
|
+
type AIProviderKeysCursorPagination as AIProviderKeysCursorPagination,
|
|
1065
|
+
type AIProviderKeyCreateParams as AIProviderKeyCreateParams,
|
|
1066
|
+
type AIProviderKeyRetrieveParams as AIProviderKeyRetrieveParams,
|
|
1067
|
+
type AIProviderKeyUpdateParams as AIProviderKeyUpdateParams,
|
|
1068
|
+
type AIProviderKeyListParams as AIProviderKeyListParams,
|
|
1069
|
+
type AIProviderKeyDeleteParams as AIProviderKeyDeleteParams,
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1045
1072
|
export {
|
|
1046
1073
|
AccountResource as AccountResource,
|
|
1047
1074
|
type Account as Account,
|
|
@@ -1075,16 +1102,15 @@ export declare namespace Cadenya {
|
|
|
1075
1102
|
type MemoryRead as MemoryRead,
|
|
1076
1103
|
type MemoryReference as MemoryReference,
|
|
1077
1104
|
type Objective as Objective,
|
|
1105
|
+
type ObjectiveConfigSnapshot as ObjectiveConfigSnapshot,
|
|
1078
1106
|
type ObjectiveContextWindow as ObjectiveContextWindow,
|
|
1079
1107
|
type ObjectiveContextWindowData as ObjectiveContextWindowData,
|
|
1080
|
-
type ObjectiveData as ObjectiveData,
|
|
1081
|
-
type ObjectiveDataSecret as ObjectiveDataSecret,
|
|
1082
1108
|
type ObjectiveError as ObjectiveError,
|
|
1083
1109
|
type ObjectiveEventData as ObjectiveEventData,
|
|
1084
1110
|
type ObjectiveEventInfo as ObjectiveEventInfo,
|
|
1085
1111
|
type ObjectiveEventWebhookData as ObjectiveEventWebhookData,
|
|
1086
1112
|
type ObjectiveInfo as ObjectiveInfo,
|
|
1087
|
-
type
|
|
1113
|
+
type ObjectiveSecret as ObjectiveSecret,
|
|
1088
1114
|
type SubAgentSpawned as SubAgentSpawned,
|
|
1089
1115
|
type SubAgentUpdated as SubAgentUpdated,
|
|
1090
1116
|
type ToolApprovalRequested as ToolApprovalRequested,
|
|
@@ -1136,10 +1162,12 @@ export declare namespace Cadenya {
|
|
|
1136
1162
|
Models as Models,
|
|
1137
1163
|
type Model as Model,
|
|
1138
1164
|
type ModelSpec as ModelSpec,
|
|
1165
|
+
type ModelSwapResponse as ModelSwapResponse,
|
|
1139
1166
|
type ModelsCursorPagination as ModelsCursorPagination,
|
|
1140
1167
|
type ModelRetrieveParams as ModelRetrieveParams,
|
|
1141
1168
|
type ModelListParams as ModelListParams,
|
|
1142
1169
|
type ModelSetStatusParams as ModelSetStatusParams,
|
|
1170
|
+
type ModelSwapParams as ModelSwapParams,
|
|
1143
1171
|
};
|
|
1144
1172
|
|
|
1145
1173
|
export {
|
|
@@ -1214,6 +1242,7 @@ export declare namespace Cadenya {
|
|
|
1214
1242
|
WorkspaceAdmin as WorkspaceAdmin,
|
|
1215
1243
|
type WorkspaceMember as WorkspaceMember,
|
|
1216
1244
|
type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams,
|
|
1245
|
+
type WorkspaceAdminUpdateParams as WorkspaceAdminUpdateParams,
|
|
1217
1246
|
type WorkspaceAdminListParams as WorkspaceAdminListParams,
|
|
1218
1247
|
};
|
|
1219
1248
|
|
package/src/resources/account.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as Shared from './shared';
|
|
|
5
5
|
import * as WorkspacesAPI from './workspaces';
|
|
6
6
|
import * as APIKeysAPI from './api-keys/api-keys';
|
|
7
7
|
import { APIPromise } from '../core/api-promise';
|
|
8
|
+
import { CursorPagination } from '../core/pagination';
|
|
8
9
|
import { RequestOptions } from '../internal/request-options';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -28,6 +29,8 @@ export class AccountResource extends APIResource {
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
export type ProfilesCursorPagination = CursorPagination<Profile>;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* An account, the top-level organizational unit. Contains workspaces and
|
|
33
36
|
* account-wide settings such as the webhook signing secret.
|
|
@@ -107,7 +110,7 @@ export interface ProfileSpec {
|
|
|
107
110
|
/**
|
|
108
111
|
* Whether this profile represents a human user, an API key, or a system principal.
|
|
109
112
|
*/
|
|
110
|
-
type: 'PROFILE_TYPE_USER' | 'PROFILE_TYPE_API_KEY' | 'PROFILE_TYPE_SYSTEM';
|
|
113
|
+
type: 'PROFILE_TYPE_UNSPECIFIED' | 'PROFILE_TYPE_USER' | 'PROFILE_TYPE_API_KEY' | 'PROFILE_TYPE_SYSTEM';
|
|
111
114
|
|
|
112
115
|
/**
|
|
113
116
|
* Email address of the profile. Required and unique within an account for user
|