@casual-simulation/aux-records
Advanced tools
Changelog
V2.0.34
os.recordEvent()
where trying to save events in DynamoDB would fail.Changelog
V2.0.31
os.eraseData(recordKey, address)
function to allow deleting data records.
recordKey
is the key that should be used to access the record.address
is the address of the data inside the record that should be deleted.os.eraseFile(recordKey, urlOrRecordFileResult)
function to allow deleting file records.
recordKey
is the key that should be used to access the record.urlOrRecordFileResult
is the URL that the file is stored at. It can also be the result of a os.recordFile()
call.os.recordManualApprovalData(recordKey, address, data)
, os.getManualApprovalData(recordName, address)
, and os.eraseManualApprovalData(recordKey, address)
functions.
os.recordData()
, os.getData()
, and os.eraseData()
except that they read & write data records that require the user to confirm that they want to read/write the data.os.recordManualApprovalData()
cannot be retrieved using os.getData()
(i.e. you must use os.getManualApprovalData()
).os.recordData()
or os.recordFile()
would produce an error.Changelog
V2.0.28
AUTH_ORIGIN
and RECORDS_ORIGIN
environment variables are specified during build.links
global variable to the code editor autocomplete list.masks
global variable to the code editor autocomplete list.os.showUploadFiles()
to include the mimeType
of the files that were uploaded.
os.recordFile()
.os.beginAudioRecording(options?)
and os.endAudioRecording()
functions.
experiment.beginAudioRecording()
and experiment.endAudioRecording()
functions.@onBeginAudioRecording
- Called when recording starts.@onEndAudioRecording
- Called when recording ends.@onAudioChunk
- Called when a piece of audio is available if streaming is enabled via the options.options
is an object and supports the following properties:
stream
- Whether to stream audio samples using @onAudioChunk
.mimeType
- The MIME type that should be used to stream audio.sampleRate
- The number of audio samples that should be taken per second (Hz). Only supported on raw audio types (audio/x-raw
).Changelog
V2.0.27
Changelog
V2.0.23
Changelog
V2.0.22
os.publishRecord()
os.getRecords()
os.destroyRecord()
byAuthID()
withAuthToken()
byAddress()
byPrefix()
os.publishRecord()
) and introduces a new paradigm.os.getPublicRecordKey(recordName)
has been added as a way to retrieve a key that can be used to write data and files to a public record.os.recordData(recordKey, address, data)
can be used to store a piece of data at an address inside a record. This data can later be retrieved with os.getData(recordKeyOrName, address)
.os.getData(recordKeyOrName, address)
can be used to retrieve data that was stored in a record.os.recordFile(recordKey, data, options?)
can be used to store a file inside a record. Files can be any size and can be accessed via webhook()
or os.getFile(url)
.os.getFile(urlOrRecordFileResult)
can be used to easily retrieve a file.os.isRecordKey(value)
is useful for determining if a value represents a record key.