Interface: IAIProfileRepository
Defined in: internal/ai-profile-store/types.ts:119
Persistence seam. Only the store calls it.
Methods
loadByTenant()
loadByTenant(
args):Promise<IAIProfile[]>
Defined in: internal/ai-profile-store/types.ts:133
loadByTenant -- every profile of a tenant
About
The whole set, for the store's cache.
Returns every profile stored under the tenant, in any order; empty for a tenant without one.
Who needs it
AIProfileStore.getProfiles, when the tenant's profiles are not in its cache yet.
Parameters
args
tenantId
string
Returns
Promise<IAIProfile[]>
remove()
remove(
args):Promise<void>
Defined in: internal/ai-profile-store/types.ts:164
remove -- deletes one profile
About
Permanent; nothing when it does not exist.
Removes the profile of the tenant with this id; a missing one is not an error.
Who needs it
AIProfileStore.removeProfile.
Parameters
args
profileId
string
tenantId
string
Returns
Promise<void>
save()
save(
args):Promise<void>
Defined in: internal/ai-profile-store/types.ts:147
save -- inserts or replaces one profile
About
Upsert by
tenantId+profile.id.
The profile is stored whole under the tenant; a profile with the same id is replaced.
Who needs it
AIProfileStore.upsertProfile.
Parameters
args
profile
tenantId
string
Returns
Promise<void>