![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
node wrapper around tDoc REST-ful APIs
All the methods have a single object parameter, used as a way to improve readability and have optional parameters.
All methods return a native Promiseand since 1.0.0 no longer accept an optional Node-style callback(err, data)
parameter.
All methods accept a user
parameter used to specify the user the request is made on the behalf of (to be used if and only if the authentication user is root).
upload
update
document
documentMeta
search
searchOne
parcelCreate
parcelClose
parcelDelete
documentDelete
companyList
doctypeList
doctypeInfo
upload
Upload a document.
Arguments
ready
is false), either:
file
: path of the file to be uploadeddata
: a Buffer
or binary
string with raw datamimetype
: the content media type (defaults to application/pdf
)doctype
: docType to upload the document intoperiod
: fiscal period the document refers to; use current year for documents that don't have such conceptparcel
: an optional parcel identifier (created with parcelCreate
)meta
: all the metadata to associate to the document (optional if ready
is false)ready
: if the document is ready for preservation or still incomplete (defaults to true
)company
: if the user has access to more than one company, use this optional field to specify which one the doctype
refers toalias
& pin
: specify those fields when you need to apply a digital signature to the documentoverwrite
: the document identifier of a (not yet preserved) document to overwrite (optional)Returns
Full document metadata.
update
Update a document.
Arguments
id
: the identifier of the document to updateready
is false), either:
file
: path of the file to be uploadeddata
: a Buffer
or binary
string with raw datamimetype
: the content media type (defaults to application/pdf
)meta
: all the metadata to associate to the document (optional if ready
is false)ready
: if the document is ready for preservation or still incomplete (defaults to true
)company
: if the user has access to more than one company, use this optional field to specify which one the doctype
refers toalias
& pin
: specify those fields when you need to apply a digital signature to the documentoverwrite
: the document identifier of a (not yet preserved) document to overwrite (optional)Returns
Full document metadata.
document
Retrieves a Buffer with the content of a document.
Arguments
id
: the identifier of the documentReturns
Full document content.
documentMeta
Retrieves the full metadata of a document.
Arguments
id
: the identifier of the documentReturns
Full document metadata.
search
Search for documents matching some metadata.
Arguments
doctype
: docType to searchperiod
: (optional) fiscal period to searchmeta
: any metadata to search forReturns
An array of document identifier.
searchOne
Search for a single document matching some metadata. Returns full metadata of the searched document.
Warning: it is implemented using search
and documentMeta
and thus requires two round trip times.
Arguments
doctype
: docType to searchperiod
: (optional) fiscal period to searchmeta
: any metadata to search forReturns
Full document metadata.
parcelCreate
Opens a new parcel to upload one or more documents as a single entity.
Arguments
doctype
: docType to create the parcel infilename
: the (unique) filename of this parcelReturns
The parcel unique identifier.
parcelClose
Closes the parcel.
Arguments
id
: the identifier of the parcelextra
: (optional) a string containing the parcel source metadataReturns
All the metadata of the closed parcel.
parcelDelete
Deletes the parcel (and all the documents it contained).
Arguments
id
: the identifier of the parcelerror
: (optional) a string containing the error that required the deletion of the parcelextra
: (optional) a string containing the parcel source metadataReturns
All the metadata of the closed parcel.
documentDelete
Deletes a document.
Arguments
id
: the identifier of the documentReturns
Nothing.
companyList
List of companies the user has access to.
Arguments
None.
Returns
A JSON object with short company names as keys and long names as values.
doctypeList
List of doctypes the user has access to.
Arguments
None.
Returns
A JSON object with short company names as keys and an array of doctypes names as values.
doctypeInfo
Full information about a doctype.
Arguments
doctype
: the doctype (defaults to all of them)Returns
An array of doctype objects.
FAQs
Wrapper around tDoc REST-ful APIs
The npm package tdoc-api receives a total of 0 weekly downloads. As such, tdoc-api popularity was classified as not popular.
We found that tdoc-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.