@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
@@ -7,12 +7,7 @@ import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
 
9
9
  /**
10
- * AgentService manages AI agents at the WORKSPACE level.
11
- * Agents are workspace-scoped resources that define AI behavior and tool access.
12
- * All operations are implicitly scoped to the workspace determined by the JWT token.
13
- *
14
- * Authentication: Bearer token (JWT)
15
- * Scope: Workspace-level operations
10
+ * Manage AI agents within a workspace. Agents define AI behavior and tool access.
16
11
  */
17
12
  export class WebhookDeliveries extends APIResource {
18
13
  /**
@@ -36,7 +31,7 @@ export type WebhookDeliveriesCursorPagination = CursorPagination<WebhookDelivery
36
31
 
37
32
  export interface WebhookDelivery {
38
33
  /**
39
- * Webhook delivery data
34
+ * Webhook delivery details.
40
35
  */
41
36
  data: WebhookDeliveryData;
42
37
 
@@ -75,7 +70,7 @@ export interface WebhookDeliveryData {
75
70
  | 'OBJECTIVE_EVENT_TYPE_CANCELLED';
76
71
 
77
72
  /**
78
- * Response details (no response_body to avoid storing large payloads)
73
+ * Response details. The response body is not retained.
79
74
  */
80
75
  httpStatusCode: number;
81
76
 
@@ -116,7 +111,7 @@ export interface WebhookDeliveryData {
116
111
 
117
112
  export interface WebhookDeliveryListParams extends CursorPaginationParams {
118
113
  /**
119
- * Path param: Workspace ID (from path).
114
+ * Path param: Workspace ID.
120
115
  */
121
116
  workspaceId: string;
122
117
 
@@ -10,11 +10,8 @@ import { RequestOptions } from '../internal/request-options';
10
10
  import { path } from '../internal/utils/path';
11
11
 
12
12
  /**
13
- * APIKeyService manages workspace-scoped API Keys.
14
- * Each API key belongs to a single workspace, ensuring isolation between environments.
15
- *
16
- * Authentication: Bearer token (JWT)
17
- * Scope: Workspace-level operations
13
+ * Issue, rotate, and revoke API keys for a workspace. Each API key belongs to
14
+ * exactly one workspace, ensuring isolation between environments.
18
15
  */
19
16
  export class APIKeys extends APIResource {
20
17
  /**
@@ -78,9 +75,8 @@ export class APIKeys extends APIResource {
78
75
  export type APIKeysCursorPagination = CursorPagination<APIKey>;
79
76
 
80
77
  /**
81
- * APIKey represents a workspace-scoped API key. Each API key belongs to exactly
82
- * one workspace, ensuring workspace isolation. Authentication is handled via
83
- * Cadenya-issued JWTs signed with the key's own signing secret.
78
+ * An API key scoped to a single workspace. The key's token is used to authenticate
79
+ * requests against that workspace's resources.
84
80
  */
85
81
  export interface APIKey {
86
82
  /**
@@ -89,7 +85,7 @@ export interface APIKey {
89
85
  metadata: Shared.ResourceMetadata;
90
86
 
91
87
  /**
92
- * APIKeySpec contains the API Key-specific fields
88
+ * Configuration for an API key.
93
89
  */
94
90
  spec: APIKeySpec;
95
91
 
@@ -98,24 +94,25 @@ export interface APIKey {
98
94
 
99
95
  export interface APIKeyInfo {
100
96
  /**
101
- * Profile represents a human user at the account level. Profiles are
102
- * account-scoped resources that can be associated with multiple workspaces through
103
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
97
+ * A profile identifies a user or non-human principal (such as an API key) at the
98
+ * account level. Profiles are account-scoped and can be granted access to multiple
99
+ * workspaces.
104
100
  */
105
101
  createdBy?: AccountAPI.Profile;
106
102
  }
107
103
 
108
104
  /**
109
- * APIKeySpec contains the API Key-specific fields
105
+ * Configuration for an API key.
110
106
  */
111
107
  export interface APIKeySpec {
112
108
  /**
113
- * The actual token value (only returned on creation and rotation, read-only)
109
+ * The bearer token used to authenticate as this API key. Returned only on creation
110
+ * and rotation; subsequent reads omit this field.
114
111
  */
115
112
  token?: string;
116
113
 
117
114
  /**
118
- * Description of what this API Key is used for
115
+ * Free-form description of what this API key is used for.
119
116
  */
120
117
  description?: string;
121
118
  }
@@ -129,21 +126,21 @@ export interface APIKeyCreateParams {
129
126
  metadata: Shared.CreateResourceMetadata;
130
127
 
131
128
  /**
132
- * APIKeySpec contains the API Key-specific fields
129
+ * Configuration for an API key.
133
130
  */
134
131
  spec: APIKeySpec;
135
132
  }
136
133
 
137
134
  export interface APIKeyRetrieveParams {
138
135
  /**
139
- * Workspace ID (from path).
136
+ * The workspace the API key belongs to.
140
137
  */
141
138
  workspaceId: string;
142
139
  }
143
140
 
144
141
  export interface APIKeyUpdateParams {
145
142
  /**
146
- * Path param: Workspace ID (from path).
143
+ * Path param: The workspace the API key belongs to.
147
144
  */
148
145
  workspaceId: string;
149
146
 
@@ -156,12 +153,12 @@ export interface APIKeyUpdateParams {
156
153
  metadata?: Shared.UpdateResourceMetadata;
157
154
 
158
155
  /**
159
- * Body param: APIKeySpec contains the API Key-specific fields
156
+ * Body param: Configuration for an API key.
160
157
  */
161
158
  spec?: APIKeySpec;
162
159
 
163
160
  /**
164
- * Body param: Fields to update
161
+ * Body param: Fields to update.
165
162
  */
166
163
  updateMask?: string;
167
164
  }
@@ -195,14 +192,14 @@ export interface APIKeyListParams extends CursorPaginationParams {
195
192
 
196
193
  export interface APIKeyDeleteParams {
197
194
  /**
198
- * Workspace ID (from path).
195
+ * The workspace the API key belongs to.
199
196
  */
200
197
  workspaceId: string;
201
198
  }
202
199
 
203
200
  export interface APIKeyRotateParams {
204
201
  /**
205
- * Workspace ID (from path).
202
+ * The workspace the API key belongs to.
206
203
  */
207
204
  workspaceId: string;
208
205
  }
@@ -32,14 +32,9 @@ import { RequestOptions } from '../../internal/request-options';
32
32
  import { path } from '../../internal/utils/path';
33
33
 
34
34
  /**
35
- * BulkWorkspaceResources is the workspace-scoped service that applies
36
- * a declarative bundle of workspace resources (tool sets, memory
37
- * layers, agents, variations, assignments, schedules) in one async
38
- * operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
39
- * for the full design.
40
- *
41
- * Authentication: Bearer token (JWT)
42
- * Scope: Workspace-level operations
35
+ * Apply a declarative bundle of workspace resources tool sets, memory
36
+ * layers, agents, variations, assignments, and schedules in a single
37
+ * asynchronous operation.
43
38
  */
44
39
  export class BulkWorkspaceResources extends APIResource {
45
40
  results: ResultsAPI.Results = new ResultsAPI.Results(this._client);
@@ -138,17 +133,15 @@ export interface AgentVariationEntry {
138
133
  labels?: { [key: string]: string };
139
134
 
140
135
  /**
141
- * Reconciled list capped at 10 to match the existing variation
142
- * memory-layer-assignment cap.
136
+ * Reconciled list of memory layer assignments. Up to 10 entries.
143
137
  */
144
138
  memoryLayers?: Array<VariationMemoryLayerEntry>;
145
139
  }
146
140
 
147
141
  /**
148
- * BulkWorkspaceApply is the operation resource produced by a call to
149
- * BulkWorkspaceResources.Apply. It is operation-typed (uses OperationMetadata,
150
- * like Objective and ObjectiveEvent) and carries the input bundle in `data`, the
151
- * lifecycle state in `status`, and aggregate counts in `info`.
142
+ * The operation resource produced by a call to BulkWorkspaceResources.Apply. It
143
+ * carries the input bundle in `data`, the lifecycle state in `status`, and
144
+ * aggregate counts in `info`.
152
145
  */
153
146
  export interface BulkWorkspaceApply {
154
147
  data: BulkWorkspaceApplyData;
@@ -213,9 +206,9 @@ export interface BulkWorkspaceApplyInfo {
213
206
  completedAt?: string;
214
207
 
215
208
  /**
216
- * Profile represents a human user at the account level. Profiles are
217
- * account-scoped resources that can be associated with multiple workspaces through
218
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
209
+ * A profile identifies a user or non-human principal (such as an API key) at the
210
+ * account level. Profiles are account-scoped and can be granted access to multiple
211
+ * workspaces.
219
212
  */
220
213
  createdBy?: AccountAPI.Profile;
221
214
 
@@ -368,7 +361,7 @@ export interface VariationMemoryLayerEntry {
368
361
 
369
362
  export interface BulkWorkspaceResourceRetrieveParams {
370
363
  /**
371
- * Workspace ID (from path).
364
+ * Workspace ID.
372
365
  */
373
366
  workspaceId: string;
374
367
  }
@@ -14,14 +14,9 @@ import { RequestOptions } from '../../internal/request-options';
14
14
  import { path } from '../../internal/utils/path';
15
15
 
16
16
  /**
17
- * BulkWorkspaceResources is the workspace-scoped service that applies
18
- * a declarative bundle of workspace resources (tool sets, memory
19
- * layers, agents, variations, assignments, schedules) in one async
20
- * operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
21
- * for the full design.
22
- *
23
- * Authentication: Bearer token (JWT)
24
- * Scope: Workspace-level operations
17
+ * Apply a declarative bundle of workspace resources tool sets, memory
18
+ * layers, agents, variations, assignments, and schedules in a single
19
+ * asynchronous operation.
25
20
  */
26
21
  export class Results extends APIResource {
27
22
  /**
@@ -44,19 +39,17 @@ export class Results extends APIResource {
44
39
  export type BulkWorkspaceApplyResultsCursorPagination = CursorPagination<BulkWorkspaceApplyResult>;
45
40
 
46
41
  /**
47
- * BulkWorkspaceApplyResult is one row of the per-resource result list for a
48
- * BulkWorkspaceApply. Each row is itself an operation (OperationMetadata-typed) so
49
- * it can be paginated, sorted by created_at, and individually addressed. Mirrors
50
- * the Objective → ObjectiveEvent relationship.
42
+ * One row of the per-resource result list for a BulkWorkspaceApply. Each row is
43
+ * itself an operation that can be paginated, sorted by created_at, and addressed
44
+ * individually.
51
45
  */
52
46
  export interface BulkWorkspaceApplyResult {
53
47
  /**
54
- * BulkWorkspaceApplyResultData carries the outcome for a single resource. The
55
- * `type` field is the discriminator string that names the populated `outcome`
56
- * oneof variant (e.g., "toolSet", "memoryEntry"). Every Outcome shell carries an
57
- * `action` enum and either a resulting resource snapshot (for ACTION_CREATED /
58
- * ACTION_UPDATED / ACTION_UNCHANGED / ACTION_DELETED) or a google.rpc.Status (for
59
- * ACTION_FAILED).
48
+ * Outcome for a single resource within a bulk apply. The `type` field is the
49
+ * discriminator string naming the populated `outcome` oneof variant (e.g.,
50
+ * "toolSet", "memoryEntry"). Every outcome shell carries an `action` enum and
51
+ * either a resulting resource snapshot (for ACTION_CREATED, ACTION_UPDATED,
52
+ * ACTION_UNCHANGED, ACTION_DELETED) or a google.rpc.Status (for ACTION_FAILED).
60
53
  */
61
54
  data: BulkWorkspaceApplyResultData;
62
55
 
@@ -68,12 +61,11 @@ export interface BulkWorkspaceApplyResult {
68
61
  }
69
62
 
70
63
  /**
71
- * BulkWorkspaceApplyResultData carries the outcome for a single resource. The
72
- * `type` field is the discriminator string that names the populated `outcome`
73
- * oneof variant (e.g., "toolSet", "memoryEntry"). Every Outcome shell carries an
74
- * `action` enum and either a resulting resource snapshot (for ACTION_CREATED /
75
- * ACTION_UPDATED / ACTION_UNCHANGED / ACTION_DELETED) or a google.rpc.Status (for
76
- * ACTION_FAILED).
64
+ * Outcome for a single resource within a bulk apply. The `type` field is the
65
+ * discriminator string naming the populated `outcome` oneof variant (e.g.,
66
+ * "toolSet", "memoryEntry"). Every outcome shell carries an `action` enum and
67
+ * either a resulting resource snapshot (for ACTION_CREATED, ACTION_UPDATED,
68
+ * ACTION_UNCHANGED, ACTION_DELETED) or a google.rpc.Status (for ACTION_FAILED).
77
69
  */
78
70
  export interface BulkWorkspaceApplyResultData {
79
71
  agent?: BulkWorkspaceApplyResultDataAgentOutcome;
@@ -643,15 +635,14 @@ export interface BulkWorkspaceApplyResultDataVariationAssignmentOutcome {
643
635
  error?: BulkWorkspaceApplyResultDataVariationAssignmentOutcome.Error;
644
636
 
645
637
  /**
646
- * VariationAssignment is a read-only reference to a single tool, tool set, or
647
- * sub-agent attached to a variation. Clients read the full set of assignments via
638
+ * A read-only reference to a single tool, tool set, or sub-agent attached to a
639
+ * variation. Read the full set of assignments via
648
640
  * `AgentVariationInfo.assignments`; mutations go through the dedicated add/remove
649
- * assignment endpoints under
650
- * /v1/agents/{agent_id}/variations/{variation_id}/assignments.
641
+ * assignment endpoints.
651
642
  *
652
- * The `id` identifies the assignment row itself (not the referenced resource) and
653
- * is the handle used to remove the assignment. It is returned by the add endpoint
654
- * and present on every entry in AgentVariationInfo.assignments.
643
+ * The `id` identifies the assignment itself (not the referenced resource) and is
644
+ * the handle used to remove the assignment. It is returned by the add endpoint and
645
+ * present on every entry in `AgentVariationInfo.assignments`.
655
646
  */
656
647
  resource?: VariationsAPI.VariationAssignment;
657
648
  }
@@ -782,7 +773,7 @@ export namespace BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome {
782
773
 
783
774
  export interface ResultListParams extends CursorPaginationParams {
784
775
  /**
785
- * Path param: Workspace ID (from path).
776
+ * Path param: Workspace ID.
786
777
  */
787
778
  workspaceId: string;
788
779
 
@@ -10,16 +10,10 @@ import { RequestOptions } from '../../internal/request-options';
10
10
  import { path } from '../../internal/utils/path';
11
11
 
12
12
  /**
13
- * MemoryService manages memory layers and their entries at the WORKSPACE level.
14
- * Layers are named containers that can be composed into an objective's memory
15
- * stack; entries are the keyed values within a layer.
16
- *
17
- * All operations are implicitly scoped to the workspace determined by the JWT
18
- * token. System-managed layers (e.g., episodic layers created by the runtime)
19
- * cannot be mutated through this API.
20
- *
21
- * Authentication: Bearer token (JWT)
22
- * Scope: Workspace-level operations
13
+ * Manage memory layers and their entries. Layers are named containers that can
14
+ * be composed into an objective's memory stack; entries are the keyed values
15
+ * within a layer. System-managed layers (e.g., episodic layers created by the
16
+ * runtime) cannot be mutated through this API.
23
17
  */
24
18
  export class Entries extends APIResource {
25
19
  /**
@@ -175,9 +169,9 @@ export interface MemoryEntryDetail {
175
169
 
176
170
  export interface MemoryEntryInfo {
177
171
  /**
178
- * Profile represents a human user at the account level. Profiles are
179
- * account-scoped resources that can be associated with multiple workspaces through
180
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
172
+ * A profile identifies a user or non-human principal (such as an API key) at the
173
+ * account level. Profiles are account-scoped and can be granted access to multiple
174
+ * workspaces.
181
175
  */
182
176
  createdBy?: AccountAPI.Profile;
183
177
 
@@ -240,7 +234,7 @@ export interface MemoryEntryUpdateSpec {
240
234
 
241
235
  export interface EntryCreateParams {
242
236
  /**
243
- * Path param: Workspace ID (from path).
237
+ * Path param
244
238
  */
245
239
  workspaceId: string;
246
240
 
@@ -261,27 +255,23 @@ export interface EntryCreateParams {
261
255
  }
262
256
 
263
257
  export interface EntryRetrieveParams {
264
- /**
265
- * Workspace ID (from path).
266
- */
267
258
  workspaceId: string;
268
259
 
269
260
  /**
270
- * Memory layer ID (from path). Accepts canonical memlyr\_… form or
271
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
261
+ * Memory layer ID. Accepts canonical memlyr\_… form or external_id:<value> form.
272
262
  */
273
263
  memoryLayerId: string;
274
264
  }
275
265
 
276
266
  export interface EntryUpdateParams {
277
267
  /**
278
- * Path param: Workspace ID (from path).
268
+ * Path param
279
269
  */
280
270
  workspaceId: string;
281
271
 
282
272
  /**
283
- * Path param: Memory layer ID (from path). Accepts canonical memlyr\_… form or
284
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
273
+ * Path param: Memory layer ID. Accepts canonical memlyr\_… form or
274
+ * external_id:<value> form.
285
275
  */
286
276
  memoryLayerId: string;
287
277
 
@@ -309,7 +299,7 @@ export interface EntryUpdateParams {
309
299
 
310
300
  export interface EntryListParams extends CursorPaginationParams {
311
301
  /**
312
- * Path param: Workspace ID (from path).
302
+ * Path param
313
303
  */
314
304
  workspaceId: string;
315
305
 
@@ -341,14 +331,10 @@ export interface EntryListParams extends CursorPaginationParams {
341
331
  }
342
332
 
343
333
  export interface EntryDeleteParams {
344
- /**
345
- * Workspace ID (from path).
346
- */
347
334
  workspaceId: string;
348
335
 
349
336
  /**
350
- * Memory layer ID (from path). Accepts canonical memlyr\_… form or
351
- * external_id:<value> form (see common.proto "Path-parameter ID resolution").
337
+ * Memory layer ID. Accepts canonical memlyr\_… form or external_id:<value> form.
352
338
  */
353
339
  memoryLayerId: string;
354
340
  }
@@ -26,16 +26,10 @@ import { RequestOptions } from '../../internal/request-options';
26
26
  import { path } from '../../internal/utils/path';
27
27
 
28
28
  /**
29
- * MemoryService manages memory layers and their entries at the WORKSPACE level.
30
- * Layers are named containers that can be composed into an objective's memory
31
- * stack; entries are the keyed values within a layer.
32
- *
33
- * All operations are implicitly scoped to the workspace determined by the JWT
34
- * token. System-managed layers (e.g., episodic layers created by the runtime)
35
- * cannot be mutated through this API.
36
- *
37
- * Authentication: Bearer token (JWT)
38
- * Scope: Workspace-level operations
29
+ * Manage memory layers and their entries. Layers are named containers that can
30
+ * be composed into an objective's memory stack; entries are the keyed values
31
+ * within a layer. System-managed layers (e.g., episodic layers created by the
32
+ * runtime) cannot be mutated through this API.
39
33
  */
40
34
  export class MemoryLayers extends APIResource {
41
35
  entries: EntriesAPI.Entries = new EntriesAPI.Entries(this._client);
@@ -117,9 +111,9 @@ export interface MemoryLayer {
117
111
 
118
112
  export interface MemoryLayerInfo {
119
113
  /**
120
- * Profile represents a human user at the account level. Profiles are
121
- * account-scoped resources that can be associated with multiple workspaces through
122
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
114
+ * A profile identifies a user or non-human principal (such as an API key) at the
115
+ * account level. Profiles are account-scoped and can be granted access to multiple
116
+ * workspaces.
123
117
  */
124
118
  createdBy?: AccountAPI.Profile;
125
119
 
@@ -171,15 +165,12 @@ export interface MemoryLayerCreateParams {
171
165
  }
172
166
 
173
167
  export interface MemoryLayerRetrieveParams {
174
- /**
175
- * Workspace ID (from path).
176
- */
177
168
  workspaceId: string;
178
169
  }
179
170
 
180
171
  export interface MemoryLayerUpdateParams {
181
172
  /**
182
- * Path param: Workspace ID (from path).
173
+ * Path param
183
174
  */
184
175
  workspaceId: string;
185
176
 
@@ -235,9 +226,6 @@ export interface MemoryLayerListParams extends CursorPaginationParams {
235
226
  }
236
227
 
237
228
  export interface MemoryLayerDeleteParams {
238
- /**
239
- * Workspace ID (from path).
240
- */
241
229
  workspaceId: string;
242
230
  }
243
231
 
@@ -8,13 +8,9 @@ import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
10
  /**
11
- * ModelService manages LLM models at the WORKSPACE level.
12
- * Models represent available LLM providers and families (e.g., "anthropic/claude-sonnet-4.6").
13
- * Models are seeded into workspaces and can be enabled or disabled.
14
- * All operations are implicitly scoped to the workspace determined by the JWT token.
15
- *
16
- * Authentication: Bearer token (JWT)
17
- * Scope: Workspace-level operations
11
+ * Manage LLM models available to a workspace. Models represent provider and
12
+ * family pairs (e.g., "anthropic/claude-sonnet-4.6"). Workspaces are seeded
13
+ * with the supported models and you can enable or disable each one.
18
14
  */
19
15
  export class Models extends APIResource {
20
16
  /**
@@ -101,7 +97,7 @@ export interface ModelSpec {
101
97
 
102
98
  export interface ModelRetrieveParams {
103
99
  /**
104
- * Workspace ID (from path).
100
+ * Workspace ID.
105
101
  */
106
102
  workspaceId: string;
107
103
  }
@@ -135,7 +131,7 @@ export interface ModelListParams extends CursorPaginationParams {
135
131
 
136
132
  export interface ModelSetStatusParams {
137
133
  /**
138
- * Path param: Workspace ID (from path).
134
+ * Path param: Workspace ID.
139
135
  */
140
136
  workspaceId: string;
141
137
 
@@ -97,16 +97,16 @@ export interface ObjectiveFeedbackInfo {
97
97
  objective?: Shared.BareMetadata;
98
98
 
99
99
  /**
100
- * Profile represents a human user at the account level. Profiles are
101
- * account-scoped resources that can be associated with multiple workspaces through
102
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
100
+ * A profile identifies a user or non-human principal (such as an API key) at the
101
+ * account level. Profiles are account-scoped and can be granted access to multiple
102
+ * workspaces.
103
103
  */
104
104
  submittedBy?: AccountAPI.Profile;
105
105
  }
106
106
 
107
107
  export interface FeedbackCreateParams {
108
108
  /**
109
- * Path param: Workspace ID (from path).
109
+ * Path param
110
110
  */
111
111
  workspaceId: string;
112
112
 
@@ -125,7 +125,7 @@ export interface FeedbackCreateParams {
125
125
 
126
126
  export interface FeedbackListParams extends CursorPaginationParams {
127
127
  /**
128
- * Path param: Workspace ID (from path).
128
+ * Path param
129
129
  */
130
130
  workspaceId: string;
131
131
  }