@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.
Files changed (186) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +24 -63
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +24 -63
  5. package/client.d.ts.map +1 -1
  6. package/client.js +24 -63
  7. package/client.js.map +1 -1
  8. package/client.mjs +24 -63
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account.d.mts +18 -22
  12. package/resources/account.d.mts.map +1 -1
  13. package/resources/account.d.ts +18 -22
  14. package/resources/account.d.ts.map +1 -1
  15. package/resources/account.js +2 -6
  16. package/resources/account.js.map +1 -1
  17. package/resources/account.mjs +2 -6
  18. package/resources/account.mjs.map +1 -1
  19. package/resources/agents/agents.d.mts +9 -13
  20. package/resources/agents/agents.d.mts.map +1 -1
  21. package/resources/agents/agents.d.ts +9 -13
  22. package/resources/agents/agents.d.ts.map +1 -1
  23. package/resources/agents/agents.js +1 -6
  24. package/resources/agents/agents.js.map +1 -1
  25. package/resources/agents/agents.mjs +1 -6
  26. package/resources/agents/agents.mjs.map +1 -1
  27. package/resources/agents/feedback.d.mts +2 -7
  28. package/resources/agents/feedback.d.mts.map +1 -1
  29. package/resources/agents/feedback.d.ts +2 -7
  30. package/resources/agents/feedback.d.ts.map +1 -1
  31. package/resources/agents/feedback.js +1 -6
  32. package/resources/agents/feedback.js.map +1 -1
  33. package/resources/agents/feedback.mjs +1 -6
  34. package/resources/agents/feedback.mjs.map +1 -1
  35. package/resources/agents/schedules.d.mts +18 -21
  36. package/resources/agents/schedules.d.mts.map +1 -1
  37. package/resources/agents/schedules.d.ts +18 -21
  38. package/resources/agents/schedules.d.ts.map +1 -1
  39. package/resources/agents/schedules.js +2 -6
  40. package/resources/agents/schedules.js.map +1 -1
  41. package/resources/agents/schedules.mjs +2 -6
  42. package/resources/agents/schedules.mjs.map +1 -1
  43. package/resources/agents/variations.d.mts +48 -45
  44. package/resources/agents/variations.d.mts.map +1 -1
  45. package/resources/agents/variations.d.ts +48 -45
  46. package/resources/agents/variations.d.ts.map +1 -1
  47. package/resources/agents/variations.js +3 -0
  48. package/resources/agents/variations.js.map +1 -1
  49. package/resources/agents/variations.mjs +3 -0
  50. package/resources/agents/variations.mjs.map +1 -1
  51. package/resources/agents/webhook-deliveries.d.mts +4 -9
  52. package/resources/agents/webhook-deliveries.d.mts.map +1 -1
  53. package/resources/agents/webhook-deliveries.d.ts +4 -9
  54. package/resources/agents/webhook-deliveries.d.ts.map +1 -1
  55. package/resources/agents/webhook-deliveries.js +1 -6
  56. package/resources/agents/webhook-deliveries.js.map +1 -1
  57. package/resources/agents/webhook-deliveries.mjs +1 -6
  58. package/resources/agents/webhook-deliveries.mjs.map +1 -1
  59. package/resources/api-keys.d.mts +19 -22
  60. package/resources/api-keys.d.mts.map +1 -1
  61. package/resources/api-keys.d.ts +19 -22
  62. package/resources/api-keys.d.ts.map +1 -1
  63. package/resources/api-keys.js +2 -5
  64. package/resources/api-keys.js.map +1 -1
  65. package/resources/api-keys.mjs +2 -5
  66. package/resources/api-keys.mjs.map +1 -1
  67. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
  68. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
  69. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
  70. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
  71. package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
  72. package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
  73. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
  74. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
  75. package/resources/bulk-workspace-resources/results.d.mts +23 -32
  76. package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
  77. package/resources/bulk-workspace-resources/results.d.ts +23 -32
  78. package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
  79. package/resources/bulk-workspace-resources/results.js +3 -8
  80. package/resources/bulk-workspace-resources/results.js.map +1 -1
  81. package/resources/bulk-workspace-resources/results.mjs +3 -8
  82. package/resources/bulk-workspace-resources/results.mjs.map +1 -1
  83. package/resources/memory-layers/entries.d.mts +14 -28
  84. package/resources/memory-layers/entries.d.mts.map +1 -1
  85. package/resources/memory-layers/entries.d.ts +14 -28
  86. package/resources/memory-layers/entries.d.ts.map +1 -1
  87. package/resources/memory-layers/entries.js +4 -10
  88. package/resources/memory-layers/entries.js.map +1 -1
  89. package/resources/memory-layers/entries.mjs +4 -10
  90. package/resources/memory-layers/entries.mjs.map +1 -1
  91. package/resources/memory-layers/memory-layers.d.mts +8 -20
  92. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  93. package/resources/memory-layers/memory-layers.d.ts +8 -20
  94. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  95. package/resources/memory-layers/memory-layers.js +4 -10
  96. package/resources/memory-layers/memory-layers.js.map +1 -1
  97. package/resources/memory-layers/memory-layers.mjs +4 -10
  98. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  99. package/resources/models.d.mts +5 -9
  100. package/resources/models.d.mts.map +1 -1
  101. package/resources/models.d.ts +5 -9
  102. package/resources/models.d.ts.map +1 -1
  103. package/resources/models.js +3 -7
  104. package/resources/models.js.map +1 -1
  105. package/resources/models.mjs +3 -7
  106. package/resources/models.mjs.map +1 -1
  107. package/resources/objectives/feedback.d.mts +5 -5
  108. package/resources/objectives/feedback.d.ts +5 -5
  109. package/resources/objectives/objectives.d.mts +22 -31
  110. package/resources/objectives/objectives.d.mts.map +1 -1
  111. package/resources/objectives/objectives.d.ts +22 -31
  112. package/resources/objectives/objectives.d.ts.map +1 -1
  113. package/resources/objectives/objectives.js.map +1 -1
  114. package/resources/objectives/objectives.mjs.map +1 -1
  115. package/resources/objectives/tasks.d.mts +1 -4
  116. package/resources/objectives/tasks.d.mts.map +1 -1
  117. package/resources/objectives/tasks.d.ts +1 -4
  118. package/resources/objectives/tasks.d.ts.map +1 -1
  119. package/resources/objectives/tool-calls.d.mts +8 -11
  120. package/resources/objectives/tool-calls.d.mts.map +1 -1
  121. package/resources/objectives/tool-calls.d.ts +8 -11
  122. package/resources/objectives/tool-calls.d.ts.map +1 -1
  123. package/resources/objectives/tools.d.mts +1 -1
  124. package/resources/objectives/tools.d.ts +1 -1
  125. package/resources/tool-sets/tool-sets.d.mts +31 -35
  126. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  127. package/resources/tool-sets/tool-sets.d.ts +31 -35
  128. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  129. package/resources/tool-sets/tool-sets.js +4 -8
  130. package/resources/tool-sets/tool-sets.js.map +1 -1
  131. package/resources/tool-sets/tool-sets.mjs +4 -8
  132. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  133. package/resources/tool-sets/tools.d.mts +16 -22
  134. package/resources/tool-sets/tools.d.mts.map +1 -1
  135. package/resources/tool-sets/tools.d.ts +16 -22
  136. package/resources/tool-sets/tools.d.ts.map +1 -1
  137. package/resources/tool-sets/tools.js +4 -8
  138. package/resources/tool-sets/tools.js.map +1 -1
  139. package/resources/tool-sets/tools.mjs +4 -8
  140. package/resources/tool-sets/tools.mjs.map +1 -1
  141. package/resources/uploads.d.mts +13 -17
  142. package/resources/uploads.d.mts.map +1 -1
  143. package/resources/uploads.d.ts +13 -17
  144. package/resources/uploads.d.ts.map +1 -1
  145. package/resources/uploads.js +3 -7
  146. package/resources/uploads.js.map +1 -1
  147. package/resources/uploads.mjs +3 -7
  148. package/resources/uploads.mjs.map +1 -1
  149. package/resources/workspace-secrets.d.mts +7 -7
  150. package/resources/workspace-secrets.d.ts +7 -7
  151. package/resources/workspaces.d.mts +2 -6
  152. package/resources/workspaces.d.mts.map +1 -1
  153. package/resources/workspaces.d.ts +2 -6
  154. package/resources/workspaces.d.ts.map +1 -1
  155. package/resources/workspaces.js +2 -6
  156. package/resources/workspaces.js.map +1 -1
  157. package/resources/workspaces.mjs +2 -6
  158. package/resources/workspaces.mjs.map +1 -1
  159. package/src/client.ts +24 -63
  160. package/src/resources/account.ts +18 -22
  161. package/src/resources/agents/agents.ts +9 -13
  162. package/src/resources/agents/feedback.ts +2 -7
  163. package/src/resources/agents/schedules.ts +18 -21
  164. package/src/resources/agents/variations.ts +48 -45
  165. package/src/resources/agents/webhook-deliveries.ts +4 -9
  166. package/src/resources/api-keys.ts +19 -22
  167. package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
  168. package/src/resources/bulk-workspace-resources/results.ts +23 -32
  169. package/src/resources/memory-layers/entries.ts +14 -28
  170. package/src/resources/memory-layers/memory-layers.ts +8 -20
  171. package/src/resources/models.ts +5 -9
  172. package/src/resources/objectives/feedback.ts +5 -5
  173. package/src/resources/objectives/objectives.ts +22 -31
  174. package/src/resources/objectives/tasks.ts +1 -4
  175. package/src/resources/objectives/tool-calls.ts +8 -11
  176. package/src/resources/objectives/tools.ts +1 -1
  177. package/src/resources/tool-sets/tool-sets.ts +31 -35
  178. package/src/resources/tool-sets/tools.ts +16 -22
  179. package/src/resources/uploads.ts +13 -17
  180. package/src/resources/workspace-secrets.ts +7 -7
  181. package/src/resources/workspaces.ts +2 -6
  182. package/src/version.ts +1 -1
  183. package/version.d.mts +1 -1
  184. package/version.d.ts +1 -1
  185. package/version.js +1 -1
  186. 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
