Abstract
Class for building HTTP responses.
+Sets response headers.
+Header name, object containing headers, or Headers instance.
+Optional
arg2: stringOptional header value (if arg1 is a string).
+The current ResponseBuilder instance for chaining.
+Sets the HTTP status code for the response.
+The HTTP status code to set.
+The current ResponseBuilder instance for chaining.
+Enum representing the available models for generating embeddings.
+Enum representing the available models for inferencing.
+Enum representing the Quality of Service (QoS) levels for MQTT.
+Generates embeddings for the given text using the specified model.
+The model to use for generating embeddings.
+The text to generate embeddings for.
+The result of generating embeddings.
+Performs inferencing using the specified model and prompt, with optional settings.
+The model to use for inferencing.
+The prompt to use for inferencing.
+Optional
options: InferencingOptionsOptional settings for inferencing.
+The result of the inference.
+Opens an MQTT connection with the specified parameters.
+The address of the MQTT broker.
+The username for the MQTT connection.
+The password for the MQTT connection.
+The keep-alive interval in seconds.
+The MQTT connection object.
+Opens a MySQL connection to the specified address.
+The address of the MySQL server.
+The MySQL connection object.
+Opens a PostgreSQL connection to the specified address.
+The address of the PostgreSQL server.
+The PostgreSQL connection object.
+Opens a connection to the Redis instance at the specified address.
+The address of the Redis instance.
+The Redis connection object.
+Creates a new router instance.
+The router instance.
+Opens a connection to the SQLite database with the specified label.
+The label of the database to connect to.
+The SQLite connection object.
+Opens a connection to the default SQLite database.
+The SQLite connection object.
+Interface representing a key-value store with various utility methods. +Store
+Deletes the value associated with the given key.
+The key to delete the value for.
+Checks if a key exists in the store.
+The key to check.
+True if the key exists, false otherwise.
+Retrieves the value associated with the given key.
+The key to retrieve the value for.
+The value associated with the key, or null if the key does not exist.
+Retrieves the JSON value associated with the given key.
+The key to retrieve the JSON value for.
+The JSON value associated with the key.
+Retrieves all the keys in the store.
+An array of all the keys in the store.
+Sets the value for the given key.
+The key to set the value for.
+The value to set. Can be a Uint8Array, string, or object.
+Sets the JSON value for the given key.
+The key to set the JSON value for.
+The JSON value to set.
+Interface representing the result of generating embeddings. +EmbeddingResult
+Interface representing usage statistics for generating embeddings. +EmbeddingUsage
+Interface representing usage statistics for inferencing. +InferenceUsage
+Interface representing options for inferencing. +InferencingOptions
+Interface representing internal options for inferencing. +InternalInferencingOptions
+Interface representing an MQTT connection with a method for publishing messages. +MqttConnection
+Publishes a message to the specified MQTT topic.
+The topic to publish the message to.
+The message payload as a Uint8Array.
+The Quality of Service level for message delivery.
+Interface representing a MySQL connection with methods for querying and executing statements. +MysqlConnection
+Interface representing a PostgreSQL connection with methods for querying and executing statements. +PostgresConnection
+Executes a statement on the database with the specified parameters.
+The SQL statement to execute.
+The parameters for the SQL statement.
+The number of rows affected by the execution.
+Queries the database with the specified statement and parameters.
+The SQL statement to execute.
+The parameters for the SQL statement.
+The result set of the query.
+Interface representing a Redis connection with various methods for interacting with Redis. +RedisConnection
+Deletes the given key.
+The key to delete.
+Execute an arbitrary Redis command and receive the result.
+The Redis command to execute.
+The arguments for the Redis command.
+Get a value for the given key. Returns null if the key does not exist.
+The key to retrieve the value for.
+Increment the value of a key.
+The key to increment.
+Publish a Redis message to the specified channel.
+The channel to publish the message to.
+The message payload.
+Adds a value to a set.
+The key of the set.
+The values to add to the set.
+Set a value for the given key.
+The key to set the value for.
+The value to set.
+Retrieves the members of a set.
+The key of the set.
+Removes values from a set.
+The key of the set.
+The values to remove from the set.
+Interface representing a connection to an SQLite database with a method for executing queries. +SqliteConnection
+Executes an SQLite statement with given parameters and returns the result.
+The SQL statement to execute.
+The parameters for the SQL statement.
+Rest
...args: anyRest
...args: anyRest
...handlers: SpinRouteHandler[]Rest
...handlers: SpinRouteHandler[]Rest
...handlers: SpinRouteHandler[]Rest
...extras: anyRest
...extras: anyRest
...handlers: SpinRouteHandler[]Rest
...handlers: SpinRouteHandler[]Rest
...handlers: SpinRouteHandler[]Rest
...handlers: SpinRouteHandler[]Type for the resolve function that handles sending the final Response.
+
Abstract class for handling Redis messages.
+