Make sure to call the loadMessages function before using the messages object.
Creates an asset with the given metadata.
Creates a relation between two entities.
Requests a new csrf token.
Returns the configuration of fieldinfo of the current Assets server.
Returns the profile for the currently logged in user
Requests the configured messages for the given locale and initializes the messages object on the API client.
Performs a logout request on the server.
Updates an asset with the specified metadata.
Updates assets found by the given query with the specified metadata.
Configure the client to start a session within the current window with the given credentials when authenticating.
Use this function to initialize the API client using an established connection with the Assets client using the AssetsPluginContext class. This ensures requests and login prompts are automatically routed through to the Assets client and thus reuses the existing user session from the Assets client window.
Use this function to initialize the API client as a standalone interface with the Assets server. This means a new userSession must be instantiated in order to start querying the server. For plugin developers looking to reuse the existing userSession from the Assets client, refer to the 'fromPluginContext' function.