- * AccountService manages account-level operations.
941
- * Accounts are the top-level organizational unit in the system.
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
- * AgentService manages AI agents at the WORKSPACE level.
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
- * MemoryService manages memory layers and their entries at the WORKSPACE level.
960
- * Layers are named containers that can be composed into an objective's memory
961
- * stack; entries are the keyed values within a layer.
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
- * UploadService issues short-lived presigned URLs for direct client-to-object-
973
- * storage uploads at the WORKSPACE level. Created uploads can be referenced by
974
- * id when creating or updating resources that accept binary content (e.g.,
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
- * ModelService manages LLM models at the WORKSPACE level.
983
- * Models represent available LLM providers and families (e.g., "anthropic/claude-sonnet-4.6").
984
- * Models are seeded into workspaces and can be enabled or disabled.
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
- * ToolService manages tool sets and tools at the WORKSPACE level.
994
- * Tool sets group related tools, and tools define specific capabilities for agents.
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
- * Authentication: Bearer token (JWT)
1001
- * Scope: Workspace-level operations
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
- * APIKeyService manages workspace-scoped API Keys.
1006
- * Each API key belongs to a single workspace, ensuring isolation between environments.
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
- * WorkspaceService manages workspaces at the ACCOUNT level.
1015
- * This service is responsible for creating and listing workspaces within an account.
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
- * BulkWorkspaceResources is the workspace-scoped service that applies
1025
- * a declarative bundle of workspace resources (tool sets, memory
1026
- * layers, agents, variations, assignments, schedules) in one async
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
  }
