doc/contributors/extensions/events.md
completionIdcompletionId
allowwhether the operation is allowed
intended_serviceintended service
parametersparameters
ai.prompt.completeThis event is emitted for ai prompt complete operations.
intended_serviceintended service
parametersparameters
resultresult
model_usedmodel used
service_usedservice used
ai.prompt.cost-calculatedThis event is emitted for ai prompt cost calculated operations.
ai.prompt.validateThis event is emitted when a validate is being validated. The event can be used to block certain validates from being validated.
completionIdcompletionId
allowwhether the operation is allowed
intended_serviceintended service
parametersparameters
app.new-iconThis event is emitted for app new icon operations.
data_urldata url
app.renameThis event is emitted for app rename operations.
data_urldata url
apps.invalidateThis event is emitted when a invalidate is being validated. The event can be used to block certain invalidates from being validated.
appsapps
captcha.checkThis event is emitted for captcha check operations.
requiredrequired
core.email.validateThis event is emitted when an email is being validated. The event can be used to block certain emails from being validated.
emailthe email being validated
allowwhether the email is allowed
core.fs.create.directoryThis event is emitted when a directory is created.
nodethe directory that was created
contextcurrent context
core.request.measuredThis event is emitted when a requests incoming and outgoing bytes have been measured.
extension.on('core.request.measured', data => {
const measurements = data.measurements;
// measurements = { sz_incoming: integer, sz_outgoing: integer }
const actor = data.actor; // instance of Actor
console.log('[36;1m === MEASUREMENT ===[0m
', {
actor: data.actor.uid,
measurements: data.measurements
});
});
credit.check-availableThis event is emitted for credit check available operations.
availableavailable
cost_uuidcost uuid
credit.funding-updateThis event is emitted when a funding-update is updated.
availableavailable
cost_uuidcost uuid
credit.record-costThis event is emitted for credit record cost operations.
availableavailable
cost_uuidcost uuid
driver.create-call-contextThis event is emitted when a create-call-context is created.
usagesusages
email.validateThis event is emitted when a validate is being validated. The event can be used to block certain validates from being validated.
allowwhether the operation is allowed
emailfs.create.directoryThis event is emitted when a directory is created.
fs.create.fileThis event is emitted when a file is created.
contextcurrent context
fs.create.shortcutThis event is emitted when a shortcut is created.
fs.create.symlinkThis event is emitted when a symlink is created.
fs.move.fileThis event is emitted for fs move file operations.
movedmoved
old_pathpath to the affected resource
fs.pending.fileThis event is emitted for fs pending file operations.
fs.storage.progress.copyThis event reports progress of a copy operation.
contextcurrent context
metaadditional metadata for the operation
item_pathpath to the affected resource
fs.storage.upload-progressThis event reports progress of a upload-progress operation.
fs.write.fileThis event is emitted when a file is updated.
contextcurrent context
ip.validateThis event is emitted when a validate is being validated. The event can be used to block certain validates from being validated.
resres
end_end
endend
outer.fs.write-hashThis event is emitted when a write-hash is updated.
uuiduuid
outer.gui.item.addedThis event is emitted for outer gui item added operations.
responseresponse
outer.gui.item.movedThis event is emitted for outer gui item moved operations.
responseresponse
outer.gui.item.pendingThis event is emitted for outer gui item pending operations.
responseresponse
outer.gui.item.updatedThis event is emitted when a updated is updated.
responseresponse
outer.gui.notif.ackThis event is emitted for outer gui notif ack operations.
responseresponse
outer.gui.notif.messageThis event is emitted for outer gui notif message operations.
responseresponse
notificationnotification
outer.gui.notif.persistedThis event is emitted for outer gui notif persisted operations.
responseresponse
outer.gui.notif.unreadsThis event is emitted for outer gui notif unreads operations.
responseresponse
outer.gui.submission.doneThis event is emitted for outer gui submission done operations.
responseresponse
outer.gui.usage.updateThis event is emitted when a update is updated.
outer.thread.notify-subscribersThis event is emitted for outer thread notify subscribers operations.
uiduid
actionaction
datadata
puter.signupThis event is emitted for puter signup operations.
ipip
user_agentuser agent
bodybody
request.measuredThis event is emitted for request measured operations.
reqreq
resres
request.will-be-handledThis event is emitted for request will be handled operations.
resres
end_end
endend
snsThis event is emitted for sns operations.
messagemessage
template-service.helloThis event is emitted for template-service hello operations.
usages.queryThis event is emitted for usages query operations.
usagesusages
user.email-changedThis event is emitted for user email changed operations.
new_emailnew email
user.email-confirmedThis event is emitted for user email confirmed operations.
emailuser.save_accountThis event is emitted for user save_account operations.
useruser associated with the operation
web.socket.connectedThis event is emitted for web socket connected operations.
useruser associated with the operation
web.socket.user-connectedThis event is emitted for web socket user connected operations.
useruser associated with the operation
wisp.get-policyThis event is emitted for wisp get policy operations.
policypolicy information for the operation