@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,818 +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 Shared from '../shared';
5
- import * as AgentsAPI from '../agents/agents';
6
- import * as SchedulesAPI from '../agents/schedules';
7
- import * as VariationsAPI from '../agents/variations';
8
- import * as EntriesAPI from '../memory-layers/entries';
9
- import * as MemoryLayersAPI from '../memory-layers/memory-layers';
10
- import * as ToolSetsAPI from '../tool-sets/tool-sets';
11
- import * as ToolsAPI from '../tool-sets/tools';
12
- import { CursorPagination, type CursorPaginationParams, PagePromise } from '../../core/pagination';
13
- import { RequestOptions } from '../../internal/request-options';
14
- import { path } from '../../internal/utils/path';
15
-
16
- /**
17
- * Apply a declarative bundle of workspace resources — tool sets, memory
18
- * layers, agents, variations, assignments, and schedules — in a single
19
- * asynchronous operation.
20
- */
21
- export class Results extends APIResource {
22
- /**
23
- * Lists each resource action recorded by a bulk workspace apply operation.
24
- */
25
- list(
26
- bulkWorkspaceApplyID: string,
27
- params: ResultListParams,
28
- options?: RequestOptions,
29
- ): PagePromise<BulkWorkspaceApplyResultsCursorPagination, BulkWorkspaceApplyResult> {
30
- const { workspaceId, ...query } = params;
31
- return this._client.getAPIList(
32
- path`/v1/workspaces/${workspaceId}/bulk_workspace_applies/${bulkWorkspaceApplyID}/results`,
33
- CursorPagination<BulkWorkspaceApplyResult>,
34
- { query, ...options },
35
- );
36
- }
37
- }
38
-
39
- export type BulkWorkspaceApplyResultsCursorPagination = CursorPagination<BulkWorkspaceApplyResult>;
40
-
41
- /**
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.
45
- */
46
- export interface BulkWorkspaceApplyResult {
47
- /**
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).
53
- */
54
- data: BulkWorkspaceApplyResultData;
55
-
56
- /**
57
- * Metadata for ephemeral operations and activities (e.g., objectives, executions,
58
- * runs)
59
- */
60
- metadata: Shared.OperationMetadata;
61
- }
62
-
63
- /**
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).
69
- */
70
- export interface BulkWorkspaceApplyResultData {
71
- agent?: BulkWorkspaceApplyResultDataAgentOutcome;
72
-
73
- agentSchedule?: BulkWorkspaceApplyResultDataAgentScheduleOutcome;
74
-
75
- agentVariation?: BulkWorkspaceApplyResultDataAgentVariationOutcome;
76
-
77
- memoryEntry?: BulkWorkspaceApplyResultDataMemoryEntryOutcome;
78
-
79
- memoryLayer?: BulkWorkspaceApplyResultDataMemoryLayerOutcome;
80
-
81
- tool?: BulkWorkspaceApplyResultDataToolOutcome;
82
-
83
- toolSet?: BulkWorkspaceApplyResultDataToolSetOutcome;
84
-
85
- type?: string;
86
-
87
- variationAssignment?: BulkWorkspaceApplyResultDataVariationAssignmentOutcome;
88
-
89
- variationMemoryLayer?: BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome;
90
- }
91
-
92
- export interface BulkWorkspaceApplyResultDataAgentOutcome {
93
- action?:
94
- | 'ACTION_UNSPECIFIED'
95
- | 'ACTION_CREATED'
96
- | 'ACTION_UPDATED'
97
- | 'ACTION_UNCHANGED'
98
- | 'ACTION_DELETED'
99
- | 'ACTION_FAILED';
100
-
101
- /**
102
- * The `Status` type defines a logical error model that is suitable for different
103
- * programming environments, including REST APIs and RPC APIs. It is used by
104
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
105
- * data: error code, error message, and error details. You can find out more about
106
- * this error model and how to work with it in the
107
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
108
- */
109
- error?: BulkWorkspaceApplyResultDataAgentOutcome.Error;
110
-
111
- externalId?: string;
112
-
113
- /**
114
- * Agent resource
115
- */
116
- resource?: AgentsAPI.Agent;
117
- }
118
-
119
- export namespace BulkWorkspaceApplyResultDataAgentOutcome {
120
- /**
121
- * The `Status` type defines a logical error model that is suitable for different
122
- * programming environments, including REST APIs and RPC APIs. It is used by
123
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
124
- * data: error code, error message, and error details. You can find out more about
125
- * this error model and how to work with it in the
126
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
127
- */
128
- export interface Error {
129
- /**
130
- * The status code, which should be an enum value of
131
- * [google.rpc.Code][google.rpc.Code].
132
- */
133
- code?: number;
134
-
135
- /**
136
- * A list of messages that carry the error details. There is a common set of
137
- * message types for APIs to use.
138
- */
139
- details?: Array<Error.Detail>;
140
-
141
- /**
142
- * A developer-facing error message, which should be in English. Any user-facing
143
- * error message should be localized and sent in the
144
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
145
- * the client.
146
- */
147
- message?: string;
148
- }
149
-
150
- export namespace Error {
151
- /**
152
- * Contains an arbitrary serialized message along with a @type that describes the
153
- * type of the serialized message.
154
- */
155
- export interface Detail {
156
- /**
157
- * The type of the serialized message.
158
- */
159
- '@type'?: string;
160
-
161
- [k: string]: unknown;
162
- }
163
- }
164
- }
165
-
166
- export interface BulkWorkspaceApplyResultDataAgentScheduleOutcome {
167
- action?:
168
- | 'ACTION_UNSPECIFIED'
169
- | 'ACTION_CREATED'
170
- | 'ACTION_UPDATED'
171
- | 'ACTION_UNCHANGED'
172
- | 'ACTION_DELETED'
173
- | 'ACTION_FAILED';
174
-
175
- /**
176
- * The `Status` type defines a logical error model that is suitable for different
177
- * programming environments, including REST APIs and RPC APIs. It is used by
178
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
179
- * data: error code, error message, and error details. You can find out more about
180
- * this error model and how to work with it in the
181
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
182
- */
183
- error?: BulkWorkspaceApplyResultDataAgentScheduleOutcome.Error;
184
-
185
- externalId?: string;
186
-
187
- /**
188
- * AgentSchedule resource — a recurring trigger attached to an agent that creates
189
- * objectives on its cadence.
190
- */
191
- resource?: SchedulesAPI.AgentSchedule;
192
- }
193
-
194
- export namespace BulkWorkspaceApplyResultDataAgentScheduleOutcome {
195
- /**
196
- * The `Status` type defines a logical error model that is suitable for different
197
- * programming environments, including REST APIs and RPC APIs. It is used by
198
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
199
- * data: error code, error message, and error details. You can find out more about
200
- * this error model and how to work with it in the
201
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
202
- */
203
- export interface Error {
204
- /**
205
- * The status code, which should be an enum value of
206
- * [google.rpc.Code][google.rpc.Code].
207
- */
208
- code?: number;
209
-
210
- /**
211
- * A list of messages that carry the error details. There is a common set of
212
- * message types for APIs to use.
213
- */
214
- details?: Array<Error.Detail>;
215
-
216
- /**
217
- * A developer-facing error message, which should be in English. Any user-facing
218
- * error message should be localized and sent in the
219
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
220
- * the client.
221
- */
222
- message?: string;
223
- }
224
-
225
- export namespace Error {
226
- /**
227
- * Contains an arbitrary serialized message along with a @type that describes the
228
- * type of the serialized message.
229
- */
230
- export interface Detail {
231
- /**
232
- * The type of the serialized message.
233
- */
234
- '@type'?: string;
235
-
236
- [k: string]: unknown;
237
- }
238
- }
239
- }
240
-
241
- export interface BulkWorkspaceApplyResultDataAgentVariationOutcome {
242
- action?:
243
- | 'ACTION_UNSPECIFIED'
244
- | 'ACTION_CREATED'
245
- | 'ACTION_UPDATED'
246
- | 'ACTION_UNCHANGED'
247
- | 'ACTION_DELETED'
248
- | 'ACTION_FAILED';
249
-
250
- /**
251
- * The `Status` type defines a logical error model that is suitable for different
252
- * programming environments, including REST APIs and RPC APIs. It is used by
253
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
254
- * data: error code, error message, and error details. You can find out more about
255
- * this error model and how to work with it in the
256
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
257
- */
258
- error?: BulkWorkspaceApplyResultDataAgentVariationOutcome.Error;
259
-
260
- externalId?: string;
261
-
262
- /**
263
- * AgentVariation resource
264
- */
265
- resource?: VariationsAPI.AgentVariation;
266
- }
267
-
268
- export namespace BulkWorkspaceApplyResultDataAgentVariationOutcome {
269
- /**
270
- * The `Status` type defines a logical error model that is suitable for different
271
- * programming environments, including REST APIs and RPC APIs. It is used by
272
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
273
- * data: error code, error message, and error details. You can find out more about
274
- * this error model and how to work with it in the
275
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
276
- */
277
- export interface Error {
278
- /**
279
- * The status code, which should be an enum value of
280
- * [google.rpc.Code][google.rpc.Code].
281
- */
282
- code?: number;
283
-
284
- /**
285
- * A list of messages that carry the error details. There is a common set of
286
- * message types for APIs to use.
287
- */
288
- details?: Array<Error.Detail>;
289
-
290
- /**
291
- * A developer-facing error message, which should be in English. Any user-facing
292
- * error message should be localized and sent in the
293
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
294
- * the client.
295
- */
296
- message?: string;
297
- }
298
-
299
- export namespace Error {
300
- /**
301
- * Contains an arbitrary serialized message along with a @type that describes the
302
- * type of the serialized message.
303
- */
304
- export interface Detail {
305
- /**
306
- * The type of the serialized message.
307
- */
308
- '@type'?: string;
309
-
310
- [k: string]: unknown;
311
- }
312
- }
313
- }
314
-
315
- export interface BulkWorkspaceApplyResultDataMemoryEntryOutcome {
316
- action?:
317
- | 'ACTION_UNSPECIFIED'
318
- | 'ACTION_CREATED'
319
- | 'ACTION_UPDATED'
320
- | 'ACTION_UNCHANGED'
321
- | 'ACTION_DELETED'
322
- | 'ACTION_FAILED';
323
-
324
- /**
325
- * The `Status` type defines a logical error model that is suitable for different
326
- * programming environments, including REST APIs and RPC APIs. It is used by
327
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
328
- * data: error code, error message, and error details. You can find out more about
329
- * this error model and how to work with it in the
330
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
331
- */
332
- error?: BulkWorkspaceApplyResultDataMemoryEntryOutcome.Error;
333
-
334
- externalId?: string;
335
-
336
- /**
337
- * MemoryEntry is a single keyed value within a MemoryLayer. Entries are addressed
338
- * by their key, which follows the S3 object key safe-character convention (see
339
- * MemoryEntrySpec.key for the full rule). Keys are unique within a single layer;
340
- * the same key may appear in multiple layers, in which case the cascade walk
341
- * determines which one wins for a given objective (most specific layer first).
342
- *
343
- * MemoryEntry is the summary shape, returned by ListMemoryEntries. It does not
344
- * carry the entry body — callers that need the body must fetch the entry
345
- * individually via GetMemoryEntry, which returns a MemoryEntryDetail.
346
- */
347
- resource?: EntriesAPI.MemoryEntry;
348
- }
349
-
350
- export namespace BulkWorkspaceApplyResultDataMemoryEntryOutcome {
351
- /**
352
- * The `Status` type defines a logical error model that is suitable for different
353
- * programming environments, including REST APIs and RPC APIs. It is used by
354
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
355
- * data: error code, error message, and error details. You can find out more about
356
- * this error model and how to work with it in the
357
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
358
- */
359
- export interface Error {
360
- /**
361
- * The status code, which should be an enum value of
362
- * [google.rpc.Code][google.rpc.Code].
363
- */
364
- code?: number;
365
-
366
- /**
367
- * A list of messages that carry the error details. There is a common set of
368
- * message types for APIs to use.
369
- */
370
- details?: Array<Error.Detail>;
371
-
372
- /**
373
- * A developer-facing error message, which should be in English. Any user-facing
374
- * error message should be localized and sent in the
375
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
376
- * the client.
377
- */
378
- message?: string;
379
- }
380
-
381
- export namespace Error {
382
- /**
383
- * Contains an arbitrary serialized message along with a @type that describes the
384
- * type of the serialized message.
385
- */
386
- export interface Detail {
387
- /**
388
- * The type of the serialized message.
389
- */
390
- '@type'?: string;
391
-
392
- [k: string]: unknown;
393
- }
394
- }
395
- }
396
-
397
- export interface BulkWorkspaceApplyResultDataMemoryLayerOutcome {
398
- action?:
399
- | 'ACTION_UNSPECIFIED'
400
- | 'ACTION_CREATED'
401
- | 'ACTION_UPDATED'
402
- | 'ACTION_UNCHANGED'
403
- | 'ACTION_DELETED'
404
- | 'ACTION_FAILED';
405
-
406
- /**
407
- * The `Status` type defines a logical error model that is suitable for different
408
- * programming environments, including REST APIs and RPC APIs. It is used by
409
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
410
- * data: error code, error message, and error details. You can find out more about
411
- * this error model and how to work with it in the
412
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
413
- */
414
- error?: BulkWorkspaceApplyResultDataMemoryLayerOutcome.Error;
415
-
416
- externalId?: string;
417
-
418
- /**
419
- * MemoryLayer is a named container of memory entries that can be composed into an
420
- * objective's memory cascade. Layers are workspace-scoped resources. The layer
421
- * type controls how its entries participate in the agent loop — see
422
- * MemoryLayerType for details.
423
- *
424
- * See "Memory cascade composition" above for how layers compose at lookup time.
425
- */
426
- resource?: MemoryLayersAPI.MemoryLayer;
427
- }
428
-
429
- export namespace BulkWorkspaceApplyResultDataMemoryLayerOutcome {
430
- /**
431
- * The `Status` type defines a logical error model that is suitable for different
432
- * programming environments, including REST APIs and RPC APIs. It is used by
433
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
434
- * data: error code, error message, and error details. You can find out more about
435
- * this error model and how to work with it in the
436
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
437
- */
438
- export interface Error {
439
- /**
440
- * The status code, which should be an enum value of
441
- * [google.rpc.Code][google.rpc.Code].
442
- */
443
- code?: number;
444
-
445
- /**
446
- * A list of messages that carry the error details. There is a common set of
447
- * message types for APIs to use.
448
- */
449
- details?: Array<Error.Detail>;
450
-
451
- /**
452
- * A developer-facing error message, which should be in English. Any user-facing
453
- * error message should be localized and sent in the
454
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
455
- * the client.
456
- */
457
- message?: string;
458
- }
459
-
460
- export namespace Error {
461
- /**
462
- * Contains an arbitrary serialized message along with a @type that describes the
463
- * type of the serialized message.
464
- */
465
- export interface Detail {
466
- /**
467
- * The type of the serialized message.
468
- */
469
- '@type'?: string;
470
-
471
- [k: string]: unknown;
472
- }
473
- }
474
- }
475
-
476
- export interface BulkWorkspaceApplyResultDataToolOutcome {
477
- action?:
478
- | 'ACTION_UNSPECIFIED'
479
- | 'ACTION_CREATED'
480
- | 'ACTION_UPDATED'
481
- | 'ACTION_UNCHANGED'
482
- | 'ACTION_DELETED'
483
- | 'ACTION_FAILED';
484
-
485
- /**
486
- * The `Status` type defines a logical error model that is suitable for different
487
- * programming environments, including REST APIs and RPC APIs. It is used by
488
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
489
- * data: error code, error message, and error details. You can find out more about
490
- * this error model and how to work with it in the
491
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
492
- */
493
- error?: BulkWorkspaceApplyResultDataToolOutcome.Error;
494
-
495
- externalId?: string;
496
-
497
- resource?: ToolsAPI.Tool;
498
- }
499
-
500
- export namespace BulkWorkspaceApplyResultDataToolOutcome {
501
- /**
502
- * The `Status` type defines a logical error model that is suitable for different
503
- * programming environments, including REST APIs and RPC APIs. It is used by
504
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
505
- * data: error code, error message, and error details. You can find out more about
506
- * this error model and how to work with it in the
507
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
508
- */
509
- export interface Error {
510
- /**
511
- * The status code, which should be an enum value of
512
- * [google.rpc.Code][google.rpc.Code].
513
- */
514
- code?: number;
515
-
516
- /**
517
- * A list of messages that carry the error details. There is a common set of
518
- * message types for APIs to use.
519
- */
520
- details?: Array<Error.Detail>;
521
-
522
- /**
523
- * A developer-facing error message, which should be in English. Any user-facing
524
- * error message should be localized and sent in the
525
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
526
- * the client.
527
- */
528
- message?: string;
529
- }
530
-
531
- export namespace Error {
532
- /**
533
- * Contains an arbitrary serialized message along with a @type that describes the
534
- * type of the serialized message.
535
- */
536
- export interface Detail {
537
- /**
538
- * The type of the serialized message.
539
- */
540
- '@type'?: string;
541
-
542
- [k: string]: unknown;
543
- }
544
- }
545
- }
546
-
547
- export interface BulkWorkspaceApplyResultDataToolSetOutcome {
548
- action?:
549
- | 'ACTION_UNSPECIFIED'
550
- | 'ACTION_CREATED'
551
- | 'ACTION_UPDATED'
552
- | 'ACTION_UNCHANGED'
553
- | 'ACTION_DELETED'
554
- | 'ACTION_FAILED';
555
-
556
- /**
557
- * The `Status` type defines a logical error model that is suitable for different
558
- * programming environments, including REST APIs and RPC APIs. It is used by
559
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
560
- * data: error code, error message, and error details. You can find out more about
561
- * this error model and how to work with it in the
562
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
563
- */
564
- error?: BulkWorkspaceApplyResultDataToolSetOutcome.Error;
565
-
566
- externalId?: string;
567
-
568
- resource?: ToolSetsAPI.ToolSet;
569
- }
570
-
571
- export namespace BulkWorkspaceApplyResultDataToolSetOutcome {
572
- /**
573
- * The `Status` type defines a logical error model that is suitable for different
574
- * programming environments, including REST APIs and RPC APIs. It is used by
575
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
576
- * data: error code, error message, and error details. You can find out more about
577
- * this error model and how to work with it in the
578
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
579
- */
580
- export interface Error {
581
- /**
582
- * The status code, which should be an enum value of
583
- * [google.rpc.Code][google.rpc.Code].
584
- */
585
- code?: number;
586
-
587
- /**
588
- * A list of messages that carry the error details. There is a common set of
589
- * message types for APIs to use.
590
- */
591
- details?: Array<Error.Detail>;
592
-
593
- /**
594
- * A developer-facing error message, which should be in English. Any user-facing
595
- * error message should be localized and sent in the
596
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
597
- * the client.
598
- */
599
- message?: string;
600
- }
601
-
602
- export namespace Error {
603
- /**
604
- * Contains an arbitrary serialized message along with a @type that describes the
605
- * type of the serialized message.
606
- */
607
- export interface Detail {
608
- /**
609
- * The type of the serialized message.
610
- */
611
- '@type'?: string;
612
-
613
- [k: string]: unknown;
614
- }
615
- }
616
- }
617
-
618
- export interface BulkWorkspaceApplyResultDataVariationAssignmentOutcome {
619
- action?:
620
- | 'ACTION_UNSPECIFIED'
621
- | 'ACTION_CREATED'
622
- | 'ACTION_UPDATED'
623
- | 'ACTION_UNCHANGED'
624
- | 'ACTION_DELETED'
625
- | 'ACTION_FAILED';
626
-
627
- /**
628
- * The `Status` type defines a logical error model that is suitable for different
629
- * programming environments, including REST APIs and RPC APIs. It is used by
630
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
631
- * data: error code, error message, and error details. You can find out more about
632
- * this error model and how to work with it in the
633
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
634
- */
635
- error?: BulkWorkspaceApplyResultDataVariationAssignmentOutcome.Error;
636
-
637
- /**
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
640
- * `AgentVariationInfo.assignments`; mutations go through the dedicated add/remove
641
- * assignment endpoints.
642
- *
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`.
646
- */
647
- resource?: VariationsAPI.VariationAssignment;
648
- }
649
-
650
- export namespace BulkWorkspaceApplyResultDataVariationAssignmentOutcome {
651
- /**
652
- * The `Status` type defines a logical error model that is suitable for different
653
- * programming environments, including REST APIs and RPC APIs. It is used by
654
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
655
- * data: error code, error message, and error details. You can find out more about
656
- * this error model and how to work with it in the
657
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
658
- */
659
- export interface Error {
660
- /**
661
- * The status code, which should be an enum value of
662
- * [google.rpc.Code][google.rpc.Code].
663
- */
664
- code?: number;
665
-
666
- /**
667
- * A list of messages that carry the error details. There is a common set of
668
- * message types for APIs to use.
669
- */
670
- details?: Array<Error.Detail>;
671
-
672
- /**
673
- * A developer-facing error message, which should be in English. Any user-facing
674
- * error message should be localized and sent in the
675
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
676
- * the client.
677
- */
678
- message?: string;
679
- }
680
-
681
- export namespace Error {
682
- /**
683
- * Contains an arbitrary serialized message along with a @type that describes the
684
- * type of the serialized message.
685
- */
686
- export interface Detail {
687
- /**
688
- * The type of the serialized message.
689
- */
690
- '@type'?: string;
691
-
692
- [k: string]: unknown;
693
- }
694
- }
695
- }
696
-
697
- export interface BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome {
698
- action?:
699
- | 'ACTION_UNSPECIFIED'
700
- | 'ACTION_CREATED'
701
- | 'ACTION_UPDATED'
702
- | 'ACTION_UNCHANGED'
703
- | 'ACTION_DELETED'
704
- | 'ACTION_FAILED';
705
-
706
- /**
707
- * The `Status` type defines a logical error model that is suitable for different
708
- * programming environments, including REST APIs and RPC APIs. It is used by
709
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
710
- * data: error code, error message, and error details. You can find out more about
711
- * this error model and how to work with it in the
712
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
713
- */
714
- error?: BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome.Error;
715
-
716
- /**
717
- * VariationMemoryLayerAssignment attaches a single MemoryLayer to a variation at a
718
- * given position in the variation's baseline memory cascade. A variation has at
719
- * most one assignment per memory_layer_id.
720
- *
721
- * Variations only support whole-layer attachments — entry pinning is an
722
- * objective-level capability.
723
- */
724
- resource?: VariationsAPI.VariationMemoryLayerAssignment;
725
- }
726
-
727
- export namespace BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome {
728
- /**
729
- * The `Status` type defines a logical error model that is suitable for different
730
- * programming environments, including REST APIs and RPC APIs. It is used by
731
- * [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
732
- * data: error code, error message, and error details. You can find out more about
733
- * this error model and how to work with it in the
734
- * [API Design Guide](https://cloud.google.com/apis/design/errors).
735
- */
736
- export interface Error {
737
- /**
738
- * The status code, which should be an enum value of
739
- * [google.rpc.Code][google.rpc.Code].
740
- */
741
- code?: number;
742
-
743
- /**
744
- * A list of messages that carry the error details. There is a common set of
745
- * message types for APIs to use.
746
- */
747
- details?: Array<Error.Detail>;
748
-
749
- /**
750
- * A developer-facing error message, which should be in English. Any user-facing
751
- * error message should be localized and sent in the
752
- * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
753
- * the client.
754
- */
755
- message?: string;
756
- }
757
-
758
- export namespace Error {
759
- /**
760
- * Contains an arbitrary serialized message along with a @type that describes the
761
- * type of the serialized message.
762
- */
763
- export interface Detail {
764
- /**
765
- * The type of the serialized message.
766
- */
767
- '@type'?: string;
768
-
769
- [k: string]: unknown;
770
- }
771
- }
772
- }
773
-
774
- export interface ResultListParams extends CursorPaginationParams {
775
- /**
776
- * Path param: Workspace ID.
777
- */
778
- workspaceId: string;
779
-
780
- /**
781
- * Query param: Filter by action.
782
- */
783
- action?:
784
- | 'ACTION_UNSPECIFIED'
785
- | 'ACTION_CREATED'
786
- | 'ACTION_UPDATED'
787
- | 'ACTION_UNCHANGED'
788
- | 'ACTION_DELETED'
789
- | 'ACTION_FAILED';
790
-
791
- /**
792
- * Query param: Sort order for results (asc or desc by creation time)
793
- */
794
- sortOrder?: string;
795
-
796
- /**
797
- * Query param: Filter by data.type discriminator (e.g., "toolSet", "memoryEntry").
798
- */
799
- type?: string;
800
- }
801
-
802
- export declare namespace Results {
803
- export {
804
- type BulkWorkspaceApplyResult as BulkWorkspaceApplyResult,
805
- type BulkWorkspaceApplyResultData as BulkWorkspaceApplyResultData,
806
- type BulkWorkspaceApplyResultDataAgentOutcome as BulkWorkspaceApplyResultDataAgentOutcome,
807
- type BulkWorkspaceApplyResultDataAgentScheduleOutcome as BulkWorkspaceApplyResultDataAgentScheduleOutcome,
808
- type BulkWorkspaceApplyResultDataAgentVariationOutcome as BulkWorkspaceApplyResultDataAgentVariationOutcome,
809
- type BulkWorkspaceApplyResultDataMemoryEntryOutcome as BulkWorkspaceApplyResultDataMemoryEntryOutcome,
810
- type BulkWorkspaceApplyResultDataMemoryLayerOutcome as BulkWorkspaceApplyResultDataMemoryLayerOutcome,
811
- type BulkWorkspaceApplyResultDataToolOutcome as BulkWorkspaceApplyResultDataToolOutcome,
812
- type BulkWorkspaceApplyResultDataToolSetOutcome as BulkWorkspaceApplyResultDataToolSetOutcome,
813
- type BulkWorkspaceApplyResultDataVariationAssignmentOutcome as BulkWorkspaceApplyResultDataVariationAssignmentOutcome,
814
- type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome as BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome,
815
- type BulkWorkspaceApplyResultsCursorPagination as BulkWorkspaceApplyResultsCursorPagination,
816
- type ResultListParams as ResultListParams,
817
- };
818
- }