@cadenya/cadenya 0.95.0 → 0.96.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 +0 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -8
- package/client.d.ts.map +1 -1
- package/client.js +0 -8
- package/client.js.map +1 -1
- package/client.mjs +0 -8
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +0 -4
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +0 -4
- 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 +0 -4
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +0 -4
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/variations.d.mts +0 -4
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +0 -4
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/api-keys/api-keys.d.mts +0 -4
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +0 -4
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +0 -4
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +0 -4
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +0 -4
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +0 -4
- 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 +0 -4
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +0 -4
- package/resources/models.d.ts.map +1 -1
- package/resources/shared.d.mts +0 -15
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -15
- package/resources/shared.d.ts.map +1 -1
- package/resources/tool-sets/secrets.d.mts +0 -4
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +0 -4
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +0 -4
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +0 -4
- 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 +0 -4
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +0 -4
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/workspace-secrets.d.mts +0 -4
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +0 -4
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/src/client.ts +0 -48
- package/src/resources/agents/agents.ts +0 -5
- package/src/resources/agents/schedules.ts +0 -5
- package/src/resources/agents/variations.ts +0 -5
- package/src/resources/api-keys/api-keys.ts +0 -5
- package/src/resources/index.ts +0 -20
- package/src/resources/memory-layers/entries.ts +0 -5
- package/src/resources/memory-layers/memory-layers.ts +0 -5
- package/src/resources/models.ts +0 -5
- package/src/resources/shared.ts +0 -18
- package/src/resources/tool-sets/secrets.ts +0 -5
- package/src/resources/tool-sets/tool-sets.ts +0 -5
- package/src/resources/tool-sets/tools.ts +0 -5
- package/src/resources/workspace-secrets.ts +0 -5
- 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
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +0 -313
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +0 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +0 -313
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +0 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +0 -47
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +0 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +0 -42
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +0 -1
- package/resources/bulk-workspace-resources/index.d.mts +0 -3
- package/resources/bulk-workspace-resources/index.d.mts.map +0 -1
- package/resources/bulk-workspace-resources/index.d.ts +0 -3
- package/resources/bulk-workspace-resources/index.d.ts.map +0 -1
- package/resources/bulk-workspace-resources/index.js +0 -9
- package/resources/bulk-workspace-resources/index.js.map +0 -1
- package/resources/bulk-workspace-resources/index.mjs +0 -4
- package/resources/bulk-workspace-resources/index.mjs.map +0 -1
- package/resources/bulk-workspace-resources/results.d.mts +0 -633
- package/resources/bulk-workspace-resources/results.d.mts.map +0 -1
- package/resources/bulk-workspace-resources/results.d.ts +0 -633
- package/resources/bulk-workspace-resources/results.d.ts.map +0 -1
- package/resources/bulk-workspace-resources/results.js +0 -23
- package/resources/bulk-workspace-resources/results.js.map +0 -1
- package/resources/bulk-workspace-resources/results.mjs +0 -19
- package/resources/bulk-workspace-resources/results.mjs.map +0 -1
- package/resources/bulk-workspace-resources.d.mts +0 -2
- package/resources/bulk-workspace-resources.d.mts.map +0 -1
- package/resources/bulk-workspace-resources.d.ts +0 -2
- package/resources/bulk-workspace-resources.d.ts.map +0 -1
- package/resources/bulk-workspace-resources.js +0 -6
- package/resources/bulk-workspace-resources.js.map +0 -1
- package/resources/bulk-workspace-resources.mjs +0 -3
- package/resources/bulk-workspace-resources.mjs.map +0 -1
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +0 -456
- package/src/resources/bulk-workspace-resources/index.ts +0 -38
- package/src/resources/bulk-workspace-resources/results.ts +0 -818
- package/src/resources/bulk-workspace-resources.ts +0 -3
package/src/resources/shared.ts
CHANGED
|
@@ -86,11 +86,6 @@ export interface CreateResourceMetadata {
|
|
|
86
86
|
*/
|
|
87
87
|
name: string;
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* Optional bundle ownership key. See ResourceMetadata.bundle_key.
|
|
91
|
-
*/
|
|
92
|
-
bundleKey?: string;
|
|
93
|
-
|
|
94
89
|
/**
|
|
95
90
|
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
96
91
|
*/
|
|
@@ -181,14 +176,6 @@ export interface ResourceMetadata {
|
|
|
181
176
|
*/
|
|
182
177
|
workspaceId: string;
|
|
183
178
|
|
|
184
|
-
/**
|
|
185
|
-
* Optional bundle ownership key. When set, indicates the resource is managed by a
|
|
186
|
-
* configuration bundle identified by this key. Used by
|
|
187
|
-
* BulkWorkspaceResources.Apply to track which resources belong to which bundle for
|
|
188
|
-
* reconciliation / soft-delete on re-apply.
|
|
189
|
-
*/
|
|
190
|
-
bundleKey?: string;
|
|
191
|
-
|
|
192
179
|
/**
|
|
193
180
|
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
194
181
|
*/
|
|
@@ -218,11 +205,6 @@ export interface UpdateResourceMetadata {
|
|
|
218
205
|
*/
|
|
219
206
|
name: string;
|
|
220
207
|
|
|
221
|
-
/**
|
|
222
|
-
* Optional bundle ownership key. See ResourceMetadata.bundle_key.
|
|
223
|
-
*/
|
|
224
|
-
bundleKey?: string;
|
|
225
|
-
|
|
226
208
|
/**
|
|
227
209
|
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
228
210
|
*/
|
|
@@ -179,11 +179,6 @@ export interface SecretListParams extends CursorPaginationParams {
|
|
|
179
179
|
*/
|
|
180
180
|
workspaceId: string;
|
|
181
181
|
|
|
182
|
-
/**
|
|
183
|
-
* Query param: Filter by bundle_key — return only resources owned by this bundle.
|
|
184
|
-
*/
|
|
185
|
-
bundleKey?: string;
|
|
186
|
-
|
|
187
182
|
/**
|
|
188
183
|
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
189
184
|
*/
|
|
@@ -501,11 +501,6 @@ export interface ToolSetUpdateParams {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
export interface ToolSetListParams extends CursorPaginationParams {
|
|
504
|
-
/**
|
|
505
|
-
* Filter by bundle_key — return only resources owned by this bundle.
|
|
506
|
-
*/
|
|
507
|
-
bundleKey?: string;
|
|
508
|
-
|
|
509
504
|
/**
|
|
510
505
|
* When set to true you may use more of your alloted API rate-limit
|
|
511
506
|
*/
|
|
@@ -262,11 +262,6 @@ export interface ToolListParams extends CursorPaginationParams {
|
|
|
262
262
|
*/
|
|
263
263
|
workspaceId: string;
|
|
264
264
|
|
|
265
|
-
/**
|
|
266
|
-
* Query param: Filter by bundle_key — return only resources owned by this bundle.
|
|
267
|
-
*/
|
|
268
|
-
bundleKey?: string;
|
|
269
|
-
|
|
270
265
|
/**
|
|
271
266
|
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
272
267
|
*/
|
|
@@ -150,11 +150,6 @@ export interface WorkspaceSecretUpdateParams {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
153
|
-
/**
|
|
154
|
-
* Filter by bundle_key — return only resources owned by this bundle.
|
|
155
|
-
*/
|
|
156
|
-
bundleKey?: string;
|
|
157
|
-
|
|
158
153
|
/**
|
|
159
154
|
* When set to true you may use more of your alloted API rate-limit
|
|
160
155
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.96.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.96.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.96.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.96.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as AccountAPI from "../account.mjs";
|
|
3
|
-
import * as Shared from "../shared.mjs";
|
|
4
|
-
import * as AgentsAPI from "../agents/agents.mjs";
|
|
5
|
-
import * as SchedulesAPI from "../agents/schedules.mjs";
|
|
6
|
-
import * as VariationsAPI from "../agents/variations.mjs";
|
|
7
|
-
import * as ResultsAPI from "./results.mjs";
|
|
8
|
-
import { BulkWorkspaceApplyResult, BulkWorkspaceApplyResultData, BulkWorkspaceApplyResultDataAgentOutcome, BulkWorkspaceApplyResultDataAgentScheduleOutcome, BulkWorkspaceApplyResultDataAgentVariationOutcome, BulkWorkspaceApplyResultDataMemoryEntryOutcome, BulkWorkspaceApplyResultDataMemoryLayerOutcome, BulkWorkspaceApplyResultDataToolOutcome, BulkWorkspaceApplyResultDataToolSetOutcome, BulkWorkspaceApplyResultDataVariationAssignmentOutcome, BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome, BulkWorkspaceApplyResultsCursorPagination, ResultListParams, Results } from "./results.mjs";
|
|
9
|
-
import * as MemoryLayersAPI from "../memory-layers/memory-layers.mjs";
|
|
10
|
-
import * as ToolSetsAPI from "../tool-sets/tool-sets.mjs";
|
|
11
|
-
import * as ToolsAPI from "../tool-sets/tools.mjs";
|
|
12
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
13
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
14
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
15
|
-
/**
|
|
16
|
-
* Apply a declarative bundle of workspace resources — tool sets, memory
|
|
17
|
-
* layers, agents, variations, assignments, and schedules — in a single
|
|
18
|
-
* asynchronous operation.
|
|
19
|
-
*/
|
|
20
|
-
export declare class BulkWorkspaceResources extends APIResource {
|
|
21
|
-
results: ResultsAPI.Results;
|
|
22
|
-
/**
|
|
23
|
-
* Retrieves a bulk workspace apply operation by ID.
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id: string, params: BulkWorkspaceResourceRetrieveParams, options?: RequestOptions): APIPromise<BulkWorkspaceApply>;
|
|
26
|
-
/**
|
|
27
|
-
* Lists past and in-flight bulk workspace apply operations in the workspace.
|
|
28
|
-
*/
|
|
29
|
-
list(workspaceID: string, query?: BulkWorkspaceResourceListParams | null | undefined, options?: RequestOptions): PagePromise<BulkWorkspaceAppliesCursorPagination, BulkWorkspaceApply>;
|
|
30
|
-
/**
|
|
31
|
-
* Asynchronously applies a declarative bundle of workspace resources. Returns the
|
|
32
|
-
* operation immediately in PENDING; clients poll Get to track progress.
|
|
33
|
-
*/
|
|
34
|
-
apply(workspaceID: string, body: BulkWorkspaceResourceApplyParams, options?: RequestOptions): APIPromise<BulkWorkspaceApply>;
|
|
35
|
-
}
|
|
36
|
-
export type BulkWorkspaceAppliesCursorPagination = CursorPagination<BulkWorkspaceApply>;
|
|
37
|
-
export interface AgentEntry {
|
|
38
|
-
name: string;
|
|
39
|
-
/**
|
|
40
|
-
* Agent specification (user-provided configuration)
|
|
41
|
-
*/
|
|
42
|
-
spec: AgentsAPI.AgentSpec;
|
|
43
|
-
labels?: {
|
|
44
|
-
[key: string]: string;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Schedules under this agent, keyed by external_id.
|
|
48
|
-
*/
|
|
49
|
-
schedules?: {
|
|
50
|
-
[key: string]: AgentScheduleEntry;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Desired lifecycle state for the agent. Defaults to STATE_DRAFT when unspecified.
|
|
54
|
-
* STATE_PUBLISHED publishes the agent once its variations exist; see also
|
|
55
|
-
* BulkWorkspaceApplyData.automatically_publish_agents.
|
|
56
|
-
*/
|
|
57
|
-
state?: 'STATE_UNSPECIFIED' | 'STATE_DRAFT' | 'STATE_PUBLISHED' | 'STATE_ARCHIVED';
|
|
58
|
-
/**
|
|
59
|
-
* Variations under this agent, keyed by external_id.
|
|
60
|
-
*/
|
|
61
|
-
variations?: {
|
|
62
|
-
[key: string]: AgentVariationEntry;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export interface AgentScheduleEntry {
|
|
66
|
-
name: string;
|
|
67
|
-
/**
|
|
68
|
-
* AgentScheduleSpec is the user-provided configuration for a schedule.
|
|
69
|
-
*/
|
|
70
|
-
spec: SchedulesAPI.AgentScheduleSpec;
|
|
71
|
-
labels?: {
|
|
72
|
-
[key: string]: string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Desired lifecycle state for the schedule. Defaults to STATE_ACTIVE when
|
|
76
|
-
* unspecified. Declare STATE_PAUSED to provision a schedule without it firing.
|
|
77
|
-
* STATE_ARCHIVED is rejected here.
|
|
78
|
-
*/
|
|
79
|
-
state?: 'STATE_UNSPECIFIED' | 'STATE_ACTIVE' | 'STATE_PAUSED' | 'STATE_ARCHIVED';
|
|
80
|
-
}
|
|
81
|
-
export interface AgentVariationEntry {
|
|
82
|
-
name: string;
|
|
83
|
-
/**
|
|
84
|
-
* AgentVariationSpec defines the operational configuration for a variation
|
|
85
|
-
*/
|
|
86
|
-
spec: VariationsAPI.AgentVariationSpec;
|
|
87
|
-
/**
|
|
88
|
-
* Reconciled list — server adjusts the variation's assignments to exactly this set
|
|
89
|
-
* when the variation is bundle-owned.
|
|
90
|
-
*/
|
|
91
|
-
assignments?: Array<VariationAssignmentEntry>;
|
|
92
|
-
labels?: {
|
|
93
|
-
[key: string]: string;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Reconciled list of memory layer assignments. Up to 10 entries.
|
|
97
|
-
*/
|
|
98
|
-
memoryLayers?: Array<VariationMemoryLayerEntry>;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* The operation resource produced by a call to BulkWorkspaceResources.Apply. It
|
|
102
|
-
* carries the input bundle in `data`, the lifecycle state in `status`, and
|
|
103
|
-
* aggregate counts in `info`.
|
|
104
|
-
*/
|
|
105
|
-
export interface BulkWorkspaceApply {
|
|
106
|
-
data: BulkWorkspaceApplyData;
|
|
107
|
-
/**
|
|
108
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
109
|
-
* runs)
|
|
110
|
-
*/
|
|
111
|
-
metadata: Shared.OperationMetadata;
|
|
112
|
-
status: BulkWorkspaceApplyStatus;
|
|
113
|
-
info?: BulkWorkspaceApplyInfo;
|
|
114
|
-
}
|
|
115
|
-
export interface BulkWorkspaceApplyData {
|
|
116
|
-
/**
|
|
117
|
-
* Required. Bundle ownership key. Resources created or updated by an Apply have
|
|
118
|
-
* their `metadata.bundle_key` set to this value. On subsequent applies with the
|
|
119
|
-
* same bundle_key, resources currently bearing this bundle_key but absent from the
|
|
120
|
-
* spec are soft-deleted.
|
|
121
|
-
*/
|
|
122
|
-
bundleKey: string;
|
|
123
|
-
/**
|
|
124
|
-
* Agents to upsert, keyed by external_id.
|
|
125
|
-
*/
|
|
126
|
-
agents?: {
|
|
127
|
-
[key: string]: AgentEntry;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* When true, every agent created or updated by this Apply has its state forced to
|
|
131
|
-
* STATE_PUBLISHED, regardless of the state declared on the agent's entry. Useful
|
|
132
|
-
* when the bundle represents a production configuration and you want all of its
|
|
133
|
-
* agents live without setting state: STATE_PUBLISHED on each entry.
|
|
134
|
-
*
|
|
135
|
-
* Default false: each agent entry's `state` controls (which is STATE_DRAFT on
|
|
136
|
-
* create when unspecified).
|
|
137
|
-
*/
|
|
138
|
-
automaticallyPublishAgents?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Memory layers to upsert, keyed by external_id.
|
|
141
|
-
*/
|
|
142
|
-
memoryLayers?: {
|
|
143
|
-
[key: string]: MemoryLayerEntry;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Optional URL pointing to the source of this apply (GitHub PR, Jenkins build,
|
|
147
|
-
* GitLab pipeline, etc.). Surfaced in the dashboard so users can jump from an
|
|
148
|
-
* apply back to the change that produced it. Free-form HTTPS URI; not interpreted
|
|
149
|
-
* by the server.
|
|
150
|
-
*/
|
|
151
|
-
sourceUrl?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Tool sets to upsert, keyed by external_id.
|
|
154
|
-
*/
|
|
155
|
-
toolSets?: {
|
|
156
|
-
[key: string]: ToolSetEntry;
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
export interface BulkWorkspaceApplyInfo {
|
|
160
|
-
completedAt?: string;
|
|
161
|
-
/**
|
|
162
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
163
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
164
|
-
* workspaces.
|
|
165
|
-
*/
|
|
166
|
-
createdBy?: AccountAPI.Profile;
|
|
167
|
-
createdCount?: number;
|
|
168
|
-
deletedCount?: number;
|
|
169
|
-
failedCount?: number;
|
|
170
|
-
startedAt?: string;
|
|
171
|
-
totalCount?: number;
|
|
172
|
-
unchangedCount?: number;
|
|
173
|
-
updatedCount?: number;
|
|
174
|
-
}
|
|
175
|
-
export interface BulkWorkspaceApplyStatus {
|
|
176
|
-
state: 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_VALIDATING' | 'STATE_RUNNING' | 'STATE_SUCCEEDED' | 'STATE_PARTIALLY_APPLIED' | 'STATE_FAILED' | 'STATE_CANCELLED';
|
|
177
|
-
message?: string;
|
|
178
|
-
/**
|
|
179
|
-
* The `Status` type defines a logical error model that is suitable for different
|
|
180
|
-
* programming environments, including REST APIs and RPC APIs. It is used by
|
|
181
|
-
* [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
182
|
-
* data: error code, error message, and error details. You can find out more about
|
|
183
|
-
* this error model and how to work with it in the
|
|
184
|
-
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
185
|
-
*/
|
|
186
|
-
preflightError?: BulkWorkspaceApplyStatus.PreflightError;
|
|
187
|
-
}
|
|
188
|
-
export declare namespace BulkWorkspaceApplyStatus {
|
|
189
|
-
/**
|
|
190
|
-
* The `Status` type defines a logical error model that is suitable for different
|
|
191
|
-
* programming environments, including REST APIs and RPC APIs. It is used by
|
|
192
|
-
* [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
193
|
-
* data: error code, error message, and error details. You can find out more about
|
|
194
|
-
* this error model and how to work with it in the
|
|
195
|
-
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
196
|
-
*/
|
|
197
|
-
interface PreflightError {
|
|
198
|
-
/**
|
|
199
|
-
* The status code, which should be an enum value of
|
|
200
|
-
* [google.rpc.Code][google.rpc.Code].
|
|
201
|
-
*/
|
|
202
|
-
code?: number;
|
|
203
|
-
/**
|
|
204
|
-
* A list of messages that carry the error details. There is a common set of
|
|
205
|
-
* message types for APIs to use.
|
|
206
|
-
*/
|
|
207
|
-
details?: Array<PreflightError.Detail>;
|
|
208
|
-
/**
|
|
209
|
-
* A developer-facing error message, which should be in English. Any user-facing
|
|
210
|
-
* error message should be localized and sent in the
|
|
211
|
-
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by
|
|
212
|
-
* the client.
|
|
213
|
-
*/
|
|
214
|
-
message?: string;
|
|
215
|
-
}
|
|
216
|
-
namespace PreflightError {
|
|
217
|
-
/**
|
|
218
|
-
* Contains an arbitrary serialized message along with a @type that describes the
|
|
219
|
-
* type of the serialized message.
|
|
220
|
-
*/
|
|
221
|
-
interface Detail {
|
|
222
|
-
/**
|
|
223
|
-
* The type of the serialized message.
|
|
224
|
-
*/
|
|
225
|
-
'@type'?: string;
|
|
226
|
-
[k: string]: unknown;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
export interface MemoryEntryItem {
|
|
231
|
-
key: string;
|
|
232
|
-
content?: string;
|
|
233
|
-
description?: string;
|
|
234
|
-
uploadId?: string;
|
|
235
|
-
}
|
|
236
|
-
export interface MemoryLayerEntry {
|
|
237
|
-
name: string;
|
|
238
|
-
spec: MemoryLayersAPI.MemoryLayerSpec;
|
|
239
|
-
/**
|
|
240
|
-
* Memory entries in this layer, keyed by external_id.
|
|
241
|
-
*/
|
|
242
|
-
entries?: {
|
|
243
|
-
[key: string]: MemoryEntryItem;
|
|
244
|
-
};
|
|
245
|
-
labels?: {
|
|
246
|
-
[key: string]: string;
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
export interface ToolEntry {
|
|
250
|
-
name: string;
|
|
251
|
-
spec: ToolsAPI.ToolSpec;
|
|
252
|
-
labels?: {
|
|
253
|
-
[key: string]: string;
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Desired lifecycle state for the tool. Defaults to STATE_AVAILABLE when
|
|
257
|
-
* unspecified. STATE_ARCHIVED is server-managed and is rejected here.
|
|
258
|
-
*/
|
|
259
|
-
state?: 'STATE_UNSPECIFIED' | 'STATE_AVAILABLE' | 'STATE_OMITTED' | 'STATE_ARCHIVED';
|
|
260
|
-
}
|
|
261
|
-
export interface ToolSetEntry {
|
|
262
|
-
name: string;
|
|
263
|
-
spec: ToolSetsAPI.ToolSetSpec;
|
|
264
|
-
labels?: {
|
|
265
|
-
[key: string]: string;
|
|
266
|
-
};
|
|
267
|
-
/**
|
|
268
|
-
* Tools in this tool set, keyed by external_id.
|
|
269
|
-
*/
|
|
270
|
-
tools?: {
|
|
271
|
-
[key: string]: ToolEntry;
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
export interface VariationAssignmentEntry {
|
|
275
|
-
subAgentId?: string;
|
|
276
|
-
toolId?: string;
|
|
277
|
-
toolSetId?: string;
|
|
278
|
-
}
|
|
279
|
-
export interface VariationMemoryLayerEntry {
|
|
280
|
-
/**
|
|
281
|
-
* external_id:<value> form. Canonical IDs are rejected.
|
|
282
|
-
*/
|
|
283
|
-
memoryLayerId?: string;
|
|
284
|
-
position?: number;
|
|
285
|
-
}
|
|
286
|
-
export interface BulkWorkspaceResourceRetrieveParams {
|
|
287
|
-
/**
|
|
288
|
-
* Workspace ID.
|
|
289
|
-
*/
|
|
290
|
-
workspaceId: string;
|
|
291
|
-
}
|
|
292
|
-
export interface BulkWorkspaceResourceListParams extends CursorPaginationParams {
|
|
293
|
-
/**
|
|
294
|
-
* Filter by bundle_key — list every apply for a given bundle.
|
|
295
|
-
*/
|
|
296
|
-
bundleKey?: string;
|
|
297
|
-
/**
|
|
298
|
-
* Sort order for results (asc or desc by creation time)
|
|
299
|
-
*/
|
|
300
|
-
sortOrder?: string;
|
|
301
|
-
/**
|
|
302
|
-
* Filter by lifecycle state.
|
|
303
|
-
*/
|
|
304
|
-
state?: 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_VALIDATING' | 'STATE_RUNNING' | 'STATE_SUCCEEDED' | 'STATE_PARTIALLY_APPLIED' | 'STATE_FAILED' | 'STATE_CANCELLED';
|
|
305
|
-
}
|
|
306
|
-
export interface BulkWorkspaceResourceApplyParams {
|
|
307
|
-
data: BulkWorkspaceApplyData;
|
|
308
|
-
}
|
|
309
|
-
export declare namespace BulkWorkspaceResources {
|
|
310
|
-
export { type AgentEntry as AgentEntry, type AgentScheduleEntry as AgentScheduleEntry, type AgentVariationEntry as AgentVariationEntry, type BulkWorkspaceApply as BulkWorkspaceApply, type BulkWorkspaceApplyData as BulkWorkspaceApplyData, type BulkWorkspaceApplyInfo as BulkWorkspaceApplyInfo, type BulkWorkspaceApplyStatus as BulkWorkspaceApplyStatus, type MemoryEntryItem as MemoryEntryItem, type MemoryLayerEntry as MemoryLayerEntry, type ToolEntry as ToolEntry, type ToolSetEntry as ToolSetEntry, type VariationAssignmentEntry as VariationAssignmentEntry, type VariationMemoryLayerEntry as VariationMemoryLayerEntry, type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination, type BulkWorkspaceResourceRetrieveParams as BulkWorkspaceResourceRetrieveParams, type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams, type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams, };
|
|
311
|
-
export { Results as Results, type BulkWorkspaceApplyResult as BulkWorkspaceApplyResult, type BulkWorkspaceApplyResultData as BulkWorkspaceApplyResultData, type BulkWorkspaceApplyResultDataAgentOutcome as BulkWorkspaceApplyResultDataAgentOutcome, type BulkWorkspaceApplyResultDataAgentScheduleOutcome as BulkWorkspaceApplyResultDataAgentScheduleOutcome, type BulkWorkspaceApplyResultDataAgentVariationOutcome as BulkWorkspaceApplyResultDataAgentVariationOutcome, type BulkWorkspaceApplyResultDataMemoryEntryOutcome as BulkWorkspaceApplyResultDataMemoryEntryOutcome, type BulkWorkspaceApplyResultDataMemoryLayerOutcome as BulkWorkspaceApplyResultDataMemoryLayerOutcome, type BulkWorkspaceApplyResultDataToolOutcome as BulkWorkspaceApplyResultDataToolOutcome, type BulkWorkspaceApplyResultDataToolSetOutcome as BulkWorkspaceApplyResultDataToolSetOutcome, type BulkWorkspaceApplyResultDataVariationAssignmentOutcome as BulkWorkspaceApplyResultDataVariationAssignmentOutcome, type BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome as BulkWorkspaceApplyResultDataVariationMemoryLayerOutcome, type BulkWorkspaceApplyResultsCursorPagination as BulkWorkspaceApplyResultsCursorPagination, type ResultListParams as ResultListParams, };
|
|
312
|
-
}
|
|
313
|
-
//# 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/bulk-workspace-resources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,SAAS,6BAAyB;AAC9C,OAAO,KAAK,YAAY,gCAA4B;AACpD,OAAO,KAAK,aAAa,iCAA6B;AACtD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wCAAwC,EACxC,gDAAgD,EAChD,iDAAiD,EACjD,8CAA8C,EAC9C,8CAA8C,EAC9C,uCAAuC,EACvC,0CAA0C,EAC1C,sDAAsD,EACtD,uDAAuD,EACvD,yCAAyC,EACzC,gBAAgB,EAChB,OAAO,EACR,sBAAkB;AACnB,OAAO,KAAK,eAAe,2CAAuC;AAClE,OAAO,KAAK,WAAW,mCAA+B;AACtD,OAAO,KAAK,QAAQ,+BAA2B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mCAAmC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAKjC;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,+BAA+B,GAAG,IAAI,GA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