@cadenya/cadenya 0.67.0 → 0.69.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 (222) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +28 -67
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +28 -67
  5. package/client.d.ts.map +1 -1
  6. package/client.js +25 -64
  7. package/client.js.map +1 -1
  8. package/client.mjs +25 -64
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account.d.mts +34 -33
  12. package/resources/account.d.mts.map +1 -1
  13. package/resources/account.d.ts +34 -33
  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/access.d.mts +47 -0
  60. package/resources/api-keys/access.d.mts.map +1 -0
  61. package/resources/api-keys/access.d.ts +47 -0
  62. package/resources/api-keys/access.d.ts.map +1 -0
  63. package/resources/api-keys/access.js +41 -0
  64. package/resources/api-keys/access.js.map +1 -0
  65. package/resources/api-keys/access.mjs +37 -0
  66. package/resources/api-keys/access.mjs.map +1 -0
  67. package/resources/api-keys/api-keys.d.mts +213 -0
  68. package/resources/api-keys/api-keys.d.mts.map +1 -0
  69. package/resources/api-keys/api-keys.d.ts +213 -0
  70. package/resources/api-keys/api-keys.d.ts.map +1 -0
  71. package/resources/api-keys/api-keys.js +65 -0
  72. package/resources/api-keys/api-keys.js.map +1 -0
  73. package/resources/api-keys/api-keys.mjs +60 -0
  74. package/resources/api-keys/api-keys.mjs.map +1 -0
  75. package/resources/api-keys/index.d.mts +3 -0
  76. package/resources/api-keys/index.d.mts.map +1 -0
  77. package/resources/api-keys/index.d.ts +3 -0
  78. package/resources/api-keys/index.d.ts.map +1 -0
  79. package/resources/api-keys/index.js +9 -0
  80. package/resources/api-keys/index.js.map +1 -0
  81. package/resources/api-keys/index.mjs +4 -0
  82. package/resources/api-keys/index.mjs.map +1 -0
  83. package/resources/api-keys.d.mts +1 -154
  84. package/resources/api-keys.d.mts.map +1 -1
  85. package/resources/api-keys.d.ts +1 -154
  86. package/resources/api-keys.d.ts.map +1 -1
  87. package/resources/api-keys.js +2 -62
  88. package/resources/api-keys.js.map +1 -1
  89. package/resources/api-keys.mjs +1 -60
  90. package/resources/api-keys.mjs.map +1 -1
  91. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
  92. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
  93. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
  94. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
  95. package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
  96. package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
  97. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
  98. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
  99. package/resources/bulk-workspace-resources/results.d.mts +23 -32
  100. package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
  101. package/resources/bulk-workspace-resources/results.d.ts +23 -32
  102. package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
  103. package/resources/bulk-workspace-resources/results.js +3 -8
  104. package/resources/bulk-workspace-resources/results.js.map +1 -1
  105. package/resources/bulk-workspace-resources/results.mjs +3 -8
  106. package/resources/bulk-workspace-resources/results.mjs.map +1 -1
  107. package/resources/index.d.mts +2 -2
  108. package/resources/index.d.mts.map +1 -1
  109. package/resources/index.d.ts +2 -2
  110. package/resources/index.d.ts.map +1 -1
  111. package/resources/index.js +1 -1
  112. package/resources/index.js.map +1 -1
  113. package/resources/index.mjs +1 -1
  114. package/resources/index.mjs.map +1 -1
  115. package/resources/memory-layers/entries.d.mts +14 -28
  116. package/resources/memory-layers/entries.d.mts.map +1 -1
  117. package/resources/memory-layers/entries.d.ts +14 -28
  118. package/resources/memory-layers/entries.d.ts.map +1 -1
  119. package/resources/memory-layers/entries.js +4 -10
  120. package/resources/memory-layers/entries.js.map +1 -1
  121. package/resources/memory-layers/entries.mjs +4 -10
  122. package/resources/memory-layers/entries.mjs.map +1 -1
  123. package/resources/memory-layers/memory-layers.d.mts +8 -20
  124. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  125. package/resources/memory-layers/memory-layers.d.ts +8 -20
  126. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  127. package/resources/memory-layers/memory-layers.js +4 -10
  128. package/resources/memory-layers/memory-layers.js.map +1 -1
  129. package/resources/memory-layers/memory-layers.mjs +4 -10
  130. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  131. package/resources/models.d.mts +5 -9
  132. package/resources/models.d.mts.map +1 -1
  133. package/resources/models.d.ts +5 -9
  134. package/resources/models.d.ts.map +1 -1
  135. package/resources/models.js +3 -7
  136. package/resources/models.js.map +1 -1
  137. package/resources/models.mjs +3 -7
  138. package/resources/models.mjs.map +1 -1
  139. package/resources/objectives/feedback.d.mts +5 -5
  140. package/resources/objectives/feedback.d.ts +5 -5
  141. package/resources/objectives/objectives.d.mts +22 -31
  142. package/resources/objectives/objectives.d.mts.map +1 -1
  143. package/resources/objectives/objectives.d.ts +22 -31
  144. package/resources/objectives/objectives.d.ts.map +1 -1
  145. package/resources/objectives/objectives.js.map +1 -1
  146. package/resources/objectives/objectives.mjs.map +1 -1
  147. package/resources/objectives/tasks.d.mts +1 -4
  148. package/resources/objectives/tasks.d.mts.map +1 -1
  149. package/resources/objectives/tasks.d.ts +1 -4
  150. package/resources/objectives/tasks.d.ts.map +1 -1
  151. package/resources/objectives/tool-calls.d.mts +8 -11
  152. package/resources/objectives/tool-calls.d.mts.map +1 -1
  153. package/resources/objectives/tool-calls.d.ts +8 -11
  154. package/resources/objectives/tool-calls.d.ts.map +1 -1
  155. package/resources/objectives/tools.d.mts +1 -1
  156. package/resources/objectives/tools.d.ts +1 -1
  157. package/resources/tool-sets/tool-sets.d.mts +31 -35
  158. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  159. package/resources/tool-sets/tool-sets.d.ts +31 -35
  160. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  161. package/resources/tool-sets/tool-sets.js +4 -8
  162. package/resources/tool-sets/tool-sets.js.map +1 -1
  163. package/resources/tool-sets/tool-sets.mjs +4 -8
  164. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  165. package/resources/tool-sets/tools.d.mts +16 -22
  166. package/resources/tool-sets/tools.d.mts.map +1 -1
  167. package/resources/tool-sets/tools.d.ts +16 -22
  168. package/resources/tool-sets/tools.d.ts.map +1 -1
  169. package/resources/tool-sets/tools.js +4 -8
  170. package/resources/tool-sets/tools.js.map +1 -1
  171. package/resources/tool-sets/tools.mjs +4 -8
  172. package/resources/tool-sets/tools.mjs.map +1 -1
  173. package/resources/uploads.d.mts +13 -17
  174. package/resources/uploads.d.mts.map +1 -1
  175. package/resources/uploads.d.ts +13 -17
  176. package/resources/uploads.d.ts.map +1 -1
  177. package/resources/uploads.js +3 -7
  178. package/resources/uploads.js.map +1 -1
  179. package/resources/uploads.mjs +3 -7
  180. package/resources/uploads.mjs.map +1 -1
  181. package/resources/workspace-secrets.d.mts +7 -7
  182. package/resources/workspace-secrets.d.ts +7 -7
  183. package/resources/workspaces.d.mts +2 -6
  184. package/resources/workspaces.d.mts.map +1 -1
  185. package/resources/workspaces.d.ts +2 -6
  186. package/resources/workspaces.d.ts.map +1 -1
  187. package/resources/workspaces.js +2 -6
  188. package/resources/workspaces.js.map +1 -1
  189. package/resources/workspaces.mjs +2 -6
  190. package/resources/workspaces.mjs.map +1 -1
  191. package/src/client.ts +36 -79
  192. package/src/resources/account.ts +35 -32
  193. package/src/resources/agents/agents.ts +9 -13
  194. package/src/resources/agents/feedback.ts +2 -7
  195. package/src/resources/agents/schedules.ts +18 -21
  196. package/src/resources/agents/variations.ts +48 -45
  197. package/src/resources/agents/webhook-deliveries.ts +4 -9
  198. package/src/resources/api-keys/access.ts +79 -0
  199. package/src/resources/api-keys/api-keys.ts +282 -0
  200. package/src/resources/api-keys/index.ts +13 -0
  201. package/src/resources/api-keys.ts +1 -221
  202. package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
  203. package/src/resources/bulk-workspace-resources/results.ts +23 -32
  204. package/src/resources/index.ts +2 -4
  205. package/src/resources/memory-layers/entries.ts +14 -28
  206. package/src/resources/memory-layers/memory-layers.ts +8 -20
  207. package/src/resources/models.ts +5 -9
  208. package/src/resources/objectives/feedback.ts +5 -5
  209. package/src/resources/objectives/objectives.ts +22 -31
  210. package/src/resources/objectives/tasks.ts +1 -4
  211. package/src/resources/objectives/tool-calls.ts +8 -11
  212. package/src/resources/objectives/tools.ts +1 -1
  213. package/src/resources/tool-sets/tool-sets.ts +31 -35
  214. package/src/resources/tool-sets/tools.ts +16 -22
  215. package/src/resources/uploads.ts +13 -17
  216. package/src/resources/workspace-secrets.ts +7 -7
  217. package/src/resources/workspaces.ts +2 -6
  218. package/src/version.ts +1 -1
  219. package/version.d.mts +1 -1
  220. package/version.d.ts +1 -1
  221. package/version.js +1 -1
  222. package/version.mjs +1 -1
