@cadenya/cadenya 0.62.0 → 0.64.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 +22 -0
- package/client.d.mts +13 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -0
- package/client.d.ts.map +1 -1
- package/client.js +13 -0
- package/client.js.map +1 -1
- package/client.mjs +13 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +4 -0
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +4 -0
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +4 -0
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +4 -0
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/variations.d.mts +4 -0
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +4 -0
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/api-keys.d.mts +4 -0
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +4 -0
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +287 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +287 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +51 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +46 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -0
- package/resources/bulk-workspace-resources/index.d.mts +3 -0
- package/resources/bulk-workspace-resources/index.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/index.d.ts +3 -0
- package/resources/bulk-workspace-resources/index.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/index.js +9 -0
- package/resources/bulk-workspace-resources/index.js.map +1 -0
- package/resources/bulk-workspace-resources/index.mjs +4 -0
- package/resources/bulk-workspace-resources/index.mjs.map +1 -0
- package/resources/bulk-workspace-resources/results.d.mts +638 -0
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/results.d.ts +638 -0
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/results.js +27 -0
- package/resources/bulk-workspace-resources/results.js.map +1 -0
- package/resources/bulk-workspace-resources/results.mjs +23 -0
- package/resources/bulk-workspace-resources/results.mjs.map +1 -0
- package/resources/bulk-workspace-resources.d.mts +2 -0
- package/resources/bulk-workspace-resources.d.mts.map +1 -0
- package/resources/bulk-workspace-resources.d.ts +2 -0
- package/resources/bulk-workspace-resources.d.ts.map +1 -0
- package/resources/bulk-workspace-resources.js +6 -0
- package/resources/bulk-workspace-resources.js.map +1 -0
- package/resources/bulk-workspace-resources.mjs +3 -0
- package/resources/bulk-workspace-resources.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +4 -0
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +4 -0
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +4 -0
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +4 -0
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +4 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +4 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +4 -0
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +4 -0
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +4 -0
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +4 -0
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/workspace-secrets.d.mts +4 -0
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +4 -0
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/src/client.ts +51 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/agents/agents.ts +5 -0
- package/src/resources/agents/schedules.ts +5 -0
- package/src/resources/agents/variations.ts +5 -0
- package/src/resources/api-keys.ts +5 -0
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +408 -0
- package/src/resources/bulk-workspace-resources/index.ts +37 -0
- package/src/resources/bulk-workspace-resources/results.ts +821 -0
- package/src/resources/bulk-workspace-resources.ts +3 -0
- package/src/resources/index.ts +19 -0
- package/src/resources/memory-layers/entries.ts +5 -0
- package/src/resources/memory-layers/memory-layers.ts +5 -0
- package/src/resources/models.ts +5 -0
- package/src/resources/shared.ts +18 -0
- package/src/resources/tool-sets/tool-sets.ts +5 -0
- package/src/resources/tool-sets/tools.ts +5 -0
- package/src/resources/workspace-secrets.ts +5 -0
- 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
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AccountAPI from '../account';
|
|
5
|
+
import * as Shared from '../shared';
|
|
6
|
+
import * as AgentsAPI from '../agents/agents';
|
|
7
|
+
import * as SchedulesAPI from '../agents/schedules';
|
|
8
|
+
import * as VariationsAPI from '../agents/variations';
|
|
9
|
+
import * as ResultsAPI from './results';
|
|
10
|
+
import {
|
|
11
|
+
BulkWorkspaceApplyResult,
|
|
12
|
+
BulkWorkspaceApplyResultData,
|
|
13
|
+
BulkWorkspaceApplyResultDataAgentOutcome,
|
|
14
|
+
BulkWorkspaceApplyResultDataAgentScheduleOutcome,
|
|
15
|
+
BulkWorkspaceApplyResultDataAgentVariationOutcome,
|
|
16
|
+
BulkWorkspaceApplyResultDataMemoryEntryOutcome,
|
|
17
|
+
BulkWorkspaceApplyResultDataMemoryLayerOutcome,
|
|
18
|
+
BulkWorkspaceApplyResultDataToolOutcome,
|
|
19
|
+
BulkWorkspaceApplyResultDataToolSetOutcome,
|
|
20
|
+
BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
|
|
21
|
+
BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
|
|
22
|
+
BulkWorkspaceApplyResultsCursorPagination,
|
|
23
|
+
ResultListParams,
|
|
24
|
+
Results,
|
|
25
|
+
} from './results';
|
|
26
|
+
import * as MemoryLayersAPI from '../memory-layers/memory-layers';
|
|
27
|
+
import * as ToolSetsAPI from '../tool-sets/tool-sets';
|
|
28
|
+
import * as ToolsAPI from '../tool-sets/tools';
|
|
29
|
+
import { APIPromise } from '../../core/api-promise';
|
|
30
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from '../../core/pagination';
|
|
31
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
32
|
+
import { path } from '../../internal/utils/path';
|
|
33
|
+
|
|
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
|
|
43
|
+
*/
|
|
44
|
+
export class BulkWorkspaceResources extends APIResource {
|
|
45
|
+
results: ResultsAPI.Results = new ResultsAPI.Results(this._client);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a bulk workspace apply operation by ID.
|
|
49
|
+
*/
|
|
50
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BulkWorkspaceApply> {
|
|
51
|
+
return this._client.get(path`/v1/bulk_workspace_applies/${id}`, options);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Lists past and in-flight bulk workspace apply operations in the workspace.
|
|
56
|
+
*/
|
|
57
|
+
list(
|
|
58
|
+
query: BulkWorkspaceResourceListParams | null | undefined = {},
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): PagePromise<BulkWorkspaceAppliesCursorPagination, BulkWorkspaceApply> {
|
|
61
|
+
return this._client.getAPIList('/v1/bulk_workspace_applies', CursorPagination<BulkWorkspaceApply>, {
|
|
62
|
+
query,
|
|
63
|
+
...options,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Asynchronously applies a declarative bundle of workspace resources. Returns the
|
|
69
|
+
* operation immediately in PENDING; clients poll Get to track progress.
|
|
70
|
+
*/
|
|
71
|
+
apply(body: BulkWorkspaceResourceApplyParams, options?: RequestOptions): APIPromise<BulkWorkspaceApply> {
|
|
72
|
+
return this._client.post('/v1/bulk_workspace_applies', { body, ...options });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type BulkWorkspaceAppliesCursorPagination = CursorPagination<BulkWorkspaceApply>;
|
|
77
|
+
|
|
78
|
+
export interface AgentEntry {
|
|
79
|
+
name: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Agent specification (user-provided configuration)
|
|
83
|
+
*/
|
|
84
|
+
spec: AgentsAPI.AgentSpec;
|
|
85
|
+
|
|
86
|
+
labels?: { [key: string]: string };
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Schedules under this agent, keyed by external_id.
|
|
90
|
+
*/
|
|
91
|
+
schedules?: { [key: string]: AgentScheduleEntry };
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Variations under this agent, keyed by external_id.
|
|
95
|
+
*/
|
|
96
|
+
variations?: { [key: string]: AgentVariationEntry };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface AgentScheduleEntry {
|
|
100
|
+
name: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* AgentScheduleSpec is the user-provided configuration for a schedule.
|
|
104
|
+
*/
|
|
105
|
+
spec: SchedulesAPI.AgentScheduleSpec;
|
|
106
|
+
|
|
107
|
+
labels?: { [key: string]: string };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface AgentVariationEntry {
|
|
111
|
+
name: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* AgentVariationSpec defines the operational configuration for a variation
|
|
115
|
+
*/
|
|
116
|
+
spec: VariationsAPI.AgentVariationSpec;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Reconciled list — server adjusts the variation's assignments to exactly this set
|
|
120
|
+
* when the variation is bundle-owned.
|
|
121
|
+
*/
|
|
122
|
+
assignments?: Array<VariationAssignmentEntry>;
|
|
123
|
+
|
|
124
|
+
labels?: { [key: string]: string };
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Reconciled list — capped at 10 to match the existing variation
|
|
128
|
+
* memory-layer-assignment cap.
|
|
129
|
+
*/
|
|
130
|
+
memoryLayers?: Array<VariationMemoryLayerEntry>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* BulkWorkspaceApply is the operation resource produced by a call to
|
|
135
|
+
* BulkWorkspaceResources.Apply. It is operation-typed (uses OperationMetadata,
|
|
136
|
+
* like Objective and ObjectiveEvent) and carries the input bundle in `data`, the
|
|
137
|
+
* lifecycle state in `status`, and aggregate counts in `info`.
|
|
138
|
+
*/
|
|
139
|
+
export interface BulkWorkspaceApply {
|
|
140
|
+
data: BulkWorkspaceApplyData;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
144
|
+
* runs)
|
|
145
|
+
*/
|
|
146
|
+
metadata: Shared.OperationMetadata;
|
|
147
|
+
|
|
148
|
+
status: BulkWorkspaceApplyStatus;
|
|
149
|
+
|
|
150
|
+
info?: BulkWorkspaceApplyInfo;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface BulkWorkspaceApplyData {
|
|
154
|
+
/**
|
|
155
|
+
* Required. Bundle ownership key. Resources created or updated by an Apply have
|
|
156
|
+
* their `metadata.bundle_key` set to this value. On subsequent applies with the
|
|
157
|
+
* same bundle_key, resources currently bearing this bundle_key but absent from the
|
|
158
|
+
* spec are soft-deleted.
|
|
159
|
+
*/
|
|
160
|
+
bundleKey: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Agents to upsert, keyed by external_id.
|
|
164
|
+
*/
|
|
165
|
+
agents?: { [key: string]: AgentEntry };
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Memory layers to upsert, keyed by external_id.
|
|
169
|
+
*/
|
|
170
|
+
memoryLayers?: { [key: string]: MemoryLayerEntry };
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Optional URL pointing to the source of this apply (GitHub PR, Jenkins build,
|
|
174
|
+
* GitLab pipeline, etc.). Surfaced in the dashboard so users can jump from an
|
|
175
|
+
* apply back to the change that produced it. Free-form HTTPS URI; not interpreted
|
|
176
|
+
* by the server.
|
|
177
|
+
*/
|
|
178
|
+
sourceUrl?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Tool sets to upsert, keyed by external_id.
|
|
182
|
+
*/
|
|
183
|
+
toolSets?: { [key: string]: ToolSetEntry };
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface BulkWorkspaceApplyInfo {
|
|
187
|
+
completedAt?: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Profile represents a human user at the account level. Profiles are
|
|
191
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
192
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
193
|
+
*/
|
|
194
|
+
createdBy?: AccountAPI.Profile;
|
|
195
|
+
|
|
196
|
+
createdCount?: number;
|
|
197
|
+
|
|
198
|
+
deletedCount?: number;
|
|
199
|
+
|
|
200
|
+
failedCount?: number;
|
|
201
|
+
|
|
202
|
+
startedAt?: string;
|
|
203
|
+
|
|
204
|
+
totalCount?: number;
|
|
205
|
+
|
|
206
|
+
unchangedCount?: number;
|
|
207
|
+
|
|
208
|
+
updatedCount?: number;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface BulkWorkspaceApplyStatus {
|
|
212
|
+
state:
|
|
213
|
+
| 'STATE_UNSPECIFIED'
|
|
214
|
+
| 'STATE_PENDING'
|
|
215
|
+
| 'STATE_VALIDATING'
|
|
216
|
+
| 'STATE_RUNNING'
|
|
217
|
+
| 'STATE_SUCCEEDED'
|
|
218
|
+
| 'STATE_PARTIALLY_APPLIED'
|
|
219
|
+
| 'STATE_FAILED';
|
|
220
|
+
|
|
221
|
+
message?: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The `Status` type defines a logical error model that is suitable for different
|
|
225
|
+
* programming environments, including REST APIs and RPC APIs. It is used by
|
|
226
|
+
* [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
227
|
+
* data: error code, error message, and error details. You can find out more about
|
|
228
|
+
* this error model and how to work with it in the
|
|
229
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
230
|
+
*/
|
|
231
|
+
preflightError?: BulkWorkspaceApplyStatus.PreflightError;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export namespace BulkWorkspaceApplyStatus {
|
|
235
|
+
/**
|
|
236
|
+
* The `Status` type defines a logical error model that is suitable for different
|
|
237
|
+
* programming environments, including REST APIs and RPC APIs. It is used by
|
|
238
|
+
* [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
239
|
+
* data: error code, error message, and error details. You can find out more about
|
|
240
|
+
* this error model and how to work with it in the
|
|
241
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
242
|
+
*/
|
|
243
|
+
export interface PreflightError {
|
|
244
|
+
/**
|
|
245
|
+
* The status code, which should be an enum value of
|
|
246
|
+
* [google.rpc.Code][google.rpc.Code].
|
|
247
|
+
*/
|
|
248
|
+
code?: number;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* A list of messages that carry the error details. There is a common set of
|
|
252
|
+
* message types for APIs to use.
|
|
253
|
+
*/
|
|
254
|
+
details?: Array<PreflightError.Detail>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* A developer-facing error message, which should be in English. Any user-facing
|
|
258
|
+
* error message should be localized and sent in the
|
|
259
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
|
|
260
|
+
* the client.
|
|
261
|
+
*/
|
|
262
|
+
message?: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export namespace PreflightError {
|
|
266
|
+
/**
|
|
267
|
+
* Contains an arbitrary serialized message along with a @type that describes the
|
|
268
|
+
* type of the serialized message.
|
|
269
|
+
*/
|
|
270
|
+
export interface Detail {
|
|
271
|
+
/**
|
|
272
|
+
* The type of the serialized message.
|
|
273
|
+
*/
|
|
274
|
+
'@type'?: string;
|
|
275
|
+
|
|
276
|
+
[k: string]: unknown;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface MemoryEntryItem {
|
|
282
|
+
key: string;
|
|
283
|
+
|
|
284
|
+
content?: string;
|
|
285
|
+
|
|
286
|
+
description?: string;
|
|
287
|
+
|
|
288
|
+
uploadId?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface MemoryLayerEntry {
|
|
292
|
+
name: string;
|
|
293
|
+
|
|
294
|
+
spec: MemoryLayersAPI.MemoryLayerSpec;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Memory entries in this layer, keyed by external_id.
|
|
298
|
+
*/
|
|
299
|
+
entries?: { [key: string]: MemoryEntryItem };
|
|
300
|
+
|
|
301
|
+
labels?: { [key: string]: string };
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export interface ToolEntry {
|
|
305
|
+
name: string;
|
|
306
|
+
|
|
307
|
+
spec: ToolsAPI.ToolSpec;
|
|
308
|
+
|
|
309
|
+
labels?: { [key: string]: string };
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface ToolSetEntry {
|
|
313
|
+
name: string;
|
|
314
|
+
|
|
315
|
+
spec: ToolSetsAPI.ToolSetSpec;
|
|
316
|
+
|
|
317
|
+
labels?: { [key: string]: string };
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Tools in this tool set, keyed by external_id.
|
|
321
|
+
*/
|
|
322
|
+
tools?: { [key: string]: ToolEntry };
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface VariationAssignmentEntry {
|
|
326
|
+
subAgentId?: string;
|
|
327
|
+
|
|
328
|
+
toolId?: string;
|
|
329
|
+
|
|
330
|
+
toolSetId?: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface VariationMemoryLayerEntry {
|
|
334
|
+
/**
|
|
335
|
+
* external_id:<value> form. Canonical IDs are rejected.
|
|
336
|
+
*/
|
|
337
|
+
memoryLayerId?: string;
|
|
338
|
+
|
|
339
|
+
position?: number;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export interface BulkWorkspaceResourceListParams extends CursorPaginationParams {
|
|
343
|
+
/**
|
|
344
|
+
* Filter by bundle_key — list every apply for a given bundle.
|
|
345
|
+
*/
|
|
346
|
+
bundleKey?: string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Sort order for results (asc or desc by creation time)
|
|
350
|
+
*/
|
|
351
|
+
sortOrder?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Filter by lifecycle state.
|
|
355
|
+
*/
|
|
356
|
+
state?:
|
|
357
|
+
| 'STATE_UNSPECIFIED'
|
|
358
|
+
| 'STATE_PENDING'
|
|
359
|
+
| 'STATE_VALIDATING'
|
|
360
|
+
| 'STATE_RUNNING'
|
|
361
|
+
| 'STATE_SUCCEEDED'
|
|
362
|
+
| 'STATE_PARTIALLY_APPLIED'
|
|
363
|
+
| 'STATE_FAILED';
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface BulkWorkspaceResourceApplyParams {
|
|
367
|
+
data: BulkWorkspaceApplyData;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
BulkWorkspaceResources.Results = Results;
|
|
371
|
+
|
|
372
|
+
export declare namespace BulkWorkspaceResources {
|
|
373
|
+
export {
|
|
374
|
+
type AgentEntry as AgentEntry,
|
|
375
|
+
type AgentScheduleEntry as AgentScheduleEntry,
|
|
376
|
+
type AgentVariationEntry as AgentVariationEntry,
|
|
377
|
+
type BulkWorkspaceApply as BulkWorkspaceApply,
|
|
378
|
+
type BulkWorkspaceApplyData as BulkWorkspaceApplyData,
|
|
379
|
+
type BulkWorkspaceApplyInfo as BulkWorkspaceApplyInfo,
|
|
380
|
+
type BulkWorkspaceApplyStatus as BulkWorkspaceApplyStatus,
|
|
381
|
+
type MemoryEntryItem as MemoryEntryItem,
|
|
382
|
+
type MemoryLayerEntry as MemoryLayerEntry,
|
|
383
|
+
type ToolEntry as ToolEntry,
|
|
384
|
+
type ToolSetEntry as ToolSetEntry,
|
|
385
|
+
type VariationAssignmentEntry as VariationAssignmentEntry,
|
|
386
|
+
type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
|
|
387
|
+
type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
|
|
388
|
+
type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
|
|
389
|
+
type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
export {
|
|
393
|
+
Results as Results,
|
|
394
|
+
type BulkWorkspaceApplyResult as BulkWorkspaceApplyResult,
|
|
395
|
+
type BulkWorkspaceApplyResultData as BulkWorkspaceApplyResultData,
|
|
396
|
+
type BulkWorkspaceApplyResultDataAgentOutcome as BulkWorkspaceApplyResultDataAgentOutcome,
|
|
397
|
+
type BulkWorkspaceApplyResultDataAgentScheduleOutcome as BulkWorkspaceApplyResultDataAgentScheduleOutcome,
|
|
398
|
+
type BulkWorkspaceApplyResultDataAgentVariationOutcome as BulkWorkspaceApplyResultDataAgentVariationOutcome,
|
|
399
|
+
type BulkWorkspaceApplyResultDataMemoryEntryOutcome as BulkWorkspaceApplyResultDataMemoryEntryOutcome,
|
|
400
|
+
type BulkWorkspaceApplyResultDataMemoryLayerOutcome as BulkWorkspaceApplyResultDataMemoryLayerOutcome,
|
|
401
|
+
type BulkWorkspaceApplyResultDataToolOutcome as BulkWorkspaceApplyResultDataToolOutcome,
|
|
402
|
+
type BulkWorkspaceApplyResultDataToolSetOutcome as BulkWorkspaceApplyResultDataToolSetOutcome,
|
|
403
|
+
type BulkWorkspaceApplyResultDataVariationAssignmentOutcome as BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
|
|
404
|
+
type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome as BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
|
|
405
|
+
type BulkWorkspaceApplyResultsCursorPagination as BulkWorkspaceApplyResultsCursorPagination,
|
|
406
|
+
type ResultListParams as ResultListParams,
|
|
407
|
+
};
|
|
408
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
BulkWorkspaceResources,
|
|
5
|
+
type AgentEntry,
|
|
6
|
+
type AgentScheduleEntry,
|
|
7
|
+
type AgentVariationEntry,
|
|
8
|
+
type BulkWorkspaceApply,
|
|
9
|
+
type BulkWorkspaceApplyData,
|
|
10
|
+
type BulkWorkspaceApplyInfo,
|
|
11
|
+
type BulkWorkspaceApplyStatus,
|
|
12
|
+
type MemoryEntryItem,
|
|
13
|
+
type MemoryLayerEntry,
|
|
14
|
+
type ToolEntry,
|
|
15
|
+
type ToolSetEntry,
|
|
16
|
+
type VariationAssignmentEntry,
|
|
17
|
+
type VariationMemoryLayerEntry,
|
|
18
|
+
type BulkWorkspaceResourceListParams,
|
|
19
|
+
type BulkWorkspaceResourceApplyParams,
|
|
20
|
+
type BulkWorkspaceAppliesCursorPagination,
|
|
21
|
+
} from './bulk-workspace-resources';
|
|
22
|
+
export {
|
|
23
|
+
Results,
|
|
24
|
+
type BulkWorkspaceApplyResult,
|
|
25
|
+
type BulkWorkspaceApplyResultData,
|
|
26
|
+
type BulkWorkspaceApplyResultDataAgentOutcome,
|
|
27
|
+
type BulkWorkspaceApplyResultDataAgentScheduleOutcome,
|
|
28
|
+
type BulkWorkspaceApplyResultDataAgentVariationOutcome,
|
|
29
|
+
type BulkWorkspaceApplyResultDataMemoryEntryOutcome,
|
|
30
|
+
type BulkWorkspaceApplyResultDataMemoryLayerOutcome,
|
|
31
|
+
type BulkWorkspaceApplyResultDataToolOutcome,
|
|
32
|
+
type BulkWorkspaceApplyResultDataToolSetOutcome,
|
|
33
|
+
type BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
|
|
34
|
+
type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
|
|
35
|
+
type ResultListParams,
|
|
36
|
+
type BulkWorkspaceApplyResultsCursorPagination,
|
|
37
|
+
} from './results';
|