@avallon-labs/sdk 61.1.0 → 62.0.0-staging.1333
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 +19 -14
- package/dist/index.js +7 -2
- 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. */
|
|
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; changing its prompt or greeting still needs `prompts:write`. */
|
|
138
138
|
level: AccessLevel;
|
|
139
139
|
created_at: string;
|
|
140
140
|
}
|
|
@@ -161,6 +161,7 @@ declare const AccessEntityType: {
|
|
|
161
161
|
readonly worker: "worker";
|
|
162
162
|
readonly case_type: "case_type";
|
|
163
163
|
readonly form: "form";
|
|
164
|
+
readonly voice_agent: "voice_agent";
|
|
164
165
|
};
|
|
165
166
|
|
|
166
167
|
/**
|
|
@@ -174,7 +175,7 @@ interface AccessGrantInput {
|
|
|
174
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. */
|
|
175
176
|
principal_type: PrincipalType;
|
|
176
177
|
principal_id: string;
|
|
177
|
-
/** `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. */
|
|
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; changing its prompt or greeting still needs `prompts:write`. */
|
|
178
179
|
level: AccessLevel;
|
|
179
180
|
}
|
|
180
181
|
|
|
@@ -6278,6 +6279,9 @@ declare const EntityPermission: {
|
|
|
6278
6279
|
readonly "forms:read": "forms:read";
|
|
6279
6280
|
readonly "forms:request": "forms:request";
|
|
6280
6281
|
readonly "forms:write": "forms:write";
|
|
6282
|
+
readonly "voice-agents:read": "voice-agents:read";
|
|
6283
|
+
readonly "voice-agents:write": "voice-agents:write";
|
|
6284
|
+
readonly "voice-agents:promote": "voice-agents:promote";
|
|
6281
6285
|
};
|
|
6282
6286
|
|
|
6283
6287
|
/**
|
|
@@ -7805,7 +7809,7 @@ interface GetInformationRequestEnvelope {
|
|
|
7805
7809
|
*/
|
|
7806
7810
|
|
|
7807
7811
|
interface MyAccess {
|
|
7808
|
-
/** What the caller may do with the entity, through their role or a grant on it. `workers:write` on a worker
|
|
7812
|
+
/** What the caller may do with the entity, through their role or a grant on it. `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent also let the caller share it. */
|
|
7809
7813
|
permissions: EntityPermission[];
|
|
7810
7814
|
}
|
|
7811
7815
|
|
|
@@ -7946,6 +7950,7 @@ type GetOAuthUrlParams = {
|
|
|
7946
7950
|
*/
|
|
7947
7951
|
type ProfilePermissionsItem = (typeof ProfilePermissionsItem)[keyof typeof ProfilePermissionsItem];
|
|
7948
7952
|
declare const ProfilePermissionsItem: {
|
|
7953
|
+
readonly "voice-agents:read": "voice-agents:read";
|
|
7949
7954
|
readonly "voice-agents:write": "voice-agents:write";
|
|
7950
7955
|
readonly "voice-agents:promote": "voice-agents:promote";
|
|
7951
7956
|
readonly "tools:write": "tools:write";
|
|
@@ -15853,11 +15858,11 @@ type Awaited$y<O> = O extends AwaitedInput$y<infer T> ? T : never;
|
|
|
15853
15858
|
type SecondParameter$y<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15854
15859
|
declare const getGetAccessUrl: (entityType: AccessEntityType, entityId: string) => string;
|
|
15855
15860
|
/**
|
|
15856
|
-
* List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker
|
|
15861
|
+
* List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent.
|
|
15857
15862
|
* @summary Get access
|
|
15858
15863
|
*/
|
|
15859
15864
|
declare const getAccess: (entityType: AccessEntityType, entityId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAccessEnvelope>;
|
|
15860
|
-
declare const getGetAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`];
|
|
15865
|
+
declare const getGetAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`];
|
|
15861
15866
|
type GetAccessQueryResult = NonNullable<Awaited$y<ReturnType<typeof getAccess>>>;
|
|
15862
15867
|
/**
|
|
15863
15868
|
* @summary Get access
|
|
@@ -15878,7 +15883,7 @@ declare const useGetAccess: <TError = ErrorType<ErrorResponse>>(entityType: Acce
|
|
|
15878
15883
|
};
|
|
15879
15884
|
declare const getUpdateAccessUrl: (entityType: AccessEntityType, entityId: string) => string;
|
|
15880
15885
|
/**
|
|
15881
|
-
* Replace who an entity is shared with. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker
|
|
15886
|
+
* Replace who an entity is shared with. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent. An editor who leaves their own grant out loses access, unless their role gives it.
|
|
15882
15887
|
*
|
|
15883
15888
|
* **Deprecated:** Use `PATCH /v1/access/{entityType}/{entityId}` instead.
|
|
15884
15889
|
* @deprecated
|
|
@@ -15888,7 +15893,7 @@ declare const updateAccess: (entityType: AccessEntityType, entityId: string, upd
|
|
|
15888
15893
|
declare const getUpdateAccessMutationFetcher: (entityType: AccessEntityType, entityId: string, options?: SecondParameter$y<typeof customFetch>) => (_: Key, { arg }: {
|
|
15889
15894
|
arg: UpdateAccessBody | undefined;
|
|
15890
15895
|
}) => Promise<UpdateAccessEnvelope>;
|
|
15891
|
-
declare const getUpdateAccessMutationKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`];
|
|
15896
|
+
declare const getUpdateAccessMutationKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`];
|
|
15892
15897
|
type UpdateAccessMutationResult = NonNullable<Awaited$y<ReturnType<typeof updateAccess>>>;
|
|
15893
15898
|
/**
|
|
15894
15899
|
* @deprecated
|
|
@@ -15901,22 +15906,22 @@ declare const useUpdateAccess: <TError = ErrorType<ErrorResponse>>(entityType: A
|
|
|
15901
15906
|
request?: SecondParameter$y<typeof customFetch>;
|
|
15902
15907
|
}) => {
|
|
15903
15908
|
isMutating: boolean;
|
|
15904
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateAccessEnvelope, TError, string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`], UpdateAccessBody | undefined>;
|
|
15909
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateAccessEnvelope, TError, string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`], UpdateAccessBody | undefined>;
|
|
15905
15910
|
reset: () => void;
|
|
15906
15911
|
error: TError | undefined;
|
|
15907
15912
|
data: UpdateAccessEnvelope | undefined;
|
|
15908
|
-
swrKey: string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`];
|
|
15913
|
+
swrKey: string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`];
|
|
15909
15914
|
};
|
|
15910
15915
|
declare const getChangeAccessUrl: (entityType: AccessEntityType, entityId: string) => string;
|
|
15911
15916
|
/**
|
|
15912
|
-
* Grant, change or revoke access for specific team members and workers. Everyone not named keeps their access. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker
|
|
15917
|
+
* Grant, change or revoke access for specific team members and workers. Everyone not named keeps their access. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent. An editor who revokes their own grant loses access, and one who downgrades it can no longer change or share the entity, unless their role gives it.
|
|
15913
15918
|
* @summary Change access
|
|
15914
15919
|
*/
|
|
15915
15920
|
declare const changeAccess: (entityType: AccessEntityType, entityId: string, changeAccessBody?: ChangeAccessBody, options?: Parameters<typeof customFetch>[1]) => Promise<ChangeAccessEnvelope>;
|
|
15916
15921
|
declare const getChangeAccessMutationFetcher: (entityType: AccessEntityType, entityId: string, options?: SecondParameter$y<typeof customFetch>) => (_: Key, { arg }: {
|
|
15917
15922
|
arg: ChangeAccessBody | undefined;
|
|
15918
15923
|
}) => Promise<ChangeAccessEnvelope>;
|
|
15919
|
-
declare const getChangeAccessMutationKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`];
|
|
15924
|
+
declare const getChangeAccessMutationKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`];
|
|
15920
15925
|
type ChangeAccessMutationResult = NonNullable<Awaited$y<ReturnType<typeof changeAccess>>>;
|
|
15921
15926
|
/**
|
|
15922
15927
|
* @summary Change access
|
|
@@ -15928,11 +15933,11 @@ declare const useChangeAccess: <TError = ErrorType<ErrorResponse>>(entityType: A
|
|
|
15928
15933
|
request?: SecondParameter$y<typeof customFetch>;
|
|
15929
15934
|
}) => {
|
|
15930
15935
|
isMutating: boolean;
|
|
15931
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<ChangeAccessEnvelope, TError, string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`], ChangeAccessBody | undefined>;
|
|
15936
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<ChangeAccessEnvelope, TError, string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`], ChangeAccessBody | undefined>;
|
|
15932
15937
|
reset: () => void;
|
|
15933
15938
|
error: TError | undefined;
|
|
15934
15939
|
data: ChangeAccessEnvelope | undefined;
|
|
15935
|
-
swrKey: string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}`];
|
|
15940
|
+
swrKey: string | readonly [`/v1/access/worker/${string}` | `/v1/access/case_type/${string}` | `/v1/access/form/${string}` | `/v1/access/voice_agent/${string}`];
|
|
15936
15941
|
};
|
|
15937
15942
|
declare const getGetMyAccessUrl: (entityType: AccessEntityType, entityId: string) => string;
|
|
15938
15943
|
/**
|
|
@@ -15940,7 +15945,7 @@ declare const getGetMyAccessUrl: (entityType: AccessEntityType, entityId: string
|
|
|
15940
15945
|
* @summary Get my access
|
|
15941
15946
|
*/
|
|
15942
15947
|
declare const getMyAccess: (entityType: AccessEntityType, entityId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyAccessEnvelope>;
|
|
15943
|
-
declare const getGetMyAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}/me` | `/v1/access/case_type/${string}/me` | `/v1/access/form/${string}/me`];
|
|
15948
|
+
declare const getGetMyAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}/me` | `/v1/access/case_type/${string}/me` | `/v1/access/form/${string}/me` | `/v1/access/voice_agent/${string}/me`];
|
|
15944
15949
|
type GetMyAccessQueryResult = NonNullable<Awaited$y<ReturnType<typeof getMyAccess>>>;
|
|
15945
15950
|
/**
|
|
15946
15951
|
* @summary Get my access
|
package/dist/index.js
CHANGED
|
@@ -6821,7 +6821,8 @@ var useGetWorkerVersionChangeSummary = (workerId, version, options) => {
|
|
|
6821
6821
|
var AccessEntityType = {
|
|
6822
6822
|
worker: "worker",
|
|
6823
6823
|
case_type: "case_type",
|
|
6824
|
-
form: "form"
|
|
6824
|
+
form: "form",
|
|
6825
|
+
voice_agent: "voice_agent"
|
|
6825
6826
|
};
|
|
6826
6827
|
|
|
6827
6828
|
// generated/models/accessLevel.ts
|
|
@@ -7293,7 +7294,10 @@ var EntityPermission = {
|
|
|
7293
7294
|
"case-types:write": "case-types:write",
|
|
7294
7295
|
"forms:read": "forms:read",
|
|
7295
7296
|
"forms:request": "forms:request",
|
|
7296
|
-
"forms:write": "forms:write"
|
|
7297
|
+
"forms:write": "forms:write",
|
|
7298
|
+
"voice-agents:read": "voice-agents:read",
|
|
7299
|
+
"voice-agents:write": "voice-agents:write",
|
|
7300
|
+
"voice-agents:promote": "voice-agents:promote"
|
|
7297
7301
|
};
|
|
7298
7302
|
|
|
7299
7303
|
// generated/models/executeCodeBodyEnvironment.ts
|
|
@@ -8110,6 +8114,7 @@ var PrincipalType = {
|
|
|
8110
8114
|
|
|
8111
8115
|
// generated/models/profilePermissionsItem.ts
|
|
8112
8116
|
var ProfilePermissionsItem = {
|
|
8117
|
+
"voice-agents:read": "voice-agents:read",
|
|
8113
8118
|
"voice-agents:write": "voice-agents:write",
|
|
8114
8119
|
"voice-agents:promote": "voice-agents:promote",
|
|
8115
8120
|
"tools:write": "tools:write",
|