@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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +28 -67
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -67
- package/client.d.ts.map +1 -1
- package/client.js +25 -64
- package/client.js.map +1 -1
- package/client.mjs +25 -64
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +34 -33
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +34 -33
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -6
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -6
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +9 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +9 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +1 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +2 -7
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +2 -7
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +1 -6
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +1 -6
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +18 -21
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +18 -21
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +2 -6
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +2 -6
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +48 -45
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +48 -45
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +3 -0
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +3 -0
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +4 -9
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +4 -9
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +1 -6
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +1 -6
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys/access.d.mts +47 -0
- package/resources/api-keys/access.d.mts.map +1 -0
- package/resources/api-keys/access.d.ts +47 -0
- package/resources/api-keys/access.d.ts.map +1 -0
- package/resources/api-keys/access.js +41 -0
- package/resources/api-keys/access.js.map +1 -0
- package/resources/api-keys/access.mjs +37 -0
- package/resources/api-keys/access.mjs.map +1 -0
- package/resources/api-keys/api-keys.d.mts +213 -0
- package/resources/api-keys/api-keys.d.mts.map +1 -0
- package/resources/api-keys/api-keys.d.ts +213 -0
- package/resources/api-keys/api-keys.d.ts.map +1 -0
- package/resources/api-keys/api-keys.js +65 -0
- package/resources/api-keys/api-keys.js.map +1 -0
- package/resources/api-keys/api-keys.mjs +60 -0
- package/resources/api-keys/api-keys.mjs.map +1 -0
- package/resources/api-keys/index.d.mts +3 -0
- package/resources/api-keys/index.d.mts.map +1 -0
- package/resources/api-keys/index.d.ts +3 -0
- package/resources/api-keys/index.d.ts.map +1 -0
- package/resources/api-keys/index.js +9 -0
- package/resources/api-keys/index.js.map +1 -0
- package/resources/api-keys/index.mjs +4 -0
- package/resources/api-keys/index.mjs.map +1 -0
- package/resources/api-keys.d.mts +1 -154
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -154
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +2 -62
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +1 -60
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +23 -32
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +23 -32
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +3 -8
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +3 -8
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +14 -28
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +14 -28
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +4 -10
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +4 -10
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +8 -20
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +8 -20
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +4 -10
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +4 -10
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +5 -9
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +5 -9
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -7
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -7
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +5 -5
- package/resources/objectives/feedback.d.ts +5 -5
- package/resources/objectives/objectives.d.mts +22 -31
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +22 -31
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +1 -4
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +1 -4
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tool-calls.d.mts +8 -11
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +8 -11
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tools.d.mts +1 -1
- package/resources/objectives/tools.d.ts +1 -1
- package/resources/tool-sets/tool-sets.d.mts +31 -35
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +31 -35
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +4 -8
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +4 -8
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +16 -22
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +16 -22
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +4 -8
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +4 -8
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -17
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -17
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +3 -7
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +3 -7
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +7 -7
- package/resources/workspace-secrets.d.ts +7 -7
- package/resources/workspaces.d.mts +2 -6
- package/resources/workspaces.d.mts.map +1 -1
- package/resources/workspaces.d.ts +2 -6
- package/resources/workspaces.d.ts.map +1 -1
- package/resources/workspaces.js +2 -6
- package/resources/workspaces.js.map +1 -1
- package/resources/workspaces.mjs +2 -6
- package/resources/workspaces.mjs.map +1 -1
- package/src/client.ts +36 -79
- package/src/resources/account.ts +35 -32
- package/src/resources/agents/agents.ts +9 -13
- package/src/resources/agents/feedback.ts +2 -7
- package/src/resources/agents/schedules.ts +18 -21
- package/src/resources/agents/variations.ts +48 -45
- package/src/resources/agents/webhook-deliveries.ts +4 -9
- package/src/resources/api-keys/access.ts +79 -0
- package/src/resources/api-keys/api-keys.ts +282 -0
- package/src/resources/api-keys/index.ts +13 -0
- package/src/resources/api-keys.ts +1 -221
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
- package/src/resources/bulk-workspace-resources/results.ts +23 -32
- package/src/resources/index.ts +2 -4
- package/src/resources/memory-layers/entries.ts +14 -28
- package/src/resources/memory-layers/memory-layers.ts +8 -20
- package/src/resources/models.ts +5 -9
- package/src/resources/objectives/feedback.ts +5 -5
- package/src/resources/objectives/objectives.ts +22 -31
- package/src/resources/objectives/tasks.ts +1 -4
- package/src/resources/objectives/tool-calls.ts +8 -11
- package/src/resources/objectives/tools.ts +1 -1
- package/src/resources/tool-sets/tool-sets.ts +31 -35
- package/src/resources/tool-sets/tools.ts +16 -22
- package/src/resources/uploads.ts +13 -17
- package/src/resources/workspace-secrets.ts +7 -7
- package/src/resources/workspaces.ts +2 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,223 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
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
|
|
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
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
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
|
-
*
|
|
217
|
-
* account-scoped
|
|
218
|
-
*
|
|
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
|
|
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
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
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
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
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
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
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
|
-
*
|
|
647
|
-
*
|
|
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
|
|
650
|
-
* /v1/agents/{agent_id}/variations/{variation_id}/assignments.
|
|
641
|
+
* assignment endpoints.
|
|
651
642
|
*
|
|
652
|
-
* The `id` identifies the assignment
|
|
653
|
-
*
|
|
654
|
-
*
|
|
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
|
|
776
|
+
* Path param: Workspace ID.
|
|
786
777
|
*/
|
|
787
778
|
workspaceId: string;
|
|
788
779
|
|
package/src/resources/index.ts
CHANGED
|
@@ -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
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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
|
-
*
|
|
179
|
-
* account-scoped
|
|
180
|
-
*
|
|
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
|
|
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
|
|
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
|
|
268
|
+
* Path param
|
|
279
269
|
*/
|
|
280
270
|
workspaceId: string;
|
|
281
271
|
|
|
282
272
|
/**
|
|
283
|
-
* Path param: Memory layer ID
|
|
284
|
-
* external_id:<value> form
|
|
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
|
|
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
|
|
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
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
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
|
-
*
|
|
121
|
-
* account-scoped
|
|
122
|
-
*
|
|
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
|
|
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
|
|
package/src/resources/models.ts
CHANGED
|
@@ -8,13 +8,9 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
101
|
-
* account-scoped
|
|
102
|
-
*
|
|
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
|
|
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
|
|
128
|
+
* Path param
|
|
129
129
|
*/
|
|
130
130
|
workspaceId: string;
|
|
131
131
|
}
|