@cadenya/cadenya 0.95.0 → 0.97.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 (134) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +0 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +0 -4
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +0 -4
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js.map +1 -1
  16. package/resources/agents/agents.mjs.map +1 -1
  17. package/resources/agents/schedules.d.mts +0 -4
  18. package/resources/agents/schedules.d.mts.map +1 -1
  19. package/resources/agents/schedules.d.ts +0 -4
  20. package/resources/agents/schedules.d.ts.map +1 -1
  21. package/resources/agents/variations.d.mts +0 -4
  22. package/resources/agents/variations.d.mts.map +1 -1
  23. package/resources/agents/variations.d.ts +0 -4
  24. package/resources/agents/variations.d.ts.map +1 -1
  25. package/resources/ai-provider-keys.d.mts +101 -8
  26. package/resources/ai-provider-keys.d.mts.map +1 -1
  27. package/resources/ai-provider-keys.d.ts +101 -8
  28. package/resources/ai-provider-keys.d.ts.map +1 -1
  29. package/resources/api-keys/api-keys.d.mts +0 -4
  30. package/resources/api-keys/api-keys.d.mts.map +1 -1
  31. package/resources/api-keys/api-keys.d.ts +0 -4
  32. package/resources/api-keys/api-keys.d.ts.map +1 -1
  33. package/resources/api-keys/api-keys.js.map +1 -1
  34. package/resources/api-keys/api-keys.mjs.map +1 -1
  35. package/resources/index.d.mts +0 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +0 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +0 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/memory-layers/entries.d.mts +0 -4
  44. package/resources/memory-layers/entries.d.mts.map +1 -1
  45. package/resources/memory-layers/entries.d.ts +0 -4
  46. package/resources/memory-layers/entries.d.ts.map +1 -1
  47. package/resources/memory-layers/memory-layers.d.mts +0 -4
  48. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  49. package/resources/memory-layers/memory-layers.d.ts +0 -4
  50. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  51. package/resources/memory-layers/memory-layers.js.map +1 -1
  52. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  53. package/resources/models.d.mts +0 -4
  54. package/resources/models.d.mts.map +1 -1
  55. package/resources/models.d.ts +0 -4
  56. package/resources/models.d.ts.map +1 -1
  57. package/resources/shared.d.mts +0 -15
  58. package/resources/shared.d.mts.map +1 -1
  59. package/resources/shared.d.ts +0 -15
  60. package/resources/shared.d.ts.map +1 -1
  61. package/resources/tool-sets/secrets.d.mts +0 -4
  62. package/resources/tool-sets/secrets.d.mts.map +1 -1
  63. package/resources/tool-sets/secrets.d.ts +0 -4
  64. package/resources/tool-sets/secrets.d.ts.map +1 -1
  65. package/resources/tool-sets/tool-sets.d.mts +0 -4
  66. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  67. package/resources/tool-sets/tool-sets.d.ts +0 -4
  68. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  69. package/resources/tool-sets/tool-sets.js.map +1 -1
  70. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  71. package/resources/tool-sets/tools.d.mts +0 -4
  72. package/resources/tool-sets/tools.d.mts.map +1 -1
  73. package/resources/tool-sets/tools.d.ts +0 -4
  74. package/resources/tool-sets/tools.d.ts.map +1 -1
  75. package/resources/workspace-secrets.d.mts +0 -4
  76. package/resources/workspace-secrets.d.mts.map +1 -1
  77. package/resources/workspace-secrets.d.ts +0 -4
  78. package/resources/workspace-secrets.d.ts.map +1 -1
  79. package/src/client.ts +0 -48
  80. package/src/resources/agents/agents.ts +0 -5
  81. package/src/resources/agents/schedules.ts +0 -5
  82. package/src/resources/agents/variations.ts +0 -5
  83. package/src/resources/ai-provider-keys.ts +116 -8
  84. package/src/resources/api-keys/api-keys.ts +0 -5
  85. package/src/resources/index.ts +0 -20
  86. package/src/resources/memory-layers/entries.ts +0 -5
  87. package/src/resources/memory-layers/memory-layers.ts +0 -5
  88. package/src/resources/models.ts +0 -5
  89. package/src/resources/shared.ts +0 -18
  90. package/src/resources/tool-sets/secrets.ts +0 -5
  91. package/src/resources/tool-sets/tool-sets.ts +0 -5
  92. package/src/resources/tool-sets/tools.ts +0 -5
  93. package/src/resources/workspace-secrets.ts +0 -5
  94. package/src/version.ts +1 -1
  95. package/version.d.mts +1 -1
  96. package/version.d.ts +1 -1
  97. package/version.js +1 -1
  98. package/version.mjs +1 -1
  99. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +0 -313
  100. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +0 -1
  101. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +0 -313
  102. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +0 -1
  103. package/resources/bulk-workspace-resources/bulk-workspace-resources.js +0 -47
  104. package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +0 -1
  105. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +0 -42
  106. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +0 -1
  107. package/resources/bulk-workspace-resources/index.d.mts +0 -3
  108. package/resources/bulk-workspace-resources/index.d.mts.map +0 -1
  109. package/resources/bulk-workspace-resources/index.d.ts +0 -3
  110. package/resources/bulk-workspace-resources/index.d.ts.map +0 -1
  111. package/resources/bulk-workspace-resources/index.js +0 -9
  112. package/resources/bulk-workspace-resources/index.js.map +0 -1
  113. package/resources/bulk-workspace-resources/index.mjs +0 -4
  114. package/resources/bulk-workspace-resources/index.mjs.map +0 -1
  115. package/resources/bulk-workspace-resources/results.d.mts +0 -633
  116. package/resources/bulk-workspace-resources/results.d.mts.map +0 -1
  117. package/resources/bulk-workspace-resources/results.d.ts +0 -633
  118. package/resources/bulk-workspace-resources/results.d.ts.map +0 -1
  119. package/resources/bulk-workspace-resources/results.js +0 -23
  120. package/resources/bulk-workspace-resources/results.js.map +0 -1
  121. package/resources/bulk-workspace-resources/results.mjs +0 -19
  122. package/resources/bulk-workspace-resources/results.mjs.map +0 -1
  123. package/resources/bulk-workspace-resources.d.mts +0 -2
  124. package/resources/bulk-workspace-resources.d.mts.map +0 -1
  125. package/resources/bulk-workspace-resources.d.ts +0 -2
  126. package/resources/bulk-workspace-resources.d.ts.map +0 -1
  127. package/resources/bulk-workspace-resources.js +0 -6
  128. package/resources/bulk-workspace-resources.js.map +0 -1
  129. package/resources/bulk-workspace-resources.mjs +0 -3
  130. package/resources/bulk-workspace-resources.mjs.map +0 -1
  131. package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +0 -456
  132. package/src/resources/bulk-workspace-resources/index.ts +0 -38
  133. package/src/resources/bulk-workspace-resources/results.ts +0 -818
  134. package/src/resources/bulk-workspace-resources.ts +0 -3