@@ -7,12 +7,8 @@ import { APIPromise } from '../core/api-promise';
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
 
9
9
  /**
10
- * AccountService manages account-level operations.
11
- * Accounts are the top-level organizational unit in the system.
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
- * Account is an account resource.
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
- * AccountInfo contains information about the account.
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
- * AccountSpec contains the specification for an account.
47
+ * Configuration for an account.
51
48
  */
52
49
  spec: AccountSpec;
53
50
  }
54
51
 
55
52
  export namespace Account {
56
53
  /**
57
- * AccountInfo contains information about the account.
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
- * AccountSpec contains the specification for an account.
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
- * Profile represents a human user at the account level. Profiles are
84
- * account-scoped resources that can be associated with multiple workspaces through
85
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
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
- * ProfileSpec contains the profile-specific fields
92
+ * Configuration for a profile.
96
93
  */
97
94
  spec: ProfileSpec;
98
95
  }
99
96
 
100
97
  /**
101
- * ProfileSpec contains the profile-specific fields
98
+ * Configuration for a profile.
102
99
  */
103
100
  export interface ProfileSpec {
104
101
  /**
105
- * Type is the type of profile. User's are humans, API keys are computers. You know
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 user (required, unique per account)
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 for the user (e.g., "Bobby Tables")
113
+ * Display name (e.g., "Bobby Tables").
117
114
  */
118
115
  name?: string;
119
116
  }
