@squidcloud/jira-client 1.0.511 → 1.0.513

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { AiAgentMemoryOptions, AiChatOptions, AiFileUrl, AiSessionContext } from './ai-agent.public-types';
2
2
  import { AiChatModelName } from './ai-common.public-types';
3
+ import { AiOntologyId } from './ai-ontology.public-types';
3
4
  import { ApiOptions } from './api-client.public-types';
4
5
  import { AiAgentId, IntegrationId } from './communication.public-types';
5
6
  import { JobId } from './job.public-types';
@@ -25,6 +26,12 @@ export interface AiQueryOptions {
25
26
  instructions?: string;
26
27
  /** Whether to enable raw results output. */
27
28
  enableRawResults?: boolean;
29
+ /**
30
+ * Replaces the relationships the query sees in this database with the accepted ones of this ontology, when the
31
+ * ontology attaches the database. Honored for any caller the query's security rules allow, since it only reshapes
32
+ * the joins of this one database. An agent's database tool uses the agent's own `ontologyId` in place of this value.
33
+ */
34
+ ontologyId?: AiOntologyId;
28
35
  /**
29
36
  * When the results are too large to analyze in the answer, skips the analysis and returns the raw results as
30
37
  * files instead, for a caller that processes them itself (e.g. an agent with `executePythonCode`). Default: false.
@@ -4,7 +4,7 @@
4
4
  * 'CONNECTOR_PACKAGES_TO_EXCLUDE_FROM_AUTO_SYNC' in ConnectorsService (console-backend).
5
5
  * @category Platform
6
6
  */
7
- export declare const CONNECTOR_IDS: readonly ["bigquery", "bitbucket", "cockroach", "confluence", "connect_companion", "cotomi", "databricks", "databricks_genie", "dynamodb", "elasticsearch", "elevenlabs", "openai_voice", "essentials", "freshdesk", "generic_site_ingester", "github", "google_calendar", "google_drive", "hubspot", "sharepoint", "jira", "jira_jsm", "legend", "linear", "mail", "mssql", "mysql", "onedrive", "oracledb", "outlook", "postgres", "salesforce", "salesforce_db", "servicenow_csm", "slack", "snowflake", "teams", "ticketmind_companion", "twilio", "zendesk"];
7
+ export declare const CONNECTOR_IDS: readonly ["azure_ai_search", "bigquery", "bitbucket", "cockroach", "confluence", "connect_companion", "cotomi", "databricks", "databricks_genie", "dynamodb", "elasticsearch", "elevenlabs", "openai_voice", "essentials", "freshdesk", "generic_site_ingester", "github", "google_calendar", "google_drive", "hubspot", "sharepoint", "jira", "jira_jsm", "legend", "linear", "mail", "mssql", "mysql", "onedrive", "oracledb", "outlook", "postgres", "salesforce", "salesforce_db", "servicenow_csm", "slack", "snowflake", "teams", "ticketmind_companion", "twilio", "zendesk"];
8
8
  /**
9
9
  * Unique connector package name.
10
10
  * @category Platform
@@ -10,6 +10,10 @@ export interface TriggerEvent<T = unknown> {
10
10
  type: string;
11
11
  /** Arbitrary, JSON-serializable event payload. */
12
12
  payload: T;
13
+ /** The integration the event came from. Agent automations bound to integrations match on it. */
14
+ integrationId?: string;
15
+ /** The prompt an agent automation listening to the event runs its agent with, in place of its default one. */
16
+ prompt?: string;
13
17
  }
14
18
  /** Request body for the `events/emit` core endpoint that publishes a `TriggerEvent`. */
15
19
  export interface EmitEventRequest<T = unknown> {
@@ -1,8 +1,11 @@
1
1
  import { HttpStatusCode } from '../public-types/http-status.public-types';
2
2
  import { JobId } from '../public-types/job.public-types';
3
3
  import { ConnectorId } from './connector.types';
4
- /** A role a worker plays apart from running the application's code. */
5
- export type WorkerRole = 'database';
4
+ /**
5
+ * A role a worker plays apart from running the application's code: `database` holds a database connector,
6
+ * `kbSource` a knowledge-base source connector.
7
+ */
8
+ export type WorkerRole = 'database' | 'kbSource';
6
9
  export interface AppRunConfiguration {
7
10
  /** List of enabled connectors packages. */
8
11
  connectors: Array<ConnectorRunConfiguration>;
@@ -56,10 +56,21 @@ export interface JiraJsmIntegrationConfiguration {
56
56
  requestHistoryDays?: number;
57
57
  }
58
58
  export interface GenericSiteIngesterIntegrationConfiguration {
59
- /** The ingestion mode. Only `'sitemap'` is implemented today. */
60
- type: 'sitemap';
61
- /** URL of the site's sitemap.xml, following the sitemaps.org protocol. */
62
- sitemapUrl: string;
59
+ /** The ingestion mode: discover pages from a sitemap, or by walking a paginated listing. */
60
+ type: 'sitemap' | 'pagination';
61
+ /** URL of the site's sitemap.xml, following the sitemaps.org protocol. Required for `type: 'sitemap'`. */
62
+ sitemapUrl?: string;
63
+ /** Listing URL containing a `{page}` placeholder, e.g. `https://example.com/blog/page/{page}`. Required for `type: 'pagination'`. */
64
+ paginationUrlTemplate?: string;
65
+ /**
66
+ * CSS selector of the element(s) on each listing page whose links are ingested. Pagination stops at
67
+ * the first page with no such links. Required for `type: 'pagination'`.
68
+ */
69
+ paginationLinkSelector?: string;
70
+ /** Value substituted for `{page}` on the first listing page. Defaults to 1. */
71
+ paginationStartPage?: number;
72
+ /** Maximum number of listing requests, including the final one that ends pagination; exceeding it fails the sync. Defaults to 200. */
73
+ paginationMaxPages?: number;
63
74
  /**
64
75
  * When true, pages are rendered in a headless browser before extraction, so client-side JavaScript
65
76
  * (SPAs, content hydrated after page load) runs and appears in the ingested text. Slower and more
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/jira-client",
3
- "version": "1.0.511",
3
+ "version": "1.0.513",
4
4
  "description": "Squid Jira Client - SDK for interacting with the Jira connector",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/jira-client/src/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "author": "",
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
- "@squidcloud/client": "^1.0.511"
25
+ "@squidcloud/client": "^1.0.513"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=20.0.0"