@avallon-labs/sdk 54.2.0-staging.1244 → 54.3.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/dist/index.d.ts +51 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13536,6 +13536,37 @@ type UpdateWorkerBodySchema = {
|
|
|
13536
13536
|
[key: string]: unknown;
|
|
13537
13537
|
};
|
|
13538
13538
|
|
|
13539
|
+
/**
|
|
13540
|
+
* Generated by orval 🍺
|
|
13541
|
+
* Do not edit manually.
|
|
13542
|
+
* Avallon API
|
|
13543
|
+
* OpenAPI spec version: 1.0.0
|
|
13544
|
+
*/
|
|
13545
|
+
/**
|
|
13546
|
+
* MCP server identifier.
|
|
13547
|
+
*/
|
|
13548
|
+
type WorkerMcpName = (typeof WorkerMcpName)[keyof typeof WorkerMcpName];
|
|
13549
|
+
declare const WorkerMcpName: {
|
|
13550
|
+
readonly ventiv: "ventiv";
|
|
13551
|
+
readonly klear: "klear";
|
|
13552
|
+
readonly "klear-browser": "klear-browser";
|
|
13553
|
+
readonly "demo-browser": "demo-browser";
|
|
13554
|
+
readonly "demo-claims": "demo-claims";
|
|
13555
|
+
readonly "filehandler-browser": "filehandler-browser";
|
|
13556
|
+
};
|
|
13557
|
+
|
|
13558
|
+
/**
|
|
13559
|
+
* Generated by orval 🍺
|
|
13560
|
+
* Do not edit manually.
|
|
13561
|
+
* Avallon API
|
|
13562
|
+
* OpenAPI spec version: 1.0.0
|
|
13563
|
+
*/
|
|
13564
|
+
|
|
13565
|
+
interface WorkerMcp {
|
|
13566
|
+
/** MCP server identifier. */
|
|
13567
|
+
name: WorkerMcpName;
|
|
13568
|
+
}
|
|
13569
|
+
|
|
13539
13570
|
/**
|
|
13540
13571
|
* Generated by orval 🍺
|
|
13541
13572
|
* Do not edit manually.
|
|
@@ -13546,6 +13577,13 @@ type UpdateWorkerBodySchema = {
|
|
|
13546
13577
|
type UpdateWorkerBody = {
|
|
13547
13578
|
/** @minLength 1 */
|
|
13548
13579
|
name?: string;
|
|
13580
|
+
/**
|
|
13581
|
+
* Replace the worker's prompt. Requires the `prompts:write` permission.
|
|
13582
|
+
* @minLength 1
|
|
13583
|
+
*/
|
|
13584
|
+
prompt?: string;
|
|
13585
|
+
/** Replace the MCP servers the worker connects to. Omit to leave unchanged; pass [] to disconnect all. */
|
|
13586
|
+
mcps?: WorkerMcp[];
|
|
13549
13587
|
/**
|
|
13550
13588
|
* LLM model identifier the worker runs on. Omit to leave unchanged.
|
|
13551
13589
|
* @minLength 1
|
|
@@ -13576,37 +13614,6 @@ interface UpdateWorkerEnvelope {
|
|
|
13576
13614
|
message: string;
|
|
13577
13615
|
}
|
|
13578
13616
|
|
|
13579
|
-
/**
|
|
13580
|
-
* Generated by orval 🍺
|
|
13581
|
-
* Do not edit manually.
|
|
13582
|
-
* Avallon API
|
|
13583
|
-
* OpenAPI spec version: 1.0.0
|
|
13584
|
-
*/
|
|
13585
|
-
/**
|
|
13586
|
-
* MCP server identifier.
|
|
13587
|
-
*/
|
|
13588
|
-
type WorkerMcpName = (typeof WorkerMcpName)[keyof typeof WorkerMcpName];
|
|
13589
|
-
declare const WorkerMcpName: {
|
|
13590
|
-
readonly ventiv: "ventiv";
|
|
13591
|
-
readonly klear: "klear";
|
|
13592
|
-
readonly "klear-browser": "klear-browser";
|
|
13593
|
-
readonly "demo-browser": "demo-browser";
|
|
13594
|
-
readonly "demo-claims": "demo-claims";
|
|
13595
|
-
readonly "filehandler-browser": "filehandler-browser";
|
|
13596
|
-
};
|
|
13597
|
-
|
|
13598
|
-
/**
|
|
13599
|
-
* Generated by orval 🍺
|
|
13600
|
-
* Do not edit manually.
|
|
13601
|
-
* Avallon API
|
|
13602
|
-
* OpenAPI spec version: 1.0.0
|
|
13603
|
-
*/
|
|
13604
|
-
|
|
13605
|
-
interface WorkerMcp {
|
|
13606
|
-
/** MCP server identifier. */
|
|
13607
|
-
name: WorkerMcpName;
|
|
13608
|
-
}
|
|
13609
|
-
|
|
13610
13617
|
/**
|
|
13611
13618
|
* Generated by orval 🍺
|
|
13612
13619
|
* Do not edit manually.
|
|
@@ -18780,7 +18787,7 @@ declare const useDeleteWorker: <TError = ErrorType<ErrorResponse>>(workerId: str
|
|
|
18780
18787
|
};
|
|
18781
18788
|
declare const getUpdateWorkerUrl: (workerId: string) => string;
|
|
18782
18789
|
/**
|
|
18783
|
-
*
|
|
18790
|
+
* Partially update a worker. Omitted fields are left unchanged, and one request creates at most one new config version. Updating `prompt` requires the `prompts:write` permission.
|
|
18784
18791
|
* @summary Update worker
|
|
18785
18792
|
*/
|
|
18786
18793
|
declare const updateWorker: (workerId: string, updateWorkerBody?: UpdateWorkerBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateWorkerEnvelope>;
|
|
@@ -18833,7 +18840,10 @@ declare const useGetWorkerPrompt: <TError = ErrorType<ErrorResponse>>(workerId:
|
|
|
18833
18840
|
declare const getUpdateWorkerPromptUrl: (workerId: string) => string;
|
|
18834
18841
|
/**
|
|
18835
18842
|
* Update the prompt for a worker. Internal use only.
|
|
18836
|
-
*
|
|
18843
|
+
*
|
|
18844
|
+
* **Deprecated:** Use `PATCH /v1/workers/{workerId}` instead.
|
|
18845
|
+
* @deprecated
|
|
18846
|
+
* @summary Update worker prompt (deprecated)
|
|
18837
18847
|
*/
|
|
18838
18848
|
declare const updateWorkerPrompt: (workerId: string, updateWorkerPromptBody?: UpdateWorkerPromptBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateWorkerPromptEnvelope>;
|
|
18839
18849
|
declare const getUpdateWorkerPromptMutationFetcher: (workerId: string, options?: SecondParameter<typeof customFetch>) => (_: Key, { arg }: {
|
|
@@ -18842,7 +18852,8 @@ declare const getUpdateWorkerPromptMutationFetcher: (workerId: string, options?:
|
|
|
18842
18852
|
declare const getUpdateWorkerPromptMutationKey: (workerId: string) => readonly [`/v1/workers/${string}/prompt`];
|
|
18843
18853
|
type UpdateWorkerPromptMutationResult = NonNullable<Awaited<ReturnType<typeof updateWorkerPrompt>>>;
|
|
18844
18854
|
/**
|
|
18845
|
-
* @
|
|
18855
|
+
* @deprecated
|
|
18856
|
+
* @summary Update worker prompt (deprecated)
|
|
18846
18857
|
*/
|
|
18847
18858
|
declare const useUpdateWorkerPrompt: <TError = ErrorType<ErrorResponse>>(workerId: string, options?: {
|
|
18848
18859
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateWorkerPrompt>>, TError, Key, UpdateWorkerPromptBody | undefined, Awaited<ReturnType<typeof updateWorkerPrompt>>> & {
|
|
@@ -18885,7 +18896,10 @@ declare const useListWorkerModels: <TError = ErrorType<ErrorResponse>>(options?:
|
|
|
18885
18896
|
declare const getUpdateWorkerMcpsUrl: (workerId: string) => string;
|
|
18886
18897
|
/**
|
|
18887
18898
|
* Replace the set of MCP servers a worker connects to. Pass an empty array to disconnect.
|
|
18888
|
-
*
|
|
18899
|
+
*
|
|
18900
|
+
* **Deprecated:** Use `PATCH /v1/workers/{workerId}` instead.
|
|
18901
|
+
* @deprecated
|
|
18902
|
+
* @summary Update worker MCP servers (deprecated)
|
|
18889
18903
|
*/
|
|
18890
18904
|
declare const updateWorkerMcps: (workerId: string, updateWorkerMcpsBody?: UpdateWorkerMcpsBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateWorkerMcpsEnvelope>;
|
|
18891
18905
|
declare const getUpdateWorkerMcpsMutationFetcher: (workerId: string, options?: SecondParameter<typeof customFetch>) => (_: Key, { arg }: {
|
|
@@ -18894,7 +18908,8 @@ declare const getUpdateWorkerMcpsMutationFetcher: (workerId: string, options?: S
|
|
|
18894
18908
|
declare const getUpdateWorkerMcpsMutationKey: (workerId: string) => readonly [`/v1/workers/${string}/mcps`];
|
|
18895
18909
|
type UpdateWorkerMcpsMutationResult = NonNullable<Awaited<ReturnType<typeof updateWorkerMcps>>>;
|
|
18896
18910
|
/**
|
|
18897
|
-
* @
|
|
18911
|
+
* @deprecated
|
|
18912
|
+
* @summary Update worker MCP servers (deprecated)
|
|
18898
18913
|
*/
|
|
18899
18914
|
declare const useUpdateWorkerMcps: <TError = ErrorType<ErrorResponse>>(workerId: string, options?: {
|
|
18900
18915
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateWorkerMcps>>, TError, Key, UpdateWorkerMcpsBody | undefined, Awaited<ReturnType<typeof updateWorkerMcps>>> & {
|