@@ -1,223 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import * as AccountAPI from './account';
5
- import * as Shared from './shared';
6
- import { APIPromise } from '../core/api-promise';
7
- import { CursorPagination, type CursorPaginationParams, PagePromise } from '../core/pagination';
8
- import { buildHeaders } from '../internal/headers';
9
- import { RequestOptions } from '../internal/request-options';
10
- import { path } from '../internal/utils/path';
11
-
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
18
- */
19
- export class APIKeys extends APIResource {
20
- /**
21
- * Creates a new API key in the workspace.
22
- */
23
- create(workspaceID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey> {
24
- return this._client.post(path`/v1/workspaces/${workspaceID}/api_keys`, { body, ...options });
25
- }
26
-
27
- /**
28
- * Retrieves an API key by ID from the workspace
29
- */
30
- retrieve(id: string, params: APIKeyRetrieveParams, options?: RequestOptions): APIPromise<APIKey> {
31
- const { workspaceId } = params;
32
- return this._client.get(path`/v1/workspaces/${workspaceId}/api_keys/${id}`, options);
33
- }
34
-
35
- /**
36
- * Updates an API key in the workspace
37
- */
38
- update(id: string, params: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey> {
39
- const { workspaceId, ...body } = params;
40
- return this._client.patch(path`/v1/workspaces/${workspaceId}/api_keys/${id}`, { body, ...options });
41
- }
42
-
43
- /**
44
- * Lists all API keys in the workspace
45
- */
46
- list(
47
- workspaceID: string,
48
- query: APIKeyListParams | null | undefined = {},
49
- options?: RequestOptions,
50
- ): PagePromise<APIKeysCursorPagination, APIKey> {
51
- return this._client.getAPIList(path`/v1/workspaces/${workspaceID}/api_keys`, CursorPagination<APIKey>, {
52
- query,
53
- ...options,
54
- });
55
- }
56
-
57
- /**
58
- * Deletes an API key from the workspace
59
- */
60
- delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<void> {
61
- const { workspaceId } = params;
62
- return this._client.delete(path`/v1/workspaces/${workspaceId}/api_keys/${id}`, {
63
- ...options,
64
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
65
- });
66
- }
67
-
68
- /**
69
- * Rotates an API Key and returns a new token. All previous API Key tokens in use
70
- * will be invalidated.
71
- */
72
- rotate(id: string, params: APIKeyRotateParams, options?: RequestOptions): APIPromise<APIKey> {
73
- const { workspaceId } = params;
74
- return this._client.put(path`/v1/workspaces/${workspaceId}/api_keys/${id}/rotate`, options);
75
- }
76
- }
77
-
78
- export type APIKeysCursorPagination = CursorPagination<APIKey>;
79
-
80
- /**
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.
84
- */
85
- export interface APIKey {
86
- /**
87
- * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
88
- */
89
- metadata: Shared.ResourceMetadata;
90
-
91
- /**
92
- * APIKeySpec contains the API Key-specific fields
93
- */
94
- spec: APIKeySpec;
95
-
96
- info?: APIKeyInfo;
97
- }
98
-
99
- export interface APIKeyInfo {
100
- /**
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).
104
- */
105
- createdBy?: AccountAPI.Profile;
106
- }
107
-
108
- /**
109
- * APIKeySpec contains the API Key-specific fields
110
- */
111
- export interface APIKeySpec {
112
- /**
113
- * The actual token value (only returned on creation and rotation, read-only)
114
- */
115
- token?: string;
116
-
117
- /**
118
- * Description of what this API Key is used for
119
- */
120
- description?: string;
121
- }
122
-
123
- export interface APIKeyCreateParams {
124
- /**
125
- * CreateResourceMetadata contains the user-provided fields for creating a
126
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
127
- * profile_id, created_at) are excluded since they are set by the server.
128
- */
129
- metadata: Shared.CreateResourceMetadata;
130
-
131
- /**
132
- * APIKeySpec contains the API Key-specific fields
133
- */
134
- spec: APIKeySpec;
135
- }
136
-
137
- export interface APIKeyRetrieveParams {
138
- /**
139
- * Workspace ID (from path).
140
- */
141
- workspaceId: string;
142
- }
143
-
144
- export interface APIKeyUpdateParams {
145
- /**
146
- * Path param: Workspace ID (from path).
147
- */
148
- workspaceId: string;
149
-
150
- /**
151
- * Body param: UpdateResourceMetadata contains the user-provided fields for
152
- * updating a workspace-scoped resource. Read-only fields (id, account_id,
153
- * workspace_id, profile_id, created_at) are excluded since they are set by the
154
- * server.
155
- */
156
- metadata?: Shared.UpdateResourceMetadata;
157
-
158
- /**
159
- * Body param: APIKeySpec contains the API Key-specific fields
160
- */
161
- spec?: APIKeySpec;
162
-
163
- /**
164
- * Body param: Fields to update
165
- */
166
- updateMask?: string;
167
- }
168
-
169
- export interface APIKeyListParams extends CursorPaginationParams {
170
- /**
171
- * Filter by bundle_key — return only resources owned by this bundle.
172
- */
173
- bundleKey?: string;
174
-
175
- /**
176
- * When set to true you may use more of your alloted API rate-limit
177
- */
178
- includeInfo?: boolean;
179
-
180
- /**
181
- * Filter expression (query param: prefix)
182
- */
183
- prefix?: string;
184
-
185
- /**
186
- * Free-form search query
187
- */
188
- query?: string;
189
-
190
- /**
191
- * Sort order for results (asc or desc by creation time)
192
- */
193
- sortOrder?: string;
194
- }
195
-
196
- export interface APIKeyDeleteParams {
197
- /**
198
- * Workspace ID (from path).
199
- */
200
- workspaceId: string;
201
- }
202
-
203
- export interface APIKeyRotateParams {
204
- /**
205
- * Workspace ID (from path).
206
- */
207
- workspaceId: string;
208
- }
209
-
210
- export declare namespace APIKeys {
211
- export {
212
- type APIKey as APIKey,
213
- type APIKeyInfo as APIKeyInfo,
214
- type APIKeySpec as APIKeySpec,
215
- type APIKeysCursorPagination as APIKeysCursorPagination,
216
- type APIKeyCreateParams as APIKeyCreateParams,
217
- type APIKeyRetrieveParams as APIKeyRetrieveParams,
218
- type APIKeyUpdateParams as APIKeyUpdateParams,
219
- type APIKeyListParams as APIKeyListParams,
220
- type APIKeyDeleteParams as APIKeyDeleteParams,
221
- type APIKeyRotateParams as APIKeyRotateParams,
222
- };
223
- }
3
+ export * from './api-keys/index';
@@ -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
 
@@ -7,16 +7,14 @@ export {
7
7
  type APIKeyInfo,
8
8
  type APIKeySpec,
9
9
  type APIKeyCreateParams,
10
- type APIKeyRetrieveParams,
11
10
  type APIKeyUpdateParams,
12
11
  type APIKeyListParams,
13
- type APIKeyDeleteParams,
14
- type APIKeyRotateParams,
15
12
  type APIKeysCursorPagination,
16
- } from './api-keys';
13
+ } from './api-keys/api-keys';
17
14
  export {
18
15
  AccountResource,
19
16
  type Account,
17
+ type AccountInfo,
20
18
  type AccountSpec,
21
19
  type Profile,
22
20
  type ProfileSpec,
@@ -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
  }