@cadenya/cadenya 0.67.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/client.d.mts +24 -63
- package/client.d.mts.map +1 -1
- package/client.d.ts +24 -63
- package/client.d.ts.map +1 -1
- package/client.js +24 -63
- package/client.js.map +1 -1
- package/client.mjs +24 -63
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +18 -22
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +18 -22
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -6
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -6
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +9 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +9 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +1 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +2 -7
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +2 -7
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +1 -6
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +1 -6
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +18 -21
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +18 -21
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +2 -6
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +2 -6
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +48 -45
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +48 -45
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +3 -0
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +3 -0
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +4 -9
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +4 -9
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +1 -6
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +1 -6
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +19 -22
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +19 -22
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +2 -5
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +2 -5
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +23 -32
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +23 -32
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +3 -8
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +3 -8
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +14 -28
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +14 -28
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +4 -10
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +4 -10
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +8 -20
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +8 -20
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +4 -10
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +4 -10
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +5 -9
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +5 -9
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -7
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -7
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +5 -5
- package/resources/objectives/feedback.d.ts +5 -5
- package/resources/objectives/objectives.d.mts +22 -31
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +22 -31
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +1 -4
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +1 -4
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tool-calls.d.mts +8 -11
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +8 -11
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tools.d.mts +1 -1
- package/resources/objectives/tools.d.ts +1 -1
- package/resources/tool-sets/tool-sets.d.mts +31 -35
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +31 -35
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +4 -8
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +4 -8
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +16 -22
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +16 -22
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +4 -8
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +4 -8
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -17
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -17
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +3 -7
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +3 -7
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +7 -7
- package/resources/workspace-secrets.d.ts +7 -7
- package/resources/workspaces.d.mts +2 -6
- package/resources/workspaces.d.mts.map +1 -1
- package/resources/workspaces.d.ts +2 -6
- package/resources/workspaces.d.ts.map +1 -1
- package/resources/workspaces.js +2 -6
- package/resources/workspaces.js.map +1 -1
- package/resources/workspaces.mjs +2 -6
- package/resources/workspaces.mjs.map +1 -1
- package/src/client.ts +24 -63
- package/src/resources/account.ts +18 -22
- package/src/resources/agents/agents.ts +9 -13
- package/src/resources/agents/feedback.ts +2 -7
- package/src/resources/agents/schedules.ts +18 -21
- package/src/resources/agents/variations.ts +48 -45
- package/src/resources/agents/webhook-deliveries.ts +4 -9
- package/src/resources/api-keys.ts +19 -22
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
- package/src/resources/bulk-workspace-resources/results.ts +23 -32
- package/src/resources/memory-layers/entries.ts +14 -28
- package/src/resources/memory-layers/memory-layers.ts +8 -20
- package/src/resources/models.ts +5 -9
- package/src/resources/objectives/feedback.ts +5 -5
- package/src/resources/objectives/objectives.ts +22 -31
- package/src/resources/objectives/tasks.ts +1 -4
- package/src/resources/objectives/tool-calls.ts +8 -11
- package/src/resources/objectives/tools.ts +1 -1
- package/src/resources/tool-sets/tool-sets.ts +31 -35
- package/src/resources/tool-sets/tools.ts +16 -22
- package/src/resources/uploads.ts +13 -17
- package/src/resources/workspace-secrets.ts +7 -7
- package/src/resources/workspaces.ts +2 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -7,12 +7,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
14
|
-
*
|
|
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
|
-
*
|
|
82
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
102
|
-
* account-scoped
|
|
103
|
-
*
|
|
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
|
-
*
|
|
105
|
+
* Configuration for an API key.
|
|
110
106
|
*/
|
|
111
107
|
export interface APIKeySpec {
|
|
112
108
|
/**
|
|
113
|
-
* The
|
|
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
|
-
*
|
|
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
|
-
*
|
|
129
|
+
* Configuration for an API key.
|
|
133
130
|
*/
|
|
134
131
|
spec: APIKeySpec;
|
|
135
132
|
}
|
|
136
133
|
|
|
137
134
|
export interface APIKeyRetrieveParams {
|
|
138
135
|
/**
|
|
139
|
-
*
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
|
@@ -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
|
}
|