@deskcreate/agentcraft
Preparing search index...
index
ArtifactStore
Interface ArtifactStore
Durable persistence interface for structured artifacts.
interface
ArtifactStore
{
delete
(
type
:
string
,
id
:
string
)
:
Promise
<
boolean
>
;
get
(
type
:
string
,
id
:
string
)
:
Promise
<
unknown
>
;
history
(
type
:
string
,
id
:
string
)
:
Promise
<
ArtifactHistory
[]
>
;
link
(
source
:
ArtifactRef
,
target
:
ArtifactRef
)
:
Promise
<
void
>
;
listTypes
()
:
Promise
<
string
[]
>
;
put
(
type
:
string
,
artifact
:
unknown
)
:
Promise
<
string
>
;
query
(
type
:
string
,
filter
?:
ArtifactFilter
)
:
Promise
<
unknown
[]
>
;
update
(
id
:
string
,
patch
:
unknown
)
:
Promise
<
void
>
;
}
Index
Methods
delete
get
history
link
list
Types
put
query
update
Methods
delete
delete
(
type
:
string
,
id
:
string
)
:
Promise
<
boolean
>
Parameters
type
:
string
id
:
string
Returns
Promise
<
boolean
>
get
get
(
type
:
string
,
id
:
string
)
:
Promise
<
unknown
>
Parameters
type
:
string
id
:
string
Returns
Promise
<
unknown
>
history
history
(
type
:
string
,
id
:
string
)
:
Promise
<
ArtifactHistory
[]
>
Parameters
type
:
string
id
:
string
Returns
Promise
<
ArtifactHistory
[]
>
link
link
(
source
:
ArtifactRef
,
target
:
ArtifactRef
)
:
Promise
<
void
>
Parameters
source
:
ArtifactRef
target
:
ArtifactRef
Returns
Promise
<
void
>
list
Types
listTypes
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
put
put
(
type
:
string
,
artifact
:
unknown
)
:
Promise
<
string
>
Parameters
type
:
string
artifact
:
unknown
Returns
Promise
<
string
>
query
query
(
type
:
string
,
filter
?:
ArtifactFilter
)
:
Promise
<
unknown
[]
>
Parameters
type
:
string
Optional
filter
:
ArtifactFilter
Returns
Promise
<
unknown
[]
>
update
update
(
id
:
string
,
patch
:
unknown
)
:
Promise
<
void
>
Parameters
id
:
string
patch
:
unknown
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
delete
get
history
link
list
Types
put
query
update
@deskcreate/agentcraft
Loading...
Durable persistence interface for structured artifacts.