120
117
 
121
118
  /**
122
- * RotateWebhookEventsHmacSecretResponse is a response to a
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
- * AgentService manages AI agents at the WORKSPACE level.
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
- * Profile represents a human user at the account level. Profiles are
160
- * account-scoped resources that can be associated with multiple workspaces through
161
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
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 (from path).
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 (from path).
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 set to true you may use more of your alloted API rate-limit
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 (from path).
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
- * AgentService manages AI agents at the WORKSPACE level.
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: Workspace ID (from path).
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
- * AgentScheduleService manages recurring schedules attached to agents.
14
- * Schedules trigger objectives on a cadence defined by AgentScheduleSpec.Schedule.
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
- * Profile represents a human user at the account level. Profiles are
108
- * account-scoped resources that can be associated with multiple workspaces through
109
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
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 (from path).
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 (from path).
279
+ * Workspace ID.
284
280
  */
285
281
  workspaceId: string;
286
282
 
287
283
  /**
288
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
289
- * form (see common.proto "Path-parameter ID resolution").
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 (from path).
292
+ * Path param: Workspace ID.
297
293
  */
298
294
  workspaceId: string;
299
295
 
300
296
  /**
301
- * Path param: Agent ID (from path). Accepts canonical agent\_… form or
302
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 (from path).
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 set to true you may use more of your alloted API rate-limit.
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 (from path).
356
+ * Workspace ID.
360
357
  */
361
358
  workspaceId: string;
362
359
 
363
360
  /**
364
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
365
- * form (see common.proto "Path-parameter ID resolution").
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
- * Profile represents a human user at the account level. Profiles are
193
- * account-scoped resources that can be associated with multiple workspaces through
194
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
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
- * VariationAssignment is a read-only reference to a single tool, tool set, or
406
- * sub-agent attached to a variation. Clients read the full set of assignments via
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 under
409
- * /v1/agents/{agent_id}/variations/{variation_id}/assignments.
411
+ * assignment endpoints.
410
412
  *
411
- * The `id` identifies the assignment row itself (not the referenced resource) and
412
- * is the handle used to remove the assignment. It is returned by the add endpoint
413
- * and present on every entry in AgentVariationInfo.assignments.
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 (from path).
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 (from path).
509
+ * Workspace ID.
508
510
  */
509
511
  workspaceId: string;
510
512
 
511
513
  /**
512
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
513
- * form (see common.proto "Path-parameter ID resolution").
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 (from path).
522
+ * Path param: Workspace ID.
521
523
  */
522
524
  workspaceId: string;
523
525
 
524
526
  /**
525
- * Path param: Agent ID (from path). Accepts canonical agent\_… form or
526
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 (from path).
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 set to true you may use more of your alloted API rate-limit
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 (from path).
577
+ * Workspace ID.
575
578
  */
576
579
  workspaceId: string;
577
580
 
578
581
  /**
579
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
580
- * form (see common.proto "Path-parameter ID resolution").
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 (from path).
590
+ * Path param: Workspace ID.
588
591
  */
589
592
  workspaceId: string;
590
593
 
591
594
  /**
592
- * Path param: Agent ID (from path). Accepts canonical agent\_… form or
593
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 (from path).
618
+ * Path param: Workspace ID.
616
619
  */
617
620
  workspaceId: string;
618
621
 
619
622
  /**
620
- * Path param: Agent ID (from path). Accepts canonical agent\_… form or
621
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 memlyr\_… form or
627
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 (from path).
643
+ * Workspace ID.
641
644
  */
642
645
  workspaceId: string;
643
646
 
644
647
  /**
645
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
646
- * form (see common.proto "Path-parameter ID resolution").
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 (from path). Accepts canonical av\_… form or external_id:<value>
652
- * form (see common.proto "Path-parameter ID resolution").
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 (from path).
662
+ * Workspace ID.
660
663
  */
661
664
  workspaceId: string;
662
665
 
663
666
  /**
664
- * Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
665
- * form (see common.proto "Path-parameter ID resolution").
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 (from path). Accepts canonical av\_… form or external_id:<value>
671
- * form (see common.proto "Path-parameter ID resolution").
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 (from path).
681
+ * Path param: Workspace ID.
679
682
  */
680
683
  workspaceId: string;
681
684
 
682
685
  /**
683
- * Path param: Agent ID (from path). Accepts canonical agent\_… form or
684
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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 (from path). Accepts canonical av\_… form or
690
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
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