@@ -1,19 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { CursorPagination } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- /**
6
- * Apply a declarative bundle of workspace resources — tool sets, memory
7
- * layers, agents, variations, assignments, and schedules — in a single
8
- * asynchronous operation.
9
- */
10
- export class Results extends APIResource {
11
- /**
12
- * Lists each resource action recorded by a bulk workspace apply operation.
13
- */
14
- list(bulkWorkspaceApplyID, params, options) {
15
- const { workspaceId, ...query } = params;
16
- return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/bulk_workspace_applies/${bulkWorkspaceApplyID}/results`, (CursorPagination), { query, ...options });
17
- }
18
- }
19
- //# sourceMappingURL=results.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"results.mjs","sourceRoot":"","sources":["../../src/resources/bulk-workspace-resources/results.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AASlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AAEnG,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,oBAA4B,EAC5B,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,WAAW,2BAA2B,oBAAoB,UAAU,EAC1F,CAAA,gBAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./bulk-workspace-resources/index.mjs";
2
- //# sourceMappingURL=bulk-workspace-resources.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulk-workspace-resources.d.mts","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":"AAEA,qDAAiD"}
@@ -1,2 +0,0 @@
1
- export * from "./bulk-workspace-resources/index.js";
2
- //# sourceMappingURL=bulk-workspace-resources.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulk-workspace-resources.d.ts","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":"AAEA,oDAAiD"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./bulk-workspace-resources/index.js"), exports);
6
- //# sourceMappingURL=bulk-workspace-resources.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulk-workspace-resources.js","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8EAAiD"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./bulk-workspace-resources/index.mjs";
3
- //# sourceMappingURL=bulk-workspace-resources.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulk-workspace-resources.mjs","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qDAAiD"}
@@ -1,456 +0,0 @@
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
- * Apply a declarative bundle of workspace resources — tool sets, memory
36
- * layers, agents, variations, assignments, and schedules — in a single
37
- * asynchronous operation.
38
- */
39
- export class BulkWorkspaceResources extends APIResource {
40
- results: ResultsAPI.Results = new ResultsAPI.Results(this._client);
41
-
42
- /**
43
- * Retrieves a bulk workspace apply operation by ID.
44
- */
45
- retrieve(
46
- id: string,
47
- params: BulkWorkspaceResourceRetrieveParams,
48
- options?: RequestOptions,
49
- ): APIPromise<BulkWorkspaceApply> {
50
- const { workspaceId } = params;
51
- return this._client.get(path`/v1/workspaces/${workspaceId}/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
- workspaceID: string,
59
- query: BulkWorkspaceResourceListParams | null | undefined = {},
60
- options?: RequestOptions,
61
- ): PagePromise<BulkWorkspaceAppliesCursorPagination, BulkWorkspaceApply> {
62
- return this._client.getAPIList(
63
- path`/v1/workspaces/${workspaceID}/bulk_workspace_applies`,
64
- CursorPagination<BulkWorkspaceApply>,
65
- { query, ...options },
66
- );
67
- }
68
-
69
- /**
70
- * Asynchronously applies a declarative bundle of workspace resources. Returns the
71
- * operation immediately in PENDING; clients poll Get to track progress.
72
- */
73
- apply(
74
- workspaceID: string,
75
- body: BulkWorkspaceResourceApplyParams,
76
- options?: RequestOptions,
77
- ): APIPromise<BulkWorkspaceApply> {
78
- return this._client.post(path`/v1/workspaces/${workspaceID}/bulk_workspace_applies`, {
79
- body,
80
- ...options,
81
- });
82
- }
83
- }
84
-
85
- export type BulkWorkspaceAppliesCursorPagination = CursorPagination<BulkWorkspaceApply>;
86
-
87
- export interface AgentEntry {
88
- name: string;
89
-
90
- /**
91
- * Agent specification (user-provided configuration)
92
- */
93
- spec: AgentsAPI.AgentSpec;
94
-
95
- labels?: { [key: string]: string };
96
-
97
- /**
98
- * Schedules under this agent, keyed by external_id.
99
- */
100
- schedules?: { [key: string]: AgentScheduleEntry };
101
-
102
- /**
103
- * Desired lifecycle state for the agent. Defaults to STATE_DRAFT when unspecified.
104
- * STATE_PUBLISHED publishes the agent once its variations exist; see also
105
- * BulkWorkspaceApplyData.automatically_publish_agents.
106
- */
107
- state?: 'STATE_UNSPECIFIED' | 'STATE_DRAFT' | 'STATE_PUBLISHED' | 'STATE_ARCHIVED';
108
-
109
- /**
110
- * Variations under this agent, keyed by external_id.
111
- */
112
- variations?: { [key: string]: AgentVariationEntry };
113
- }
114
-
115
- export interface AgentScheduleEntry {
116
- name: string;
117
-
118
- /**
119
- * AgentScheduleSpec is the user-provided configuration for a schedule.
120
- */
121
- spec: SchedulesAPI.AgentScheduleSpec;
122
-
123
- labels?: { [key: string]: string };
124
-
125
- /**
126
- * Desired lifecycle state for the schedule. Defaults to STATE_ACTIVE when
127
- * unspecified. Declare STATE_PAUSED to provision a schedule without it firing.
128
- * STATE_ARCHIVED is rejected here.
129
- */
130
- state?: 'STATE_UNSPECIFIED' | 'STATE_ACTIVE' | 'STATE_PAUSED' | 'STATE_ARCHIVED';
131
- }
132
-
133
- export interface AgentVariationEntry {
134
- name: string;
135
-
136
- /**
137
- * AgentVariationSpec defines the operational configuration for a variation
138
- */
139
- spec: VariationsAPI.AgentVariationSpec;
140
-
141
- /**
142
- * Reconciled list — server adjusts the variation's assignments to exactly this set
143
- * when the variation is bundle-owned.
144
- */
145
- assignments?: Array<VariationAssignmentEntry>;
146
-
147
- labels?: { [key: string]: string };
148
-
149
- /**
150
- * Reconciled list of memory layer assignments. Up to 10 entries.
151
- */
152
- memoryLayers?: Array<VariationMemoryLayerEntry>;
153
- }
154
-
155
- /**
156
- * The operation resource produced by a call to BulkWorkspaceResources.Apply. It
157
- * carries the input bundle in `data`, the lifecycle state in `status`, and
158
- * aggregate counts in `info`.
159
- */
160
- export interface BulkWorkspaceApply {
161
- data: BulkWorkspaceApplyData;
162
-
163
- /**
164
- * Metadata for ephemeral operations and activities (e.g., objectives, executions,
165
- * runs)
166
- */
167
- metadata: Shared.OperationMetadata;
168
-
169
- status: BulkWorkspaceApplyStatus;
170
-
171
- info?: BulkWorkspaceApplyInfo;
172
- }
173
-
174
- export interface BulkWorkspaceApplyData {
175
- /**
176
- * Required. Bundle ownership key. Resources created or updated by an Apply have
177
- * their `metadata.bundle_key` set to this value. On subsequent applies with the
178
- * same bundle_key, resources currently bearing this bundle_key but absent from the
179
- * spec are soft-deleted.
180
- */
181
- bundleKey: string;
182
-
183
- /**
184
- * Agents to upsert, keyed by external_id.
185
- */
186
- agents?: { [key: string]: AgentEntry };
187
-
188
- /**
189
- * When true, every agent created or updated by this Apply has its state forced to
190
- * STATE_PUBLISHED, regardless of the state declared on the agent's entry. Useful
191
- * when the bundle represents a production configuration and you want all of its
192
- * agents live without setting state: STATE_PUBLISHED on each entry.
193
- *
194
- * Default false: each agent entry's `state` controls (which is STATE_DRAFT on
195
- * create when unspecified).
196
- */
197
- automaticallyPublishAgents?: boolean;
198
-
199
- /**
200
- * Memory layers to upsert, keyed by external_id.
201
- */
202
- memoryLayers?: { [key: string]: MemoryLayerEntry };
203
-
204
- /**
205
- * Optional URL pointing to the source of this apply (GitHub PR, Jenkins build,
206
- * GitLab pipeline, etc.). Surfaced in the dashboard so users can jump from an
207
- * apply back to the change that produced it. Free-form HTTPS URI; not interpreted
208
- * by the server.
209
- */
210
- sourceUrl?: string;
211
-
212
- /**
213
- * Tool sets to upsert, keyed by external_id.
214
- */
215
- toolSets?: { [key: string]: ToolSetEntry };
216
- }
217
-
218
- export interface BulkWorkspaceApplyInfo {
219
- completedAt?: string;
220
-
221
- /**
222
- * A profile identifies a user or non-human principal (such as an API key) at the
223
- * account level. Profiles are account-scoped and can be granted access to multiple
224
- * workspaces.
225
- */
226
- createdBy?: AccountAPI.Profile;
227
-
228
- createdCount?: number;
229
-
230
- deletedCount?: number;
231
-
232
- failedCount?: number;
233
-
234
- startedAt?: string;
235
-
236
- totalCount?: number;
237
-
238
- unchangedCount?: number;
239
-
240
- updatedCount?: number;
241
- }
242
-
243
- export interface BulkWorkspaceApplyStatus {
244
- state:
245
- | 'STATE_UNSPECIFIED'
246
- | 'STATE_PENDING'
247
- | 'STATE_VALIDATING'
248
- | 'STATE_RUNNING'
249
- | 'STATE_SUCCEEDED'
250
- | 'STATE_PARTIALLY_APPLIED'
251
- | 'STATE_FAILED'
252
- | 'STATE_CANCELLED';
253
-
254
- message?: string;
255
-
256
- /**
257
- * The `Status` type defines a logical error model that is suitable for different
258
- * programming environments, including REST APIs and RPC APIs. It is used by
259
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
260
- * data: error code, error message, and error details. You can find out more about
261
- * this error model and how to work with it in the
262
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
263
- */
264
- preflightError?: BulkWorkspaceApplyStatus.PreflightError;
265
- }
266
-
267
- export namespace BulkWorkspaceApplyStatus {
268
- /**
269
- * The `Status` type defines a logical error model that is suitable for different
270
- * programming environments, including REST APIs and RPC APIs. It is used by
271
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
272
- * data: error code, error message, and error details. You can find out more about
273
- * this error model and how to work with it in the
274
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
275
- */
276
- export interface PreflightError {
277
- /**
278
- * The status code, which should be an enum value of
279
- * [google.rpc.Code][google.rpc.Code].
280
- */
281
- code?: number;
282
-
283
- /**
284
- * A list of messages that carry the error details. There is a common set of
285
- * message types for APIs to use.
286
- */
287
- details?: Array<PreflightError.Detail>;
288
-
289
- /**
290
- * A developer-facing error message, which should be in English. Any user-facing
291
- * error message should be localized and sent in the
292
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
293
- * the client.
294
- */
295
- message?: string;
296
- }
297
-
298
- export namespace PreflightError {
299
- /**
300
- * Contains an arbitrary serialized message along with a @type that describes the
301
- * type of the serialized message.
302
- */
303
- export interface Detail {
304
- /**
305
- * The type of the serialized message.
306
- */
307
- '@type'?: string;
308
-
309
- [k: string]: unknown;
310
- }
311
- }
312
- }
313
-
314
- export interface MemoryEntryItem {
315
- key: string;
316
-
317
- content?: string;
318
-
319
- description?: string;
320
-
321
- uploadId?: string;
322
- }
323
-
324
- export interface MemoryLayerEntry {
325
- name: string;
326
-
327
- spec: MemoryLayersAPI.MemoryLayerSpec;
328
-
329
- /**
330
- * Memory entries in this layer, keyed by external_id.
331
- */
332
- entries?: { [key: string]: MemoryEntryItem };
333
-
334
- labels?: { [key: string]: string };
335
- }
336
-
337
- export interface ToolEntry {
338
- name: string;
339
-
340
- spec: ToolsAPI.ToolSpec;
341
-
342
- labels?: { [key: string]: string };
343
-
344
- /**
345
- * Desired lifecycle state for the tool. Defaults to STATE_AVAILABLE when
346
- * unspecified. STATE_ARCHIVED is server-managed and is rejected here.
347
- */
348
- state?: 'STATE_UNSPECIFIED' | 'STATE_AVAILABLE' | 'STATE_OMITTED' | 'STATE_ARCHIVED';
349
- }
350
-
351
- export interface ToolSetEntry {
352
- name: string;
353
-
354
- spec: ToolSetsAPI.ToolSetSpec;
355
-
356
- labels?: { [key: string]: string };
357
-
358
- /**
359
- * Tools in this tool set, keyed by external_id.
360
- */
361
- tools?: { [key: string]: ToolEntry };
362
- }
363
-
364
- export interface VariationAssignmentEntry {
365
- subAgentId?: string;
366
-
367
- toolId?: string;
368
-
369
- toolSetId?: string;
370
- }
371
-
372
- export interface VariationMemoryLayerEntry {
373
- /**
374
- * external_id:<value> form. Canonical IDs are rejected.
375
- */
376
- memoryLayerId?: string;
377
-
378
- position?: number;
379
- }
380
-
381
- export interface BulkWorkspaceResourceRetrieveParams {
382
- /**
383
- * Workspace ID.
384
- */
385
- workspaceId: string;
386
- }
387
-
388
- export interface BulkWorkspaceResourceListParams extends CursorPaginationParams {
389
- /**
390
- * Filter by bundle_key — list every apply for a given bundle.
391
- */
392
- bundleKey?: string;
393
-
394
- /**
395
- * Sort order for results (asc or desc by creation time)
396
- */
397
- sortOrder?: string;
398
-
399
- /**
400
- * Filter by lifecycle state.
401
- */
402
- state?:
403
- | 'STATE_UNSPECIFIED'
404
- | 'STATE_PENDING'
405
- | 'STATE_VALIDATING'
406
- | 'STATE_RUNNING'
407
- | 'STATE_SUCCEEDED'
408
- | 'STATE_PARTIALLY_APPLIED'
409
- | 'STATE_FAILED'
410
- | 'STATE_CANCELLED';
411
- }
412
-
413
- export interface BulkWorkspaceResourceApplyParams {
414
- data: BulkWorkspaceApplyData;
415
- }
416
-
417
- BulkWorkspaceResources.Results = Results;
418
-
419
- export declare namespace BulkWorkspaceResources {
420
- export {
421
- type AgentEntry as AgentEntry,
422
- type AgentScheduleEntry as AgentScheduleEntry,
423
- type AgentVariationEntry as AgentVariationEntry,
424
- type BulkWorkspaceApply as BulkWorkspaceApply,
425
- type BulkWorkspaceApplyData as BulkWorkspaceApplyData,
426
- type BulkWorkspaceApplyInfo as BulkWorkspaceApplyInfo,
427
- type BulkWorkspaceApplyStatus as BulkWorkspaceApplyStatus,
428
- type MemoryEntryItem as MemoryEntryItem,
429
- type MemoryLayerEntry as MemoryLayerEntry,
430
- type ToolEntry as ToolEntry,
431
- type ToolSetEntry as ToolSetEntry,
432
- type VariationAssignmentEntry as VariationAssignmentEntry,
433
- type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
434
- type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
435
- type BulkWorkspaceResourceRetrieveParams as BulkWorkspaceResourceRetrieveParams,
436
- type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
437
- type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
438
- };
439
-
440
- export {
441
- Results as Results,
442
- type BulkWorkspaceApplyResult as BulkWorkspaceApplyResult,
443
- type BulkWorkspaceApplyResultData as BulkWorkspaceApplyResultData,
444
- type BulkWorkspaceApplyResultDataAgentOutcome as BulkWorkspaceApplyResultDataAgentOutcome,
445
- type BulkWorkspaceApplyResultDataAgentScheduleOutcome as BulkWorkspaceApplyResultDataAgentScheduleOutcome,
446
- type BulkWorkspaceApplyResultDataAgentVariationOutcome as BulkWorkspaceApplyResultDataAgentVariationOutcome,
447
- type BulkWorkspaceApplyResultDataMemoryEntryOutcome as BulkWorkspaceApplyResultDataMemoryEntryOutcome,
448
- type BulkWorkspaceApplyResultDataMemoryLayerOutcome as BulkWorkspaceApplyResultDataMemoryLayerOutcome,
449
- type BulkWorkspaceApplyResultDataToolOutcome as BulkWorkspaceApplyResultDataToolOutcome,
450
- type BulkWorkspaceApplyResultDataToolSetOutcome as BulkWorkspaceApplyResultDataToolSetOutcome,
451
- type BulkWorkspaceApplyResultDataVariationAssignmentOutcome as BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
452
- type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome as BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
453
- type BulkWorkspaceApplyResultsCursorPagination as BulkWorkspaceApplyResultsCursorPagination,
454
- type ResultListParams as ResultListParams,
455
- };
456
- }
@@ -1,38 +0,0 @@
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 BulkWorkspaceResourceRetrieveParams,
19
- type BulkWorkspaceResourceListParams,
20
- type BulkWorkspaceResourceApplyParams,
21
- type BulkWorkspaceAppliesCursorPagination,
22
- } from './bulk-workspace-resources';
23
- export {
24
- Results,
25
- type BulkWorkspaceApplyResult,
26
- type BulkWorkspaceApplyResultData,
27
- type BulkWorkspaceApplyResultDataAgentOutcome,
28
- type BulkWorkspaceApplyResultDataAgentScheduleOutcome,
29
- type BulkWorkspaceApplyResultDataAgentVariationOutcome,
30
- type BulkWorkspaceApplyResultDataMemoryEntryOutcome,
31
- type BulkWorkspaceApplyResultDataMemoryLayerOutcome,
32
- type BulkWorkspaceApplyResultDataToolOutcome,
33
- type BulkWorkspaceApplyResultDataToolSetOutcome,
34
- type BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
35
- type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
36
- type ResultListParams,
37
- type BulkWorkspaceApplyResultsCursorPagination,
38
- } from './results';