Extends DocumentCollection API along with specific methods for io.cozy.apps.
Main API against the cozy-stack server.
Abstracts a collection of documents of the same doctype, providing CRUD methods and other helpers.
Implements DocumentCollection API along with specific methods for io.cozy.files.
Specialized CozyStackClient for mobile, implementing stack registration through OAuth.
Implements DocumentCollection API along with specific methods for io.cozy.permissions.
Implements the DocumentCollection API along with specific methods for io.cozy.sharings.
Implements DocumentCollection API along with specific methods for io.cozy.triggers.
Lists all apps, without filters.
The returned documents are not paginated by the stack.
Returns: Object - The JSON API conformant response.
doctype String The collection doctype.
Fetches an endpoint in an authorized way.
Fetches JSON in an authorized way.
Lists all documents of the collection, without filters.
The returned documents are paginated by the stack.
options Object The fetch options: pagination & fetch of specific docs.
Returns a filtered list of documents using a Mango selector.
selector Object The Mango selector.
options Object The query options.
document object A JSON representing a document, with at least a _type and _id field.
limit number } For pagination, the number of results to return.
Registers the currenly configured client with the OAuth server.
Returns: promise - A promise that resolves with a complete list of client information, including client ID and client secret.
Unregisters the currenly configured client with the OAuth server.
Fetches the complete set of client information from the server after it has been registered.
Overwrites the client own information. This method will update both the local information and the remote information on the OAuth server.
information object Set of information to update. Note that some fields such as clientID can’t be updated.
Generates the URL that the user should be sent to in order to accept the app’s permissions.
scopes Array =  An array of permission scopes for the token.
Retrieves the access code contained in the URL to which the user is redirected after accepting the app’s permissions (the redirectURI).
Exchanges an access code for an access token. This function does not update the client’s token.
Returns: Promise - A promise that resolves with an AccessToken object.
Retrieves a new access token by refreshing the currently used token.
token string = null The new token to use — can be a string, a json object or an AccessToken instance.
document object The document to share. Should have and _id and a name.
options Object The fetch options: Worker allow to filter only triggers associated with a specific worker.
Returns: object - Stack response, containing trigger document under data attribute.
Returns: object - Stack response, containing job launched by trigger, under data attribute.