@cadenya/cadenya 0.124.0 → 0.126.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 +17 -0
- package/README.md +18 -7
- package/client.d.mts +17 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -11
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +115 -28
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +115 -28
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +93 -13
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +93 -13
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +13 -2
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +13 -2
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +13 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +13 -2
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +100 -52
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +100 -52
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +99 -21
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +99 -21
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +252 -105
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +252 -105
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +138 -27
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +138 -27
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +13 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +13 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +13 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +13 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +125 -110
- package/resources/ai-provider-keys.d.mts.map +1 -1
- package/resources/ai-provider-keys.d.ts +125 -110
- package/resources/ai-provider-keys.d.ts.map +1 -1
- package/resources/ai-provider-keys.js +11 -9
- package/resources/ai-provider-keys.js.map +1 -1
- package/resources/ai-provider-keys.mjs +11 -9
- package/resources/ai-provider-keys.mjs.map +1 -1
- package/resources/api-keys.d.mts +28 -20
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -20
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +14 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +14 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +27 -30
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +27 -30
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +12 -12
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +12 -12
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +34 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +34 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +11 -9
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +11 -9
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +32 -24
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +32 -24
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -8
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -8
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +27 -3
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +27 -3
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +27 -3
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +27 -3
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +2 -2
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +2 -2
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +273 -102
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +273 -102
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +112 -17
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +112 -17
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +25 -8
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +25 -8
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +26 -5
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +26 -5
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +99 -42
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +99 -42
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +73 -14
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +73 -14
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +13 -2
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +13 -2
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +13 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +13 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +11 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +11 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +3 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +3 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/secrets.d.mts +9 -24
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +9 -24
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/secrets.js +12 -12
- package/resources/tool-sets/secrets.js.map +1 -1
- package/resources/tool-sets/secrets.mjs +12 -12
- package/resources/tool-sets/secrets.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +149 -64
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +149 -64
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +17 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +17 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +33 -43
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +33 -43
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -18
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -18
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +14 -6
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +14 -6
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +1 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +1 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/members.d.mts +41 -6
- package/resources/workspace-admin/members.d.mts.map +1 -1
- package/resources/workspace-admin/members.d.ts +41 -6
- package/resources/workspace-admin/members.d.ts.map +1 -1
- package/resources/workspace-admin/members.js +34 -6
- package/resources/workspace-admin/members.js.map +1 -1
- package/resources/workspace-admin/members.mjs +34 -6
- package/resources/workspace-admin/members.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +8 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -1
- package/resources/workspace-admin/profiles.d.ts +8 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -1
- package/resources/workspace-admin/profiles.js +8 -0
- package/resources/workspace-admin/profiles.js.map +1 -1
- package/resources/workspace-admin/profiles.mjs +8 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.mts +65 -9
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +65 -9
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +46 -6
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +46 -6
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +27 -15
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +27 -15
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +11 -9
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +11 -9
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +102 -5
- package/src/internal/request-options.ts +1 -1
- package/src/resources/agents/agents.ts +147 -37
- package/src/resources/agents/feedback.ts +14 -3
- package/src/resources/agents/index.ts +6 -0
- package/src/resources/agents/schedules.ts +143 -71
- package/src/resources/agents/variations.ts +319 -125
- package/src/resources/agents/webhook-deliveries.ts +14 -3
- package/src/resources/ai-provider-keys.ts +155 -127
- package/src/resources/api-keys.ts +48 -29
- package/src/resources/index.ts +44 -1
- package/src/resources/memory-layers/entries.ts +56 -40
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -30
- package/src/resources/models.ts +46 -31
- package/src/resources/objectives/feedback.ts +29 -5
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +373 -125
- package/src/resources/objectives/tasks.ts +33 -12
- package/src/resources/objectives/tool-calls.ts +123 -46
- package/src/resources/objectives/tools.ts +14 -3
- package/src/resources/search.ts +14 -4
- package/src/resources/tool-sets/index.ts +23 -3
- package/src/resources/tool-sets/secrets.ts +32 -35
- package/src/resources/tool-sets/tool-sets.ts +239 -79
- package/src/resources/tool-sets/tools.ts +79 -61
- package/src/resources/uploads.ts +22 -8
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/members.ts +53 -12
- package/src/resources/workspace-admin/profiles.ts +8 -0
- package/src/resources/workspace-admin/workspace-admin.ts +80 -11
- package/src/resources/workspace-secrets.ts +40 -25
- 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/src/resources/index.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
export * from './shared';
|
|
4
4
|
export {
|
|
5
5
|
AIProviderKeys,
|
|
6
|
+
type AIProviderConfigOpenAI,
|
|
7
|
+
type AIProviderConfigOpenAICompatible,
|
|
8
|
+
type AIProviderConfigOpenrouter,
|
|
9
|
+
type AIProviderCredentialAPIKey,
|
|
10
|
+
type AIProviderCredentialHeaders,
|
|
6
11
|
type AIProviderKey,
|
|
7
12
|
type AIProviderKeySpec,
|
|
8
13
|
type AIProviderKeyCreateParams,
|
|
@@ -85,6 +90,9 @@ export {
|
|
|
85
90
|
type AssistantMessage,
|
|
86
91
|
type AssistantToolCall,
|
|
87
92
|
type CallableTool,
|
|
93
|
+
type CallableToolAgent,
|
|
94
|
+
type CallableToolCadenyaProvidedTool,
|
|
95
|
+
type CallableToolTool,
|
|
88
96
|
type ContextLengths,
|
|
89
97
|
type ContextWindowCompacted,
|
|
90
98
|
type MemoryRead,
|
|
@@ -97,6 +105,23 @@ export {
|
|
|
97
105
|
type ObjectiveError,
|
|
98
106
|
type ObjectiveEvent,
|
|
99
107
|
type ObjectiveEventData,
|
|
108
|
+
type ObjectiveEventDataAssistantMessage,
|
|
109
|
+
type ObjectiveEventDataCancelled,
|
|
110
|
+
type ObjectiveEventDataContextWindowCompacted,
|
|
111
|
+
type ObjectiveEventDataError,
|
|
112
|
+
type ObjectiveEventDataFinalized,
|
|
113
|
+
type ObjectiveEventDataMemoryRead,
|
|
114
|
+
type ObjectiveEventDataNotice,
|
|
115
|
+
type ObjectiveEventDataSubAgentSpawned,
|
|
116
|
+
type ObjectiveEventDataSubAgentUpdated,
|
|
117
|
+
type ObjectiveEventDataTimedOut,
|
|
118
|
+
type ObjectiveEventDataToolApprovalRequested,
|
|
119
|
+
type ObjectiveEventDataToolApproved,
|
|
120
|
+
type ObjectiveEventDataToolCalled,
|
|
121
|
+
type ObjectiveEventDataToolDenied,
|
|
122
|
+
type ObjectiveEventDataToolError,
|
|
123
|
+
type ObjectiveEventDataToolResult,
|
|
124
|
+
type ObjectiveEventDataUserMessage,
|
|
100
125
|
type ObjectiveEventInfo,
|
|
101
126
|
type ObjectiveEventWebhookData,
|
|
102
127
|
type ObjectiveInfo,
|
|
@@ -135,8 +160,15 @@ export {
|
|
|
135
160
|
export {
|
|
136
161
|
ToolSets,
|
|
137
162
|
type ApprovalRequirementFilter,
|
|
163
|
+
type ApprovalRequirementFilterAlways,
|
|
164
|
+
type ApprovalRequirementFilterOnly,
|
|
138
165
|
type AttributeFilter,
|
|
139
166
|
type StringMatcher,
|
|
167
|
+
type StringMatcherContains,
|
|
168
|
+
type StringMatcherEndsWith,
|
|
169
|
+
type StringMatcherExact,
|
|
170
|
+
type StringMatcherRegex,
|
|
171
|
+
type StringMatcherStartsWith,
|
|
140
172
|
type SyncCompleted,
|
|
141
173
|
type SyncFailed,
|
|
142
174
|
type SyncStarted,
|
|
@@ -144,11 +176,20 @@ export {
|
|
|
144
176
|
type ToolSet,
|
|
145
177
|
type ToolSetAdapter,
|
|
146
178
|
type ToolSetAdapterBare,
|
|
179
|
+
type ToolSetAdapterBareVariant,
|
|
147
180
|
type ToolSetAdapterHTTP,
|
|
148
|
-
type
|
|
181
|
+
type ToolSetAdapterHTTPVariant,
|
|
182
|
+
type ToolSetAdapterMCP,
|
|
183
|
+
type ToolSetAdapterMCPVariant,
|
|
149
184
|
type ToolSetAdapterOpenAPI,
|
|
185
|
+
type ToolSetAdapterOpenAPIUploadID,
|
|
186
|
+
type ToolSetAdapterOpenAPIURL,
|
|
187
|
+
type ToolSetAdapterOpenAPIVariant,
|
|
150
188
|
type ToolSetEvent,
|
|
151
189
|
type ToolSetEventData,
|
|
190
|
+
type ToolSetEventDataSyncCompleted,
|
|
191
|
+
type ToolSetEventDataSyncFailed,
|
|
192
|
+
type ToolSetEventDataSyncStarted,
|
|
152
193
|
type ToolSetInfo,
|
|
153
194
|
type ToolSetSpec,
|
|
154
195
|
type ToolSetGetOpenAPISpecResponse,
|
|
@@ -177,8 +218,10 @@ export {
|
|
|
177
218
|
WorkspaceAdmin,
|
|
178
219
|
type WorkspaceMember,
|
|
179
220
|
type WorkspaceAdminCreateParams,
|
|
221
|
+
type WorkspaceAdminRetrieveParams,
|
|
180
222
|
type WorkspaceAdminUpdateParams,
|
|
181
223
|
type WorkspaceAdminListParams,
|
|
224
|
+
type WorkspaceAdminArchiveParams,
|
|
182
225
|
type WorkspaceMembersCursorPagination,
|
|
183
226
|
} from './workspace-admin/workspace-admin';
|
|
184
227
|
export {
|
|
@@ -25,7 +25,7 @@ export class Entries extends APIResource {
|
|
|
25
25
|
params: EntryCreateParams,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): APIPromise<MemoryEntryDetail> {
|
|
28
|
-
const { workspaceId, ...body } = params;
|
|
28
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
29
29
|
return this._client.post(path`/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`, {
|
|
30
30
|
body,
|
|
31
31
|
...options,
|
|
@@ -36,10 +36,15 @@ export class Entries extends APIResource {
|
|
|
36
36
|
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
37
37
|
* including the content body.
|
|
38
38
|
*/
|
|
39
|
-
retrieve(
|
|
40
|
-
|
|
39
|
+
retrieve(
|
|
40
|
+
memoryLayerID: string,
|
|
41
|
+
id: string,
|
|
42
|
+
params: EntryRetrieveParams | null | undefined = {},
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): APIPromise<MemoryEntryDetail> {
|
|
45
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
41
46
|
return this._client.get(
|
|
42
|
-
path`/v1/workspaces/${workspaceId}/memory_layers/${
|
|
47
|
+
path`/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`,
|
|
43
48
|
options,
|
|
44
49
|
);
|
|
45
50
|
}
|
|
@@ -48,10 +53,15 @@ export class Entries extends APIResource {
|
|
|
48
53
|
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
49
54
|
* resolved content body.
|
|
50
55
|
*/
|
|
51
|
-
update(
|
|
52
|
-
|
|
56
|
+
update(
|
|
57
|
+
memoryLayerID: string,
|
|
58
|
+
id: string,
|
|
59
|
+
params: EntryUpdateParams,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): APIPromise<MemoryEntryDetail> {
|
|
62
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
53
63
|
return this._client.patch(
|
|
54
|
-
path`/v1/workspaces/${workspaceId}/memory_layers/${
|
|
64
|
+
path`/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`,
|
|
55
65
|
{ body, ...options },
|
|
56
66
|
);
|
|
57
67
|
}
|
|
@@ -61,10 +71,10 @@ export class Entries extends APIResource {
|
|
|
61
71
|
*/
|
|
62
72
|
list(
|
|
63
73
|
memoryLayerID: string,
|
|
64
|
-
params: EntryListParams,
|
|
74
|
+
params: EntryListParams | null | undefined = {},
|
|
65
75
|
options?: RequestOptions,
|
|
66
76
|
): PagePromise<MemoryEntriesCursorPagination, MemoryEntry> {
|
|
67
|
-
const { workspaceId, ...query } = params;
|
|
77
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
68
78
|
return this._client.getAPIList(
|
|
69
79
|
path`/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`,
|
|
70
80
|
CursorPagination<MemoryEntry>,
|
|
@@ -75,10 +85,15 @@ export class Entries extends APIResource {
|
|
|
75
85
|
/**
|
|
76
86
|
* Deletes a memory entry from a memory layer
|
|
77
87
|
*/
|
|
78
|
-
delete(
|
|
79
|
-
|
|
88
|
+
delete(
|
|
89
|
+
memoryLayerID: string,
|
|
90
|
+
id: string,
|
|
91
|
+
params: EntryDeleteParams | null | undefined = {},
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): APIPromise<void> {
|
|
94
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
80
95
|
return this._client.delete(
|
|
81
|
-
path`/v1/workspaces/${workspaceId}/memory_layers/${
|
|
96
|
+
path`/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`,
|
|
82
97
|
{ ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
|
|
83
98
|
);
|
|
84
99
|
}
|
|
@@ -118,24 +133,39 @@ export interface MemoryEntry {
|
|
|
118
133
|
* either inline content or a reference to a completed Upload; exactly one of the
|
|
119
134
|
* two must be set.
|
|
120
135
|
*/
|
|
121
|
-
export
|
|
122
|
-
/**
|
|
123
|
-
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
124
|
-
*/
|
|
125
|
-
key: string;
|
|
136
|
+
export type MemoryEntryCreateSpec = MemoryEntryCreateSpecContent | MemoryEntryCreateSpecUploadID;
|
|
126
137
|
|
|
138
|
+
export interface MemoryEntryCreateSpecContent {
|
|
127
139
|
/**
|
|
128
140
|
* Inline content, written directly into the entry.
|
|
129
141
|
*/
|
|
130
|
-
content
|
|
142
|
+
content: string;
|
|
143
|
+
|
|
144
|
+
type: 'content';
|
|
131
145
|
|
|
132
146
|
description?: string;
|
|
133
147
|
|
|
148
|
+
/**
|
|
149
|
+
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
150
|
+
*/
|
|
151
|
+
key?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface MemoryEntryCreateSpecUploadID {
|
|
155
|
+
type: 'uploadId';
|
|
156
|
+
|
|
134
157
|
/**
|
|
135
158
|
* ID of a COMPLETE Upload. The server reads the object from storage, copies its
|
|
136
159
|
* bytes into the entry, and marks the upload consumed.
|
|
137
160
|
*/
|
|
138
|
-
uploadId
|
|
161
|
+
uploadId: string;
|
|
162
|
+
|
|
163
|
+
description?: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
167
|
+
*/
|
|
168
|
+
key?: string;
|
|
139
169
|
}
|
|
140
170
|
|
|
141
171
|
/**
|
|
@@ -236,7 +266,7 @@ export interface EntryCreateParams {
|
|
|
236
266
|
/**
|
|
237
267
|
* Path param
|
|
238
268
|
*/
|
|
239
|
-
workspaceId
|
|
269
|
+
workspaceId?: string;
|
|
240
270
|
|
|
241
271
|
/**
|
|
242
272
|
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
@@ -255,25 +285,14 @@ export interface EntryCreateParams {
|
|
|
255
285
|
}
|
|
256
286
|
|
|
257
287
|
export interface EntryRetrieveParams {
|
|
258
|
-
workspaceId
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Memory layer ID. Accepts canonical memlyr\_… form or external_id:<value> form.
|
|
262
|
-
*/
|
|
263
|
-
memoryLayerId: string;
|
|
288
|
+
workspaceId?: string;
|
|
264
289
|
}
|
|
265
290
|
|
|
266
291
|
export interface EntryUpdateParams {
|
|
267
292
|
/**
|
|
268
293
|
* Path param
|
|
269
294
|
*/
|
|
270
|
-
workspaceId
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Path param: Memory layer ID. Accepts canonical memlyr\_… form or
|
|
274
|
-
* external_id:<value> form.
|
|
275
|
-
*/
|
|
276
|
-
memoryLayerId: string;
|
|
295
|
+
workspaceId?: string;
|
|
277
296
|
|
|
278
297
|
/**
|
|
279
298
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
@@ -301,7 +320,7 @@ export interface EntryListParams extends CursorPaginationParams {
|
|
|
301
320
|
/**
|
|
302
321
|
* Path param
|
|
303
322
|
*/
|
|
304
|
-
workspaceId
|
|
323
|
+
workspaceId?: string;
|
|
305
324
|
|
|
306
325
|
/**
|
|
307
326
|
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
@@ -333,18 +352,15 @@ export interface EntryListParams extends CursorPaginationParams {
|
|
|
333
352
|
}
|
|
334
353
|
|
|
335
354
|
export interface EntryDeleteParams {
|
|
336
|
-
workspaceId
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Memory layer ID. Accepts canonical memlyr\_… form or external_id:<value> form.
|
|
340
|
-
*/
|
|
341
|
-
memoryLayerId: string;
|
|
355
|
+
workspaceId?: string;
|
|
342
356
|
}
|
|
343
357
|
|
|
344
358
|
export declare namespace Entries {
|
|
345
359
|
export {
|
|
346
360
|
type MemoryEntry as MemoryEntry,
|
|
347
361
|
type MemoryEntryCreateSpec as MemoryEntryCreateSpec,
|
|
362
|
+
type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent,
|
|
363
|
+
type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID,
|
|
348
364
|
type MemoryEntryDetail as MemoryEntryDetail,
|
|
349
365
|
type MemoryEntryInfo as MemoryEntryInfo,
|
|
350
366
|
type MemoryEntrySpec as MemoryEntrySpec,
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
MemoryEntriesCursorPagination,
|
|
15
15
|
MemoryEntry,
|
|
16
16
|
MemoryEntryCreateSpec,
|
|
17
|
+
MemoryEntryCreateSpecContent,
|
|
18
|
+
MemoryEntryCreateSpecUploadID,
|
|
17
19
|
MemoryEntryDetail,
|
|
18
20
|
MemoryEntryInfo,
|
|
19
21
|
MemoryEntrySpec,
|
|
@@ -37,19 +39,20 @@ export class MemoryLayers extends APIResource {
|
|
|
37
39
|
/**
|
|
38
40
|
* Creates a new memory layer in the workspace
|
|
39
41
|
*/
|
|
40
|
-
create(
|
|
41
|
-
workspaceID
|
|
42
|
-
body
|
|
43
|
-
options?: RequestOptions,
|
|
44
|
-
): APIPromise<MemoryLayer> {
|
|
45
|
-
return this._client.post(path`/v1/workspaces/${workspaceID}/memory_layers`, { body, ...options });
|
|
42
|
+
create(params: MemoryLayerCreateParams, options?: RequestOptions): APIPromise<MemoryLayer> {
|
|
43
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
44
|
+
return this._client.post(path`/v1/workspaces/${workspaceId}/memory_layers`, { body, ...options });
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
48
|
* Retrieves a memory layer by ID from the workspace
|
|
50
49
|
*/
|
|
51
|
-
retrieve(
|
|
52
|
-
|
|
50
|
+
retrieve(
|
|
51
|
+
id: string,
|
|
52
|
+
params: MemoryLayerRetrieveParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<MemoryLayer> {
|
|
55
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
53
56
|
return this._client.get(path`/v1/workspaces/${workspaceId}/memory_layers/${id}`, options);
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -57,7 +60,7 @@ export class MemoryLayers extends APIResource {
|
|
|
57
60
|
* Updates a memory layer in the workspace
|
|
58
61
|
*/
|
|
59
62
|
update(id: string, params: MemoryLayerUpdateParams, options?: RequestOptions): APIPromise<MemoryLayer> {
|
|
60
|
-
const { workspaceId, ...body } = params;
|
|
63
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
61
64
|
return this._client.patch(path`/v1/workspaces/${workspaceId}/memory_layers/${id}`, { body, ...options });
|
|
62
65
|
}
|
|
63
66
|
|
|
@@ -65,12 +68,12 @@ export class MemoryLayers extends APIResource {
|
|
|
65
68
|
* Lists all memory layers in the workspace
|
|
66
69
|
*/
|
|
67
70
|
list(
|
|
68
|
-
|
|
69
|
-
query: MemoryLayerListParams | null | undefined = {},
|
|
71
|
+
params: MemoryLayerListParams | null | undefined = {},
|
|
70
72
|
options?: RequestOptions,
|
|
71
73
|
): PagePromise<MemoryLayersCursorPagination, MemoryLayer> {
|
|
74
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
72
75
|
return this._client.getAPIList(
|
|
73
|
-
path`/v1/workspaces/${
|
|
76
|
+
path`/v1/workspaces/${workspaceId}/memory_layers`,
|
|
74
77
|
CursorPagination<MemoryLayer>,
|
|
75
78
|
{ query, ...options },
|
|
76
79
|
);
|
|
@@ -79,8 +82,12 @@ export class MemoryLayers extends APIResource {
|
|
|
79
82
|
/**
|
|
80
83
|
* Deletes a memory layer from the workspace
|
|
81
84
|
*/
|
|
82
|
-
delete(
|
|
83
|
-
|
|
85
|
+
delete(
|
|
86
|
+
id: string,
|
|
87
|
+
params: MemoryLayerDeleteParams | null | undefined = {},
|
|
88
|
+
options?: RequestOptions,
|
|
89
|
+
): APIPromise<void> {
|
|
90
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
84
91
|
return this._client.delete(path`/v1/workspaces/${workspaceId}/memory_layers/${id}`, {
|
|
85
92
|
...options,
|
|
86
93
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -172,24 +179,33 @@ export interface MemoryLayerSpec {
|
|
|
172
179
|
|
|
173
180
|
export interface MemoryLayerCreateParams {
|
|
174
181
|
/**
|
|
175
|
-
*
|
|
176
|
-
|
|
177
|
-
|
|
182
|
+
* Path param
|
|
183
|
+
*/
|
|
184
|
+
workspaceId?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
188
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
189
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
190
|
+
* server.
|
|
178
191
|
*/
|
|
179
192
|
metadata: Shared.CreateResourceMetadata;
|
|
180
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Body param
|
|
196
|
+
*/
|
|
181
197
|
spec: MemoryLayerSpec;
|
|
182
198
|
}
|
|
183
199
|
|
|
184
200
|
export interface MemoryLayerRetrieveParams {
|
|
185
|
-
workspaceId
|
|
201
|
+
workspaceId?: string;
|
|
186
202
|
}
|
|
187
203
|
|
|
188
204
|
export interface MemoryLayerUpdateParams {
|
|
189
205
|
/**
|
|
190
206
|
* Path param
|
|
191
207
|
*/
|
|
192
|
-
workspaceId
|
|
208
|
+
workspaceId?: string;
|
|
193
209
|
|
|
194
210
|
/**
|
|
195
211
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
@@ -212,52 +228,57 @@ export interface MemoryLayerUpdateParams {
|
|
|
212
228
|
|
|
213
229
|
export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
214
230
|
/**
|
|
215
|
-
*
|
|
231
|
+
* Path param
|
|
232
|
+
*/
|
|
233
|
+
workspaceId?: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Query param: Filter to episodic layers belonging to this agent.
|
|
216
237
|
*/
|
|
217
238
|
agentId?: string;
|
|
218
239
|
|
|
219
240
|
/**
|
|
220
|
-
* Filter to episodic layers whose episodic key starts with this
|
|
221
|
-
* "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
222
|
-
* keys, similar to a redis key scan.
|
|
241
|
+
* Query param: Filter to episodic layers whose episodic key starts with this
|
|
242
|
+
* prefix (e.g. "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
243
|
+
* namespaced keys, similar to a redis key scan.
|
|
223
244
|
*/
|
|
224
245
|
episodicKeyPrefix?: string;
|
|
225
246
|
|
|
226
247
|
/**
|
|
227
|
-
* When set to true you may use more of your alloted API rate-limit
|
|
248
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
228
249
|
*/
|
|
229
250
|
includeInfo?: boolean;
|
|
230
251
|
|
|
231
252
|
/**
|
|
232
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
253
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
233
254
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
234
255
|
* semantics).
|
|
235
256
|
*/
|
|
236
257
|
labels?: string;
|
|
237
258
|
|
|
238
259
|
/**
|
|
239
|
-
* Filter expression (query param: prefix)
|
|
260
|
+
* Query param: Filter expression (query param: prefix)
|
|
240
261
|
*/
|
|
241
262
|
prefix?: string;
|
|
242
263
|
|
|
243
264
|
/**
|
|
244
|
-
* Free-form search query
|
|
265
|
+
* Query param: Free-form search query
|
|
245
266
|
*/
|
|
246
267
|
query?: string;
|
|
247
268
|
|
|
248
269
|
/**
|
|
249
|
-
* Sort order for results (asc or desc by creation time)
|
|
270
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
250
271
|
*/
|
|
251
272
|
sortOrder?: string;
|
|
252
273
|
|
|
253
274
|
/**
|
|
254
|
-
* Filter by layer type
|
|
275
|
+
* Query param: Filter by layer type
|
|
255
276
|
*/
|
|
256
277
|
type?: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
257
278
|
}
|
|
258
279
|
|
|
259
280
|
export interface MemoryLayerDeleteParams {
|
|
260
|
-
workspaceId
|
|
281
|
+
workspaceId?: string;
|
|
261
282
|
}
|
|
262
283
|
|
|
263
284
|
MemoryLayers.Entries = Entries;
|
|
@@ -279,6 +300,8 @@ export declare namespace MemoryLayers {
|
|
|
279
300
|
Entries as Entries,
|
|
280
301
|
type MemoryEntry as MemoryEntry,
|
|
281
302
|
type MemoryEntryCreateSpec as MemoryEntryCreateSpec,
|
|
303
|
+
type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent,
|
|
304
|
+
type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID,
|
|
282
305
|
type MemoryEntryDetail as MemoryEntryDetail,
|
|
283
306
|
type MemoryEntryInfo as MemoryEntryInfo,
|
|
284
307
|
type MemoryEntrySpec as MemoryEntrySpec,
|
package/src/resources/models.ts
CHANGED
|
@@ -17,8 +17,12 @@ export class Models extends APIResource {
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves a model by ID from the workspace
|
|
19
19
|
*/
|
|
20
|
-
retrieve(
|
|
21
|
-
|
|
20
|
+
retrieve(
|
|
21
|
+
id: string,
|
|
22
|
+
params: ModelRetrieveParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<Model> {
|
|
25
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
22
26
|
return this._client.get(path`/v1/workspaces/${workspaceId}/models/${id}`, options);
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -26,11 +30,11 @@ export class Models extends APIResource {
|
|
|
26
30
|
* Lists all models in the workspace
|
|
27
31
|
*/
|
|
28
32
|
list(
|
|
29
|
-
|
|
30
|
-
query: ModelListParams | null | undefined = {},
|
|
33
|
+
params: ModelListParams | null | undefined = {},
|
|
31
34
|
options?: RequestOptions,
|
|
32
35
|
): PagePromise<ModelsCursorPagination, Model> {
|
|
33
|
-
|
|
36
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
37
|
+
return this._client.getAPIList(path`/v1/workspaces/${workspaceId}/models`, CursorPagination<Model>, {
|
|
34
38
|
query,
|
|
35
39
|
...options,
|
|
36
40
|
});
|
|
@@ -41,7 +45,7 @@ export class Models extends APIResource {
|
|
|
41
45
|
* provisioned on the model; use :swapModelOnVariations to move them first.
|
|
42
46
|
*/
|
|
43
47
|
disable(id: string, params: ModelDisableParams, options?: RequestOptions): APIPromise<Model> {
|
|
44
|
-
const { workspaceId, ...body } = params;
|
|
48
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
45
49
|
return this._client.post(path`/v1/workspaces/${workspaceId}/models/${id}:disable`, { body, ...options });
|
|
46
50
|
}
|
|
47
51
|
|
|
@@ -50,7 +54,7 @@ export class Models extends APIResource {
|
|
|
50
54
|
* in the workspace
|
|
51
55
|
*/
|
|
52
56
|
enable(id: string, params: ModelEnableParams, options?: RequestOptions): APIPromise<Model> {
|
|
53
|
-
const { workspaceId, ...body } = params;
|
|
57
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
54
58
|
return this._client.post(path`/v1/workspaces/${workspaceId}/models/${id}:enable`, { body, ...options });
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -58,8 +62,9 @@ export class Models extends APIResource {
|
|
|
58
62
|
* Reassigns agent variations from one model to another in bulk. Runs
|
|
59
63
|
* asynchronously and returns immediately.
|
|
60
64
|
*/
|
|
61
|
-
swap(
|
|
62
|
-
|
|
65
|
+
swap(params: ModelSwapParams | null | undefined = {}, options?: RequestOptions): APIPromise<unknown> {
|
|
66
|
+
const { workspaceId = this._client.workspaceID, ...body } = params ?? {};
|
|
67
|
+
return this._client.post(path`/v1/workspaces/${workspaceId}/models:swapModelOnVariations`, {
|
|
63
68
|
body,
|
|
64
69
|
...options,
|
|
65
70
|
});
|
|
@@ -121,7 +126,12 @@ export interface ModelSpec {
|
|
|
121
126
|
/**
|
|
122
127
|
* The model family (e.g., "claude-sonnet-4.6", "gpt-5.4", "gemini-2.5-flash")
|
|
123
128
|
*/
|
|
124
|
-
family
|
|
129
|
+
family: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The model provider (e.g., "anthropic", "openai", "google")
|
|
133
|
+
*/
|
|
134
|
+
provider: string;
|
|
125
135
|
|
|
126
136
|
/**
|
|
127
137
|
* Cost per million input tokens in cents (e.g., 300 = $3.00)
|
|
@@ -142,11 +152,6 @@ export interface ModelSpec {
|
|
|
142
152
|
* Cost per million output tokens in cents (e.g., 1500 = $15.00)
|
|
143
153
|
*/
|
|
144
154
|
outputPricePerMillionTokens?: string;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The model provider (e.g., "anthropic", "openai", "google")
|
|
148
|
-
*/
|
|
149
|
-
provider?: string;
|
|
150
155
|
}
|
|
151
156
|
|
|
152
157
|
/**
|
|
@@ -159,55 +164,60 @@ export interface ModelRetrieveParams {
|
|
|
159
164
|
/**
|
|
160
165
|
* Workspace ID.
|
|
161
166
|
*/
|
|
162
|
-
workspaceId
|
|
167
|
+
workspaceId?: string;
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
export interface ModelListParams extends CursorPaginationParams {
|
|
166
171
|
/**
|
|
167
|
-
*
|
|
168
|
-
|
|
172
|
+
* Path param: Workspace ID.
|
|
173
|
+
*/
|
|
174
|
+
workspaceId?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Query param: Filter to models provisioned on a specific AI provider key. Accepts
|
|
178
|
+
* the key's id or an "external_id:"-prefixed slug.
|
|
169
179
|
*/
|
|
170
180
|
aiProviderKeyId?: string;
|
|
171
181
|
|
|
172
182
|
/**
|
|
173
|
-
* When true, populate each item's info (e.g. the AI provider), at the
|
|
174
|
-
* extra lookups.
|
|
183
|
+
* Query param: When true, populate each item's info (e.g. the AI provider), at the
|
|
184
|
+
* cost of extra lookups.
|
|
175
185
|
*/
|
|
176
186
|
includeInfo?: boolean;
|
|
177
187
|
|
|
178
188
|
/**
|
|
179
|
-
* Filter models to only ones assigned to an active agent
|
|
180
|
-
* agents count as assigned; archived agents do not.
|
|
181
|
-
* recent traffic — see ModelInfo.last_used_at for that.
|
|
189
|
+
* Query param: Filter models to only ones assigned to an active agent
|
|
190
|
+
* variation/agent. Draft agents count as assigned; archived agents do not.
|
|
191
|
+
* Assignment does not imply recent traffic — see ModelInfo.last_used_at for that.
|
|
182
192
|
*/
|
|
183
193
|
isAssigned?: boolean;
|
|
184
194
|
|
|
185
195
|
/**
|
|
186
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
196
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
187
197
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
188
198
|
* semantics).
|
|
189
199
|
*/
|
|
190
200
|
labels?: string;
|
|
191
201
|
|
|
192
202
|
/**
|
|
193
|
-
* Filter by a prefix of the model's display name, external id, or id
|
|
203
|
+
* Query param: Filter by a prefix of the model's display name, external id, or id
|
|
194
204
|
* (case-insensitive). A model's external id is the form used in
|
|
195
205
|
* modelConfig.modelId, so a caller holding that can narrow the list by it.
|
|
196
206
|
*/
|
|
197
207
|
prefix?: string;
|
|
198
208
|
|
|
199
209
|
/**
|
|
200
|
-
* Free-form search query
|
|
210
|
+
* Query param: Free-form search query
|
|
201
211
|
*/
|
|
202
212
|
query?: string;
|
|
203
213
|
|
|
204
214
|
/**
|
|
205
|
-
* Sort order for results (asc or desc by creation time)
|
|
215
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
206
216
|
*/
|
|
207
217
|
sortOrder?: string;
|
|
208
218
|
|
|
209
219
|
/**
|
|
210
|
-
* Filter by model state
|
|
220
|
+
* Query param: Filter by model state
|
|
211
221
|
*/
|
|
212
222
|
state?: 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED';
|
|
213
223
|
}
|
|
@@ -216,19 +226,24 @@ export interface ModelDisableParams {
|
|
|
216
226
|
/**
|
|
217
227
|
* Workspace ID.
|
|
218
228
|
*/
|
|
219
|
-
workspaceId
|
|
229
|
+
workspaceId?: string;
|
|
220
230
|
}
|
|
221
231
|
|
|
222
232
|
export interface ModelEnableParams {
|
|
223
233
|
/**
|
|
224
234
|
* Workspace ID.
|
|
225
235
|
*/
|
|
226
|
-
workspaceId
|
|
236
|
+
workspaceId?: string;
|
|
227
237
|
}
|
|
228
238
|
|
|
229
239
|
export interface ModelSwapParams {
|
|
230
240
|
/**
|
|
231
|
-
*
|
|
241
|
+
* Path param: Workspace ID.
|
|
242
|
+
*/
|
|
243
|
+
workspaceId?: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Body param: The swaps to perform.
|
|
232
247
|
*/
|
|
233
248
|
modelSwaps?: Array<ModelSwapParams.ModelSwap>;
|
|
234
249
|
}
|