@avallon-labs/sdk 62.5.0 → 62.6.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 +7 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ interface AccessGrant {
|
|
|
134
134
|
/** Who holds the grant: a team member's `profile`, a `worker`, whose runs act with it, or the whole `tenant`. `tenant` is not supported yet. */
|
|
135
135
|
principal_type: PrincipalType;
|
|
136
136
|
principal_id: string;
|
|
137
|
-
/** `viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks
|
|
137
|
+
/** `viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks. */
|
|
138
138
|
level: AccessLevel;
|
|
139
139
|
created_at: string;
|
|
140
140
|
}
|
|
@@ -175,7 +175,7 @@ interface AccessGrantInput {
|
|
|
175
175
|
/** Who holds the grant: a team member's `profile`, a `worker`, whose runs act with it, or the whole `tenant`. `tenant` is not supported yet. */
|
|
176
176
|
principal_type: PrincipalType;
|
|
177
177
|
principal_id: string;
|
|
178
|
-
/** `viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks
|
|
178
|
+
/** `viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks. */
|
|
179
179
|
level: AccessLevel;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -15710,15 +15710,15 @@ type UpdateVoiceAgentBody = {
|
|
|
15710
15710
|
/** Evaluator that scores this agent's calls, created with `POST /v1/evaluators`. null detaches it. Omit to leave unchanged. */
|
|
15711
15711
|
evaluator_slug?: string | null;
|
|
15712
15712
|
/**
|
|
15713
|
-
* System prompt. For gpt-live-1 this is the reasoner prompt.
|
|
15713
|
+
* System prompt. For gpt-live-1 this is the reasoner prompt.
|
|
15714
15714
|
* @minLength 1
|
|
15715
15715
|
*/
|
|
15716
15716
|
prompt?: string;
|
|
15717
|
-
/** Prompt for the gpt-live-1 speaker: persona, tone, and when to delegate to the reasoner. Ignored by other engines. null removes it.
|
|
15717
|
+
/** Prompt for the gpt-live-1 speaker: persona, tone, and when to delegate to the reasoner. Ignored by other engines. null removes it. */
|
|
15718
15718
|
speaker_instructions?: string | null;
|
|
15719
15719
|
/** Replaces the whole engine. Omitted pipeline fallbacks are removed. */
|
|
15720
15720
|
engine?: UpdateVoiceAgentBodyEngine;
|
|
15721
|
-
/** Greeting spoken at the start of the call. null removes it.
|
|
15721
|
+
/** Greeting spoken at the start of the call. null removes it. */
|
|
15722
15722
|
greeting?: string | null;
|
|
15723
15723
|
};
|
|
15724
15724
|
|
|
@@ -16101,7 +16101,7 @@ type UpdateWorkerBody = {
|
|
|
16101
16101
|
/** @minLength 1 */
|
|
16102
16102
|
name?: string;
|
|
16103
16103
|
/**
|
|
16104
|
-
* Replace the worker's prompt.
|
|
16104
|
+
* Replace the worker's prompt.
|
|
16105
16105
|
* @minLength 1
|
|
16106
16106
|
*/
|
|
16107
16107
|
prompt?: string;
|
|
@@ -21050,8 +21050,6 @@ declare const getUpdateVoiceAgentUrl: (voiceAgentId: string) => string;
|
|
|
21050
21050
|
*
|
|
21051
21051
|
* Set `evaluator_slug` to score the agent's calls with that evaluator. Calls only use it once the new version is promoted, because a call is evaluated with the version it ran on.
|
|
21052
21052
|
*
|
|
21053
|
-
* Setting `prompt`, `speaker_instructions` or `greeting` requires the `prompts:write` permission.
|
|
21054
|
-
*
|
|
21055
21053
|
* All changes in one request create a single new voice agent config version. The live and test releases keep pointing at their current versions until the new version is promoted.
|
|
21056
21054
|
* @summary Update voice agent
|
|
21057
21055
|
*/
|
|
@@ -22063,7 +22061,7 @@ declare const useDeleteWorker: <TError = ErrorType<ErrorResponse>>(workerId: str
|
|
|
22063
22061
|
};
|
|
22064
22062
|
declare const getUpdateWorkerUrl: (workerId: string) => string;
|
|
22065
22063
|
/**
|
|
22066
|
-
* Partially update a worker. Omitted fields are left unchanged, and one request creates at most one new config version.
|
|
22064
|
+
* Partially update a worker. Omitted fields are left unchanged, and one request creates at most one new config version.
|
|
22067
22065
|
* @summary Update worker
|
|
22068
22066
|
*/
|
|
22069
22067
|
declare const updateWorker: (workerId: string, updateWorkerBody?: UpdateWorkerBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateWorkerEnvelope>;
|