@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
package/resources/account.d.ts
CHANGED
|
@@ -4,12 +4,8 @@ import * as WorkspacesAPI from "./workspaces.js";
|
|
|
4
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Account-level operations
|
|
7
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
8
|
+
* unit and contain one or more workspaces.
|
|
13
9
|
*/
|
|
14
10
|
export declare class AccountResource extends APIResource {
|
|
15
11
|
/**
|
|
@@ -23,11 +19,12 @@ export declare class AccountResource extends APIResource {
|
|
|
23
19
|
rotateWebhookSigningKey(options?: RequestOptions): APIPromise<RotateWebhookSigningKeyResponse>;
|
|
24
20
|
}
|
|
25
21
|
/**
|
|
26
|
-
*
|
|
22
|
+
* An account, the top-level organizational unit. Contains workspaces and
|
|
23
|
+
* account-wide settings such as the webhook signing secret.
|
|
27
24
|
*/
|
|
28
25
|
export interface Account {
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* Server-populated information about the account.
|
|
31
28
|
*/
|
|
32
29
|
info: Account.Info;
|
|
33
30
|
/**
|
|
@@ -36,13 +33,13 @@ export interface Account {
|
|
|
36
33
|
*/
|
|
37
34
|
metadata: Shared.AccountResourceMetadata;
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
36
|
+
* Configuration for an account.
|
|
40
37
|
*/
|
|
41
38
|
spec: AccountSpec;
|
|
42
39
|
}
|
|
43
40
|
export declare namespace Account {
|
|
44
41
|
/**
|
|
45
|
-
*
|
|
42
|
+
* Server-populated information about the account.
|
|
46
43
|
*/
|
|
47
44
|
interface Info {
|
|
48
45
|
/**
|
|
@@ -54,7 +51,7 @@ export declare namespace Account {
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
/**
|
|
57
|
-
*
|
|
54
|
+
* Configuration for an account.
|
|
58
55
|
*/
|
|
59
56
|
export interface AccountSpec {
|
|
60
57
|
billingEmail?: string;
|
|
@@ -63,9 +60,9 @@ export interface AccountSpec {
|
|
|
63
60
|
workspaces?: Array<WorkspacesAPI.Workspace>;
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
66
|
-
*
|
|
67
|
-
* account-scoped
|
|
68
|
-
*
|
|
63
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
64
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
65
|
+
* workspaces.
|
|
69
66
|
*/
|
|
70
67
|
export interface Profile {
|
|
71
68
|
/**
|
|
@@ -74,31 +71,30 @@ export interface Profile {
|
|
|
74
71
|
*/
|
|
75
72
|
metadata: Shared.AccountResourceMetadata;
|
|
76
73
|
/**
|
|
77
|
-
*
|
|
74
|
+
* Configuration for a profile.
|
|
78
75
|
*/
|
|
79
76
|
spec: ProfileSpec;
|
|
80
77
|
}
|
|
81
78
|
/**
|
|
82
|
-
*
|
|
79
|
+
* Configuration for a profile.
|
|
83
80
|
*/
|
|
84
81
|
export interface ProfileSpec {
|
|
85
82
|
/**
|
|
86
|
-
*
|
|
87
|
-
* the deal.
|
|
83
|
+
* Whether this profile represents a human user, an API key, or a system principal.
|
|
88
84
|
*/
|
|
89
85
|
type: 'PROFILE_TYPE_USER' | 'PROFILE_TYPE_API_KEY' | 'PROFILE_TYPE_SYSTEM';
|
|
90
86
|
/**
|
|
91
|
-
* Email address of the
|
|
87
|
+
* Email address of the profile. Required and unique within an account for user
|
|
88
|
+
* profiles.
|
|
92
89
|
*/
|
|
93
90
|
email?: string;
|
|
94
91
|
/**
|
|
95
|
-
* Display name
|
|
92
|
+
* Display name (e.g., "Bobby Tables").
|
|
96
93
|
*/
|
|
97
94
|
name?: string;
|
|
98
95
|
}
|
|
99
96
|
/**
|
|
100
|
-
*
|
|
101
|
-
* RotateWebhookEventsHmacSecretRequest.
|
|
97
|
+
* Response containing the newly generated webhook signing secret.
|
|
102
98
|
*/
|
|
103
99
|
export interface RotateWebhookSigningKeyResponse {
|
|
104
100
|
webhookEventsHmacSecret?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIvD;;OAEG;IACH,uBAAuB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAG/F;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;IAEnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,yBAAiB,OAAO,CAAC;IACvB;;OAEG;IACH,UAAiB,IAAI;QACnB;;;;WAIG;QACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC;CACF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;CAC7C;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,mBAAmB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;IAE3E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/account.js
CHANGED
|
@@ -4,12 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.AccountResource = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Account-level operations
|
|
7
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
8
|
+
* unit and contain one or more workspaces.
|
|
13
9
|
*/
|
|
14
10
|
class AccountResource extends resource_1.APIResource {
|
|
15
11
|
/**
|
package/resources/account.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C;;;GAGG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,uBAAuB,CAAC,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAfD,0CAeC"}
|
package/resources/account.mjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
7
|
-
*
|
|
8
|
-
* Authentication: Bearer token (JWT)
|
|
9
|
-
* Scope: Account-level operations
|
|
4
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
5
|
+
* unit and contain one or more workspaces.
|
|
10
6
|
*/
|
|
11
7
|
export class AccountResource extends APIResource {
|
|
12
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.mjs","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB
|
|
1
|
+
{"version":3,"file":"account.mjs","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,uBAAuB,CAAC,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -13,12 +13,7 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
13
13
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
14
14
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
18
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
19
|
-
*
|
|
20
|
-
* Authentication: Bearer token (JWT)
|
|
21
|
-
* Scope: Workspace-level operations
|
|
16
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
22
17
|
*/
|
|
23
18
|
export declare class Agents extends APIResource {
|
|
24
19
|
feedback: FeedbackAPI.Feedback;
|
|
@@ -28,23 +23,23 @@ export declare class Agents extends APIResource {
|
|
|
28
23
|
/**
|
|
29
24
|
* Creates a new agent in the workspace
|
|
30
25
|
*/
|
|
31
|
-
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
26
|
+
create(workspaceID: string, body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
32
27
|
/**
|
|
33
28
|
* Retrieves an agent by ID from the workspace
|
|
34
29
|
*/
|
|
35
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Agent>;
|
|
30
|
+
retrieve(id: string, params: AgentRetrieveParams, options?: RequestOptions): APIPromise<Agent>;
|
|
36
31
|
/**
|
|
37
32
|
* Updates an agent in the workspace
|
|
38
33
|
*/
|
|
39
|
-
update(id: string,
|
|
34
|
+
update(id: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
40
35
|
/**
|
|
41
36
|
* Lists all agents in the workspace
|
|
42
37
|
*/
|
|
43
|
-
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
38
|
+
list(workspaceID: string, query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
44
39
|
/**
|
|
45
40
|
* Deletes an agent from the workspace
|
|
46
41
|
*/
|
|
47
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
42
|
+
delete(id: string, params: AgentDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
48
43
|
}
|
|
49
44
|
export type AgentsCursorPagination = CursorPagination<Agent>;
|
|
50
45
|
/**
|
|
@@ -71,9 +66,9 @@ export interface Agent {
|
|
|
71
66
|
*/
|
|
72
67
|
export interface AgentInfo {
|
|
73
68
|
/**
|
|
74
|
-
*
|
|
75
|
-
* account-scoped
|
|
76
|
-
*
|
|
69
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
70
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
71
|
+
* workspaces.
|
|
77
72
|
*/
|
|
78
73
|
createdBy?: AccountAPI.Profile;
|
|
79
74
|
variationCount?: number;
|
|
@@ -145,19 +140,30 @@ export declare namespace AgentCreateParams {
|
|
|
145
140
|
spec: VariationsAPI.AgentVariationSpec;
|
|
146
141
|
}
|
|
147
142
|
}
|
|
143
|
+
export interface AgentRetrieveParams {
|
|
144
|
+
/**
|
|
145
|
+
* Workspace ID.
|
|
146
|
+
*/
|
|
147
|
+
workspaceId: string;
|
|
148
|
+
}
|
|
148
149
|
export interface AgentUpdateParams {
|
|
149
150
|
/**
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
* Path param: Workspace ID.
|
|
152
|
+
*/
|
|
153
|
+
workspaceId: string;
|
|
154
|
+
/**
|
|
155
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
156
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
157
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
158
|
+
* server.
|
|
153
159
|
*/
|
|
154
160
|
metadata?: Shared.UpdateResourceMetadata;
|
|
155
161
|
/**
|
|
156
|
-
* Agent specification (user-provided configuration)
|
|
162
|
+
* Body param: Agent specification (user-provided configuration)
|
|
157
163
|
*/
|
|
158
164
|
spec?: AgentSpec;
|
|
159
165
|
/**
|
|
160
|
-
* Fields to update
|
|
166
|
+
* Body param: Fields to update
|
|
161
167
|
*/
|
|
162
168
|
updateMask?: string;
|
|
163
169
|
}
|
|
@@ -167,7 +173,8 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
167
173
|
*/
|
|
168
174
|
bundleKey?: string;
|
|
169
175
|
/**
|
|
170
|
-
* When
|
|
176
|
+
* When true, the `info` field on each returned agent is populated. Requests with
|
|
177
|
+
* this flag count more against your rate limit.
|
|
171
178
|
*/
|
|
172
179
|
includeInfo?: boolean;
|
|
173
180
|
/**
|
|
@@ -191,8 +198,14 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
191
198
|
*/
|
|
192
199
|
variationSelectionMode?: 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
|
|
193
200
|
}
|
|
201
|
+
export interface AgentDeleteParams {
|
|
202
|
+
/**
|
|
203
|
+
* Workspace ID.
|
|
204
|
+
*/
|
|
205
|
+
workspaceId: string;
|
|
206
|
+
}
|
|
194
207
|
export declare namespace Agents {
|
|
195
|
-
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
208
|
+
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentDeleteParams as AgentDeleteParams, };
|
|
196
209
|
export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
|
|
197
210
|
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveryData as WebhookDeliveryData, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
198
211
|
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery, type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy, type VariationAssignment as VariationAssignment, type VariationMemoryLayerAssignment as VariationMemoryLayerAssignment, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, type VariationAddAssignmentParams as VariationAddAssignmentParams, type VariationAddMemoryLayerParams as VariationAddMemoryLayerParams, type VariationRemoveAssignmentParams as VariationRemoveAssignmentParams, type VariationRemoveMemoryLayerParams as VariationRemoveMemoryLayerParams, type VariationUpdateMemoryLayerParams as VariationUpdateMemoryLayerParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;OAChC,KAAK,YAAY;OACjB,EACL,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sCAAsC,EACtC,+BAA+B,EAC/B,qCAAqC,EACrC,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,EAChC,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,UAAU,EACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,EACjB,iCAAiC,EACjC,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAC1B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["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AK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -13,12 +13,7 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
13
13
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
14
14
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
18
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
19
|
-
*
|
|
20
|
-
* Authentication: Bearer token (JWT)
|
|
21
|
-
* Scope: Workspace-level operations
|
|
16
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
22
17
|
*/
|
|
23
18
|
export declare class Agents extends APIResource {
|
|
24
19
|
feedback: FeedbackAPI.Feedback;
|
|
@@ -28,23 +23,23 @@ export declare class Agents extends APIResource {
|
|
|
28
23
|
/**
|
|
29
24
|
* Creates a new agent in the workspace
|
|
30
25
|
*/
|
|
31
|
-
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
26
|
+
create(workspaceID: string, body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
32
27
|
/**
|
|
33
28
|
* Retrieves an agent by ID from the workspace
|
|
34
29
|
*/
|
|
35
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Agent>;
|
|
30
|
+
retrieve(id: string, params: AgentRetrieveParams, options?: RequestOptions): APIPromise<Agent>;
|
|
36
31
|
/**
|
|
37
32
|
* Updates an agent in the workspace
|
|
38
33
|
*/
|
|
39
|
-
update(id: string,
|
|
34
|
+
update(id: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
40
35
|
/**
|
|
41
36
|
* Lists all agents in the workspace
|
|
42
37
|
*/
|
|
43
|
-
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
38
|
+
list(workspaceID: string, query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
44
39
|
/**
|
|
45
40
|
* Deletes an agent from the workspace
|
|
46
41
|
*/
|
|
47
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
42
|
+
delete(id: string, params: AgentDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
48
43
|
}
|
|
49
44
|
export type AgentsCursorPagination = CursorPagination<Agent>;
|
|
50
45
|
/**
|
|
@@ -71,9 +66,9 @@ export interface Agent {
|
|
|
71
66
|
*/
|
|
72
67
|
export interface AgentInfo {
|
|
73
68
|
/**
|
|
74
|
-
*
|
|
75
|
-
* account-scoped
|
|
76
|
-
*
|
|
69
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
70
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
71
|
+
* workspaces.
|
|
77
72
|
*/
|
|
78
73
|
createdBy?: AccountAPI.Profile;
|
|
79
74
|
variationCount?: number;
|
|
@@ -145,19 +140,30 @@ export declare namespace AgentCreateParams {
|
|
|
145
140
|
spec: VariationsAPI.AgentVariationSpec;
|
|
146
141
|
}
|
|
147
142
|
}
|
|
143
|
+
export interface AgentRetrieveParams {
|
|
144
|
+
/**
|
|
145
|
+
* Workspace ID.
|
|
146
|
+
*/
|
|
147
|
+
workspaceId: string;
|
|
148
|
+
}
|
|
148
149
|
export interface AgentUpdateParams {
|
|
149
150
|
/**
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
* Path param: Workspace ID.
|
|
152
|
+
*/
|
|
153
|
+
workspaceId: string;
|
|
154
|
+
/**
|
|
155
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
156
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
157
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
158
|
+
* server.
|
|
153
159
|
*/
|
|
154
160
|
metadata?: Shared.UpdateResourceMetadata;
|
|
155
161
|
/**
|
|
156
|
-
* Agent specification (user-provided configuration)
|
|
162
|
+
* Body param: Agent specification (user-provided configuration)
|
|
157
163
|
*/
|
|
158
164
|
spec?: AgentSpec;
|
|
159
165
|
/**
|
|
160
|
-
* Fields to update
|
|
166
|
+
* Body param: Fields to update
|
|
161
167
|
*/
|
|
162
168
|
updateMask?: string;
|
|
163
169
|
}
|
|
@@ -167,7 +173,8 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
167
173
|
*/
|
|
168
174
|
bundleKey?: string;
|
|
169
175
|
/**
|
|
170
|
-
* When
|
|
176
|
+
* When true, the `info` field on each returned agent is populated. Requests with
|
|
177
|
+
* this flag count more against your rate limit.
|
|
171
178
|
*/
|
|
172
179
|
includeInfo?: boolean;
|
|
173
180
|
/**
|
|
@@ -191,8 +198,14 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
191
198
|
*/
|
|
192
199
|
variationSelectionMode?: 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
|
|
193
200
|
}
|
|
201
|
+
export interface AgentDeleteParams {
|
|
202
|
+
/**
|
|
203
|
+
* Workspace ID.
|
|
204
|
+
*/
|
|
205
|
+
workspaceId: string;
|
|
206
|
+
}
|
|
194
207
|
export declare namespace Agents {
|
|
195
|
-
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
208
|
+
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentDeleteParams as AgentDeleteParams, };
|
|
196
209
|
export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
|
|
197
210
|
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveryData as WebhookDeliveryData, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
198
211
|
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery, type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy, type VariationAssignment as VariationAssignment, type VariationMemoryLayerAssignment as VariationMemoryLayerAssignment, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, type VariationAddAssignmentParams as VariationAddAssignmentParams, type VariationAddMemoryLayerParams as VariationAddMemoryLayerParams, type VariationRemoveAssignmentParams as VariationRemoveAssignmentParams, type VariationRemoveMemoryLayerParams as VariationRemoveMemoryLayerParams, type VariationUpdateMemoryLayerParams as VariationUpdateMemoryLayerParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;OAChC,KAAK,YAAY;OACjB,EACL,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sCAAsC,EACtC,+BAA+B,EAC/B,qCAAqC,EACrC,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,EAChC,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,UAAU,EACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,EACjB,iCAAiC,EACjC,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAC1B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;OAChC,KAAK,YAAY;OACjB,EACL,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sCAAsC,EACtC,+BAA+B,EAC/B,qCAAqC,EACrC,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,E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,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -16,12 +16,7 @@ const pagination_1 = require("../../core/pagination.js");
|
|
|
16
16
|
const headers_1 = require("../../internal/headers.js");
|
|
17
17
|
const path_1 = require("../../internal/utils/path.js");
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
21
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
22
|
-
*
|
|
23
|
-
* Authentication: Bearer token (JWT)
|
|
24
|
-
* Scope: Workspace-level operations
|
|
19
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
25
20
|
*/
|
|
26
21
|
class Agents extends resource_1.APIResource {
|
|
27
22
|
constructor() {
|
|
@@ -34,32 +29,38 @@ class Agents extends resource_1.APIResource {
|
|
|
34
29
|
/**
|
|
35
30
|
* Creates a new agent in the workspace
|
|
36
31
|
*/
|
|
37
|
-
create(body, options) {
|
|
38
|
-
return this._client.post(
|
|
32
|
+
create(workspaceID, body, options) {
|
|
33
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceID}/agents`, { body, ...options });
|
|
39
34
|
}
|
|
40
35
|
/**
|
|
41
36
|
* Retrieves an agent by ID from the workspace
|
|
42
37
|
*/
|
|
43
|
-
retrieve(id, options) {
|
|
44
|
-
|
|
38
|
+
retrieve(id, params, options) {
|
|
39
|
+
const { workspaceId } = params;
|
|
40
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${id}`, options);
|
|
45
41
|
}
|
|
46
42
|
/**
|
|
47
43
|
* Updates an agent in the workspace
|
|
48
44
|
*/
|
|
49
|
-
update(id,
|
|
50
|
-
|
|
45
|
+
update(id, params, options) {
|
|
46
|
+
const { workspaceId, ...body } = params;
|
|
47
|
+
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${id}`, { body, ...options });
|
|
51
48
|
}
|
|
52
49
|
/**
|
|
53
50
|
* Lists all agents in the workspace
|
|
54
51
|
*/
|
|
55
|
-
list(query = {}, options) {
|
|
56
|
-
return this._client.getAPIList(
|
|
52
|
+
list(workspaceID, query = {}, options) {
|
|
53
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceID}/agents`, (pagination_1.CursorPagination), {
|
|
54
|
+
query,
|
|
55
|
+
...options,
|
|
56
|
+
});
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Deletes an agent from the workspace
|
|
60
60
|
*/
|
|
61
|
-
delete(id, options) {
|
|
62
|
-
|
|
61
|
+
delete(id, params, options) {
|
|
62
|
+
const { workspaceId } = params;
|
|
63
|
+
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${id}`, {
|
|
63
64
|
...options,
|
|
64
65
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
65
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,mEAA0C;AAC1C,4CAA0D;AAC1D,qEAA4C;AAC5C,8CAeqB;AACrB,uEAA8C;AAC9C,gDAwBsB;AACtB,sFAA6D;AAC7D,gEAM8B;AAE9B,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD
|
|
1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,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,SAAS,EAAE,CAAA,6BAAuB,CAAA,EAAE;YAClG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACpE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,WAAW,EAAE,EAAE,EAAE;YAC3E,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,wBAuDC;AAkND,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,iBAAiB,GAAG,sCAAiB,CAAC;AAC7C,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC/B,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -12,12 +12,7 @@ import { CursorPagination } from "../../core/pagination.mjs";
|
|
|
12
12
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
13
13
|
import { path } from "../../internal/utils/path.mjs";
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
17
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
18
|
-
*
|
|
19
|
-
* Authentication: Bearer token (JWT)
|
|
20
|
-
* Scope: Workspace-level operations
|
|
15
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
21
16
|
*/
|
|
22
17
|
export class Agents extends APIResource {
|
|
23
18
|
constructor() {
|
|
@@ -30,32 +25,38 @@ export class Agents extends APIResource {
|
|
|
30
25
|
/**
|
|
31
26
|
* Creates a new agent in the workspace
|
|
32
27
|
*/
|
|
33
|
-
create(body, options) {
|
|
34
|
-
return this._client.post(
|
|
28
|
+
create(workspaceID, body, options) {
|
|
29
|
+
return this._client.post(path `/v1/workspaces/${workspaceID}/agents`, { body, ...options });
|
|
35
30
|
}
|
|
36
31
|
/**
|
|
37
32
|
* Retrieves an agent by ID from the workspace
|
|
38
33
|
*/
|
|
39
|
-
retrieve(id, options) {
|
|
40
|
-
|
|
34
|
+
retrieve(id, params, options) {
|
|
35
|
+
const { workspaceId } = params;
|
|
36
|
+
return this._client.get(path `/v1/workspaces/${workspaceId}/agents/${id}`, options);
|
|
41
37
|
}
|
|
42
38
|
/**
|
|
43
39
|
* Updates an agent in the workspace
|
|
44
40
|
*/
|
|
45
|
-
update(id,
|
|
46
|
-
|
|
41
|
+
update(id, params, options) {
|
|
42
|
+
const { workspaceId, ...body } = params;
|
|
43
|
+
return this._client.patch(path `/v1/workspaces/${workspaceId}/agents/${id}`, { body, ...options });
|
|
47
44
|
}
|
|
48
45
|
/**
|
|
49
46
|
* Lists all agents in the workspace
|
|
50
47
|
*/
|
|
51
|
-
list(query = {}, options) {
|
|
52
|
-
return this._client.getAPIList(
|
|
48
|
+
list(workspaceID, query = {}, options) {
|
|
49
|
+
return this._client.getAPIList(path `/v1/workspaces/${workspaceID}/agents`, (CursorPagination), {
|
|
50
|
+
query,
|
|
51
|
+
...options,
|
|
52
|
+
});
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Deletes an agent from the workspace
|
|
56
56
|
*/
|
|
57
|
-
delete(id, options) {
|
|
58
|
-
|
|
57
|
+
delete(id, params, options) {
|
|
58
|
+
const { workspaceId } = params;
|
|
59
|
+
return this._client.delete(path `/v1/workspaces/${workspaceId}/agents/${id}`, {
|
|
59
60
|
...options,
|
|
60
61
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
61
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAsB;OAChC,KAAK,YAAY;OACjB,EAcL,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAuBL,UAAU,GACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,GAKlB;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAsB;OAChC,KAAK,YAAY;OACjB,EAcL,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAuBL,UAAU,GACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,GAKlB;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,sBAAiB,GAA2C,IAAI,oBAAoB,CAAC,iBAAiB,CACpG,IAAI,CAAC,OAAO,CACb,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