@cadenya/cadenya 0.67.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 +8 -0
- package/client.d.mts +24 -63
- package/client.d.mts.map +1 -1
- package/client.d.ts +24 -63
- 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 +9 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +9 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +1 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +2 -7
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +2 -7
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +1 -6
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +1 -6
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +18 -21
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +18 -21
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +2 -6
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +2 -6
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +48 -45
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +48 -45
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +3 -0
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +3 -0
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +4 -9
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +4 -9
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +1 -6
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +1 -6
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +19 -22
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +19 -22
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +2 -5
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +2 -5
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +23 -32
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +23 -32
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +3 -8
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +3 -8
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +14 -28
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +14 -28
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +4 -10
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +4 -10
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +8 -20
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +8 -20
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +4 -10
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +4 -10
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +5 -9
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +5 -9
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -7
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -7
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +5 -5
- package/resources/objectives/feedback.d.ts +5 -5
- package/resources/objectives/objectives.d.mts +22 -31
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +22 -31
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +1 -4
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +1 -4
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tool-calls.d.mts +8 -11
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +8 -11
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tools.d.mts +1 -1
- package/resources/objectives/tools.d.ts +1 -1
- package/resources/tool-sets/tool-sets.d.mts +31 -35
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +31 -35
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +4 -8
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +4 -8
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +16 -22
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +16 -22
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +4 -8
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +4 -8
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -17
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -17
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +3 -7
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +3 -7
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +7 -7
- package/resources/workspace-secrets.d.ts +7 -7
- 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 +24 -63
- package/src/resources/account.ts +18 -22
- package/src/resources/agents/agents.ts +9 -13
- package/src/resources/agents/feedback.ts +2 -7
- package/src/resources/agents/schedules.ts +18 -21
- package/src/resources/agents/variations.ts +48 -45
- package/src/resources/agents/webhook-deliveries.ts +4 -9
- package/src/resources/api-keys.ts +19 -22
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
- package/src/resources/bulk-workspace-resources/results.ts +23 -32
- package/src/resources/memory-layers/entries.ts +14 -28
- package/src/resources/memory-layers/memory-layers.ts +8 -20
- package/src/resources/models.ts +5 -9
- package/src/resources/objectives/feedback.ts +5 -5
- package/src/resources/objectives/objectives.ts +22 -31
- package/src/resources/objectives/tasks.ts +1 -4
- package/src/resources/objectives/tool-calls.ts +8 -11
- package/src/resources/objectives/tools.ts +1 -1
- package/src/resources/tool-sets/tool-sets.ts +31 -35
- package/src/resources/tool-sets/tools.ts +16 -22
- package/src/resources/uploads.ts +13 -17
- package/src/resources/workspace-secrets.ts +7 -7
- 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/src/client.ts
CHANGED
|
@@ -937,98 +937,59 @@ export class Cadenya {
|
|
|
937
937
|
static toFile = Uploads.toFile;
|
|
938
938
|
|
|
939
939
|
/**
|
|
940
|
-
*
|
|
941
|
-
*
|
|
942
|
-
* All operations are scoped to the authenticated account determined by the JWT token.
|
|
943
|
-
*
|
|
944
|
-
* Authentication: Bearer token (JWT)
|
|
945
|
-
* Scope: Account-level operations
|
|
940
|
+
* Manage the authenticated account. Accounts are the top-level organizational
|
|
941
|
+
* unit and contain one or more workspaces.
|
|
946
942
|
*/
|
|
947
943
|
account: API.AccountResource = new API.AccountResource(this);
|
|
948
944
|
/**
|
|
949
|
-
*
|
|
950
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
951
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
952
|
-
*
|
|
953
|
-
* Authentication: Bearer token (JWT)
|
|
954
|
-
* Scope: Workspace-level operations
|
|
945
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
955
946
|
*/
|
|
956
947
|
agents: API.Agents = new API.Agents(this);
|
|
957
948
|
objectives: API.Objectives = new API.Objectives(this);
|
|
958
949
|
/**
|
|
959
|
-
*
|
|
960
|
-
*
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
964
|
-
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
965
|
-
* cannot be mutated through this API.
|
|
966
|
-
*
|
|
967
|
-
* Authentication: Bearer token (JWT)
|
|
968
|
-
* 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.
|
|
969
954
|
*/
|
|
970
955
|
memoryLayers: API.MemoryLayers = new API.MemoryLayers(this);
|
|
971
956
|
/**
|
|
972
|
-
*
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
* MemoryEntry).
|
|
976
|
-
*
|
|
977
|
-
* Authentication: Bearer token (JWT)
|
|
978
|
-
* 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).
|
|
979
960
|
*/
|
|
980
961
|
uploads: API.Uploads = new API.Uploads(this);
|
|
981
962
|
/**
|
|
982
|
-
*
|
|
983
|
-
*
|
|
984
|
-
*
|
|
985
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
986
|
-
*
|
|
987
|
-
* Authentication: Bearer token (JWT)
|
|
988
|
-
* 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.
|
|
989
966
|
*/
|
|
990
967
|
models: API.Models = new API.Models(this);
|
|
991
968
|
search: API.Search = new API.Search(this);
|
|
992
969
|
/**
|
|
993
|
-
*
|
|
994
|
-
*
|
|
995
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
996
|
-
*
|
|
997
|
-
* Note: When a ToolSet has managed=true, only API Key actors can modify its tools.
|
|
998
|
-
* 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.
|
|
999
972
|
*
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
973
|
+
* When a tool set is managed, only API key actors can modify its tools; human
|
|
974
|
+
* (profile) actors cannot.
|
|
1002
975
|
*/
|
|
1003
976
|
toolSets: API.ToolSets = new API.ToolSets(this);
|
|
1004
977
|
/**
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1008
|
-
* Authentication: Bearer token (JWT)
|
|
1009
|
-
* 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.
|
|
1010
980
|
*/
|
|
1011
981
|
apiKeys: API.APIKeys = new API.APIKeys(this);
|
|
1012
982
|
workspaceSecrets: API.WorkspaceSecrets = new API.WorkspaceSecrets(this);
|
|
1013
983
|
/**
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
1016
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
1017
|
-
*
|
|
1018
|
-
* Authentication: Bearer token (JWT)
|
|
1019
|
-
* 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.
|
|
1020
986
|
*/
|
|
1021
987
|
workspaces: API.Workspaces = new API.Workspaces(this);
|
|
1022
988
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
1023
989
|
/**
|
|
1024
|
-
*
|
|
1025
|
-
*
|
|
1026
|
-
*
|
|
1027
|
-
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
1028
|
-
* for the full design.
|
|
1029
|
-
*
|
|
1030
|
-
* Authentication: Bearer token (JWT)
|
|
1031
|
-
* 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.
|
|
1032
993
|
*/
|
|
1033
994
|
bulkWorkspaceResources: API.BulkWorkspaceResources = new API.BulkWorkspaceResources(this);
|
|
1034
995
|
}
|
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);
|
|
@@ -156,9 +151,9 @@ export interface Agent {
|
|
|
156
151
|
*/
|
|
157
152
|
export interface AgentInfo {
|
|
158
153
|
/**
|
|
159
|
-
*
|
|
160
|
-
* account-scoped
|
|
161
|
-
*
|
|
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.
|
|
162
157
|
*/
|
|
163
158
|
createdBy?: AccountAPI.Profile;
|
|
164
159
|
|
|
@@ -253,14 +248,14 @@ export namespace AgentCreateParams {
|
|
|
253
248
|
|
|
254
249
|
export interface AgentRetrieveParams {
|
|
255
250
|
/**
|
|
256
|
-
* Workspace ID
|
|
251
|
+
* Workspace ID.
|
|
257
252
|
*/
|
|
258
253
|
workspaceId: string;
|
|
259
254
|
}
|
|
260
255
|
|
|
261
256
|
export interface AgentUpdateParams {
|
|
262
257
|
/**
|
|
263
|
-
* Path param: Workspace ID
|
|
258
|
+
* Path param: Workspace ID.
|
|
264
259
|
*/
|
|
265
260
|
workspaceId: string;
|
|
266
261
|
|
|
@@ -290,7 +285,8 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
290
285
|
bundleKey?: string;
|
|
291
286
|
|
|
292
287
|
/**
|
|
293
|
-
* When
|
|
288
|
+
* When true, the `info` field on each returned agent is populated. Requests with
|
|
289
|
+
* this flag count more against your rate limit.
|
|
294
290
|
*/
|
|
295
291
|
includeInfo?: boolean;
|
|
296
292
|
|
|
@@ -329,7 +325,7 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
329
325
|
|
|
330
326
|
export interface AgentDeleteParams {
|
|
331
327
|
/**
|
|
332
|
-
* Workspace ID
|
|
328
|
+
* Workspace ID.
|
|
333
329
|
*/
|
|
334
330
|
workspaceId: string;
|
|
335
331
|
}
|
|
@@ -8,12 +8,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
13
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
14
|
-
*
|
|
15
|
-
* Authentication: Bearer token (JWT)
|
|
16
|
-
* Scope: Workspace-level operations
|
|
11
|
+
* Manage AI agents within a workspace. Agents define AI behavior and tool access.
|
|
17
12
|
*/
|
|
18
13
|
export class Feedback extends APIResource {
|
|
19
14
|
/**
|
|
@@ -37,7 +32,7 @@ export class Feedback extends APIResource {
|
|
|
37
32
|
|
|
38
33
|
export interface FeedbackListParams extends CursorPaginationParams {
|
|
39
34
|
/**
|
|
40
|
-
* Path param
|
|
35
|
+
* Path param
|
|
41
36
|
*/
|
|
42
37
|
workspaceId: string;
|
|
43
38
|
|
|
@@ -10,12 +10,8 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
10
10
|
import { path } from '../../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
16
|
-
*
|
|
17
|
-
* Authentication: Bearer token (JWT)
|
|
18
|
-
* Scope: Workspace-level operations
|
|
13
|
+
* Manage recurring schedules attached to agents. Schedules trigger objectives
|
|
14
|
+
* on a cadence defined by AgentScheduleSpec.Schedule.
|
|
19
15
|
*/
|
|
20
16
|
export class Schedules extends APIResource {
|
|
21
17
|
/**
|
|
@@ -104,9 +100,9 @@ export interface AgentSchedule {
|
|
|
104
100
|
*/
|
|
105
101
|
export interface AgentScheduleInfo {
|
|
106
102
|
/**
|
|
107
|
-
*
|
|
108
|
-
* account-scoped
|
|
109
|
-
*
|
|
103
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
104
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
105
|
+
* workspaces.
|
|
110
106
|
*/
|
|
111
107
|
createdBy?: AccountAPI.Profile;
|
|
112
108
|
|
|
@@ -260,7 +256,7 @@ export interface ScheduleRange {
|
|
|
260
256
|
|
|
261
257
|
export interface ScheduleCreateParams {
|
|
262
258
|
/**
|
|
263
|
-
* Path param: Workspace ID
|
|
259
|
+
* Path param: Workspace ID.
|
|
264
260
|
*/
|
|
265
261
|
workspaceId: string;
|
|
266
262
|
|
|
@@ -280,26 +276,26 @@ export interface ScheduleCreateParams {
|
|
|
280
276
|
|
|
281
277
|
export interface ScheduleRetrieveParams {
|
|
282
278
|
/**
|
|
283
|
-
* Workspace ID
|
|
279
|
+
* Workspace ID.
|
|
284
280
|
*/
|
|
285
281
|
workspaceId: string;
|
|
286
282
|
|
|
287
283
|
/**
|
|
288
|
-
* Agent ID
|
|
289
|
-
* form
|
|
284
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
285
|
+
* form.
|
|
290
286
|
*/
|
|
291
287
|
agentId: string;
|
|
292
288
|
}
|
|
293
289
|
|
|
294
290
|
export interface ScheduleUpdateParams {
|
|
295
291
|
/**
|
|
296
|
-
* Path param: Workspace ID
|
|
292
|
+
* Path param: Workspace ID.
|
|
297
293
|
*/
|
|
298
294
|
workspaceId: string;
|
|
299
295
|
|
|
300
296
|
/**
|
|
301
|
-
* Path param: Agent ID
|
|
302
|
-
* external_id:<value
|
|
297
|
+
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
298
|
+
* `external_id:<value>` form.
|
|
303
299
|
*/
|
|
304
300
|
agentId: string;
|
|
305
301
|
|
|
@@ -324,7 +320,7 @@ export interface ScheduleUpdateParams {
|
|
|
324
320
|
|
|
325
321
|
export interface ScheduleListParams extends CursorPaginationParams {
|
|
326
322
|
/**
|
|
327
|
-
* Path param: Workspace ID
|
|
323
|
+
* Path param: Workspace ID.
|
|
328
324
|
*/
|
|
329
325
|
workspaceId: string;
|
|
330
326
|
|
|
@@ -334,7 +330,8 @@ export interface ScheduleListParams extends CursorPaginationParams {
|
|
|
334
330
|
bundleKey?: string;
|
|
335
331
|
|
|
336
332
|
/**
|
|
337
|
-
* Query param: When
|
|
333
|
+
* Query param: When true, the `info` field on each returned schedule is populated.
|
|
334
|
+
* Requests with this flag count more against your rate limit.
|
|
338
335
|
*/
|
|
339
336
|
includeInfo?: boolean;
|
|
340
337
|
|
|
@@ -356,13 +353,13 @@ export interface ScheduleListParams extends CursorPaginationParams {
|
|
|
356
353
|
|
|
357
354
|
export interface ScheduleDeleteParams {
|
|
358
355
|
/**
|
|
359
|
-
* Workspace ID
|
|
356
|
+
* Workspace ID.
|
|
360
357
|
*/
|
|
361
358
|
workspaceId: string;
|
|
362
359
|
|
|
363
360
|
/**
|
|
364
|
-
* Agent ID
|
|
365
|
-
* form
|
|
361
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
362
|
+
* form.
|
|
366
363
|
*/
|
|
367
364
|
agentId: string;
|
|
368
365
|
}
|
|
@@ -9,6 +9,9 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
9
9
|
import { RequestOptions } from '../../internal/request-options';
|
|
10
10
|
import { path } from '../../internal/utils/path';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Manage variations of an agent and their tool, sub-agent, and memory layer assignments.
|
|
14
|
+
*/
|
|
12
15
|
export class Variations extends APIResource {
|
|
13
16
|
/**
|
|
14
17
|
* Creates a new variation for an agent
|
|
@@ -189,9 +192,9 @@ export interface AgentVariationInfo {
|
|
|
189
192
|
assignments?: Array<VariationAssignment>;
|
|
190
193
|
|
|
191
194
|
/**
|
|
192
|
-
*
|
|
193
|
-
* account-scoped
|
|
194
|
-
*
|
|
195
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
196
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
197
|
+
* workspaces.
|
|
195
198
|
*/
|
|
196
199
|
createdBy?: AccountAPI.Profile;
|
|
197
200
|
|
|
@@ -402,15 +405,14 @@ export interface CompactionConfigToolResultClearingStrategy {
|
|
|
402
405
|
}
|
|
403
406
|
|
|
404
407
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
408
|
+
* A read-only reference to a single tool, tool set, or sub-agent attached to a
|
|
409
|
+
* variation. Read the full set of assignments via
|
|
407
410
|
* `AgentVariationInfo.assignments`; mutations go through the dedicated add/remove
|
|
408
|
-
* assignment endpoints
|
|
409
|
-
* /v1/agents/{agent_id}/variations/{variation_id}/assignments.
|
|
411
|
+
* assignment endpoints.
|
|
410
412
|
*
|
|
411
|
-
* The `id` identifies the assignment
|
|
412
|
-
*
|
|
413
|
-
*
|
|
413
|
+
* The `id` identifies the assignment itself (not the referenced resource) and is
|
|
414
|
+
* the handle used to remove the assignment. It is returned by the add endpoint and
|
|
415
|
+
* present on every entry in `AgentVariationInfo.assignments`.
|
|
414
416
|
*/
|
|
415
417
|
export interface VariationAssignment {
|
|
416
418
|
id?: string;
|
|
@@ -483,7 +485,7 @@ export interface VariationMemoryLayerAssignment {
|
|
|
483
485
|
|
|
484
486
|
export interface VariationCreateParams {
|
|
485
487
|
/**
|
|
486
|
-
* Path param: Workspace ID
|
|
488
|
+
* Path param: Workspace ID.
|
|
487
489
|
*/
|
|
488
490
|
workspaceId: string;
|
|
489
491
|
|
|
@@ -504,26 +506,26 @@ export interface VariationCreateParams {
|
|
|
504
506
|
|
|
505
507
|
export interface VariationRetrieveParams {
|
|
506
508
|
/**
|
|
507
|
-
* Workspace ID
|
|
509
|
+
* Workspace ID.
|
|
508
510
|
*/
|
|
509
511
|
workspaceId: string;
|
|
510
512
|
|
|
511
513
|
/**
|
|
512
|
-
* Agent ID
|
|
513
|
-
* form
|
|
514
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
515
|
+
* form.
|
|
514
516
|
*/
|
|
515
517
|
agentId: string;
|
|
516
518
|
}
|
|
517
519
|
|
|
518
520
|
export interface VariationUpdateParams {
|
|
519
521
|
/**
|
|
520
|
-
* Path param: Workspace ID
|
|
522
|
+
* Path param: Workspace ID.
|
|
521
523
|
*/
|
|
522
524
|
workspaceId: string;
|
|
523
525
|
|
|
524
526
|
/**
|
|
525
|
-
* Path param: Agent ID
|
|
526
|
-
* external_id:<value
|
|
527
|
+
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
528
|
+
* `external_id:<value>` form.
|
|
527
529
|
*/
|
|
528
530
|
agentId: string;
|
|
529
531
|
|
|
@@ -549,7 +551,7 @@ export interface VariationUpdateParams {
|
|
|
549
551
|
|
|
550
552
|
export interface VariationListParams extends CursorPaginationParams {
|
|
551
553
|
/**
|
|
552
|
-
* Path param: Workspace ID
|
|
554
|
+
* Path param: Workspace ID.
|
|
553
555
|
*/
|
|
554
556
|
workspaceId: string;
|
|
555
557
|
|
|
@@ -559,7 +561,8 @@ export interface VariationListParams extends CursorPaginationParams {
|
|
|
559
561
|
bundleKey?: string;
|
|
560
562
|
|
|
561
563
|
/**
|
|
562
|
-
* Query param: When
|
|
564
|
+
* Query param: When true, the `info` field on each returned variation is
|
|
565
|
+
* populated. Requests with this flag count more against your rate limit.
|
|
563
566
|
*/
|
|
564
567
|
includeInfo?: boolean;
|
|
565
568
|
|
|
@@ -571,26 +574,26 @@ export interface VariationListParams extends CursorPaginationParams {
|
|
|
571
574
|
|
|
572
575
|
export interface VariationDeleteParams {
|
|
573
576
|
/**
|
|
574
|
-
* Workspace ID
|
|
577
|
+
* Workspace ID.
|
|
575
578
|
*/
|
|
576
579
|
workspaceId: string;
|
|
577
580
|
|
|
578
581
|
/**
|
|
579
|
-
* Agent ID
|
|
580
|
-
* form
|
|
582
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
583
|
+
* form.
|
|
581
584
|
*/
|
|
582
585
|
agentId: string;
|
|
583
586
|
}
|
|
584
587
|
|
|
585
588
|
export interface VariationAddAssignmentParams {
|
|
586
589
|
/**
|
|
587
|
-
* Path param: Workspace ID
|
|
590
|
+
* Path param: Workspace ID.
|
|
588
591
|
*/
|
|
589
592
|
workspaceId: string;
|
|
590
593
|
|
|
591
594
|
/**
|
|
592
|
-
* Path param: Agent ID
|
|
593
|
-
* external_id:<value
|
|
595
|
+
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
596
|
+
* `external_id:<value>` form.
|
|
594
597
|
*/
|
|
595
598
|
agentId: string;
|
|
596
599
|
|
|
@@ -612,19 +615,19 @@ export interface VariationAddAssignmentParams {
|
|
|
612
615
|
|
|
613
616
|
export interface VariationAddMemoryLayerParams {
|
|
614
617
|
/**
|
|
615
|
-
* Path param: Workspace ID
|
|
618
|
+
* Path param: Workspace ID.
|
|
616
619
|
*/
|
|
617
620
|
workspaceId: string;
|
|
618
621
|
|
|
619
622
|
/**
|
|
620
|
-
* Path param: Agent ID
|
|
621
|
-
* external_id:<value
|
|
623
|
+
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
624
|
+
* `external_id:<value>` form.
|
|
622
625
|
*/
|
|
623
626
|
agentId: string;
|
|
624
627
|
|
|
625
628
|
/**
|
|
626
|
-
* Body param: Layer to attach. Accepts canonical
|
|
627
|
-
* external_id:<value
|
|
629
|
+
* Body param: Layer to attach. Accepts the canonical `memlyr_…` form or the
|
|
630
|
+
* `external_id:<value>` form.
|
|
628
631
|
*/
|
|
629
632
|
memoryLayerId?: string;
|
|
630
633
|
|
|
@@ -637,57 +640,57 @@ export interface VariationAddMemoryLayerParams {
|
|
|
637
640
|
|
|
638
641
|
export interface VariationRemoveAssignmentParams {
|
|
639
642
|
/**
|
|
640
|
-
* Workspace ID
|
|
643
|
+
* Workspace ID.
|
|
641
644
|
*/
|
|
642
645
|
workspaceId: string;
|
|
643
646
|
|
|
644
647
|
/**
|
|
645
|
-
* Agent ID
|
|
646
|
-
* form
|
|
648
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
649
|
+
* form.
|
|
647
650
|
*/
|
|
648
651
|
agentId: string;
|
|
649
652
|
|
|
650
653
|
/**
|
|
651
|
-
* Variation ID
|
|
652
|
-
* form
|
|
654
|
+
* Variation ID. Accepts the canonical `av_…` form or the `external_id:<value>`
|
|
655
|
+
* form.
|
|
653
656
|
*/
|
|
654
657
|
variationId: string;
|
|
655
658
|
}
|
|
656
659
|
|
|
657
660
|
export interface VariationRemoveMemoryLayerParams {
|
|
658
661
|
/**
|
|
659
|
-
* Workspace ID
|
|
662
|
+
* Workspace ID.
|
|
660
663
|
*/
|
|
661
664
|
workspaceId: string;
|
|
662
665
|
|
|
663
666
|
/**
|
|
664
|
-
* Agent ID
|
|
665
|
-
* form
|
|
667
|
+
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
668
|
+
* form.
|
|
666
669
|
*/
|
|
667
670
|
agentId: string;
|
|
668
671
|
|
|
669
672
|
/**
|
|
670
|
-
* Variation ID
|
|
671
|
-
* form
|
|
673
|
+
* Variation ID. Accepts the canonical `av_…` form or the `external_id:<value>`
|
|
674
|
+
* form.
|
|
672
675
|
*/
|
|
673
676
|
variationId: string;
|
|
674
677
|
}
|
|
675
678
|
|
|
676
679
|
export interface VariationUpdateMemoryLayerParams {
|
|
677
680
|
/**
|
|
678
|
-
* Path param: Workspace ID
|
|
681
|
+
* Path param: Workspace ID.
|
|
679
682
|
*/
|
|
680
683
|
workspaceId: string;
|
|
681
684
|
|
|
682
685
|
/**
|
|
683
|
-
* Path param: Agent ID
|
|
684
|
-
* external_id:<value
|
|
686
|
+
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
687
|
+
* `external_id:<value>` form.
|
|
685
688
|
*/
|
|
686
689
|
agentId: string;
|
|
687
690
|
|
|
688
691
|
/**
|
|
689
|
-
* Path param: Variation ID
|
|
690
|
-
* external_id:<value
|
|
692
|
+
* Path param: Variation ID. Accepts the canonical `av_…` form or the
|
|
693
|
+
* `external_id:<value>` form.
|
|
691
694
|
*/
|
|
692
695
|
variationId: string;
|
|
693
696
|
|