Stops the active relationship-inference run of a database integration. The run still writes what it found so far, and ends as 'cancelled'.
The ID of the database integration.
A promise that resolves when the run is asked to stop.
Stops the active synthetic-data run of a database integration. The rows it wrote stay, and it ends as 'cancelled'.
The ID of the database integration.
A promise that resolves when the run is asked to stop.
Deletes the integration with the given ID.
The ID of the integration to delete.
A promise that resolves when the integration has been deleted.
Deletes multiple integrations by their IDs.
An array of integration IDs to delete.
A promise that resolves when all deletions are complete.
Disables an integration. Runtime access is rejected and sync jobs skip it until it is enabled again.
The ID of the integration to disable.
A promise that resolves when the integration has been disabled.
Discovers the schema of a data connection (database). Connects to the database and introspects its structure including tables, columns, and relationships.
The ID of the database integration.
A promise that resolves with the discovered schema and collection readiness information.
Discovers the schema of a GraphQL connection. Performs introspection on the GraphQL endpoint to discover types and operations.
The ID of the GraphQL integration.
The request containing GraphQL connection options.
A promise that resolves with the discovered GraphQL schema.
Discovers the schema from an OpenAPI specification URL. Fetches and parses the OpenAPI spec to discover endpoints and their schemas.
The ID of the API integration.
The request containing OpenAPI discovery options.
A promise that resolves with the discovered API schema.
Discovers the schema from an uploaded OpenAPI specification file. Parses the OpenAPI spec file that was previously uploaded to the integration.
The ID of the API integration with the uploaded spec file.
A promise that resolves with the discovered API schema.
Discovers repositories from a saved source-code integration.
Discovers repositories from an unsaved source-code integration.
Enables a disabled integration. The integration becomes available again for runtime access and sync jobs.
The ID of the integration to enable.
A promise that resolves when the integration has been enabled.
Generates AI descriptions for associations (relationships) in a data schema. Uses AI to analyze entity relationships and generate meaningful descriptions.
The ID of the integration.
The request containing schema with associations and optional parameters.
A promise that resolves with the schema containing AI-generated association descriptions.
Generates AI descriptions for the data schema of an integration. Uses AI to analyze the schema structure and generate meaningful descriptions for collections and their fields.
The ID of the integration.
The request containing schema and optional parameters.
A promise that resolves with the schema containing AI-generated descriptions.
Generates AI descriptions for API endpoints in an API schema. Uses AI to analyze endpoints and generate meaningful descriptions.
The ID of the integration.
The request containing API schema with endpoints and optional parameters.
A promise that resolves with the schema containing AI-generated endpoint descriptions.
Generates AI descriptions for stored procedures in a data schema. Uses AI to analyze stored procedures and generate meaningful descriptions.
The ID of the integration.
The request containing schema with stored procedures and optional parameters.
A promise that resolves with the schema containing AI-generated stored procedure descriptions.
Retrieves the integration by its ID. Disabled integrations are returned too - check the
enabled field of the result (false means disabled).
The ID of the integration to retrieve.
A promise that resolves with the integration info, or undefined if not found.
Retrieves the integration's schema by its ID.
The ID of the integration to retrieve.
A promise that resolves with the integration schema, or undefined if not found.
Searches a connector's own record of files/folders at a path — for connectors (SharePoint, and
any future file/folder-hierarchy connector) that track more than the AI knowledge base ledger
does. Returns { supported: false } when the integration's type doesn't support this. The
connector's own executable requires an API key, so this call fails unless the Squid instance
is authenticated with one.
The ID of the integration to search.
The path, folder, or filename to search for.
A promise that resolves to the connector's path-status result.
Returns the latest relationship-inference run of a database integration, with its progress and findings.
The ID of the database integration.
A promise that resolves with the run, or undefined when the integration never had one.
Returns the latest synthetic-data run of a database integration, with what it wrote to each table.
The ID of the database integration.
A promise that resolves with the run, or undefined when the integration never had one.
Lists all enabled integrations for the current application.
Optionaltype: (Optional) Filter by integration type.
Optionaloptions: ListIntegrationsOptions
(Optional) Pass includeDisabled: true to also list disabled integrations.
A promise that resolves with a list of integrations.
Sets the integration's schema by its ID.
The ID of the integration to update.
The schema to set for the integration.
A promise that resolves when the schema has been updated.
Starts inferring relationships from the data of a database integration, in the background, over its stored schema. It finds relationships no foreign key declares, discriminator columns, and columns that depend on each other, and writes the findings at the minimum confidence or above into the stored schema. Fails while another run of the integration is active.
The ID of the database integration.
Optionaloptions: RelationshipInferenceOptions
(Optional) What to look for and how much to spend on it.
A promise that resolves with the run's job ID, for squid.job().awaitJob(jobId) on a client
with an API key.
Starts filling a dev database with fictional rows, in the background, over its stored schema, which is discovered, described and stored first when the integration has none. The rows are only added: existing rows stay. Each run is self-contained, so the rows it adds reference each other, and existing rows only in tables it does not fill or through a required self-reference, which needs a row to start from. Existing rows are sent to the configured AI provider as format examples. Fails outside dev environments and while another run of the integration is active. PostgreSQL only.
The ID of the database integration.
What to generate, how much, and optionally which tables.
A promise that resolves with the run's job ID, for squid.jobs().awaitJob(jobId).
Tests a data connection (database) to verify it is working. Attempts to connect to the database and perform a basic operation to validate connectivity. This can be used to test connection settings before saving the integration.
The integration configuration to test.
A promise that resolves with the test result indicating success or failure with an optional error message.
Creates or updates an integration.
The integration information to upsert.
A promise that resolves when the operation is complete.
IntegrationClient manages integrations within an application, providing methods for listing, retrieving, updating, and deleting integrations.