@squidcloud/jira-jsm-client 1.0.508 → 1.0.509

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.
@@ -1601,6 +1601,57 @@ export interface RebuildKnowledgeBaseGraphRequest {
1601
1601
  }
1602
1602
  /** Hard ceiling on the nodes one graph explore returns: a larger `nodeLimit` is clamped down to this value. */
1603
1603
  export declare const KNOWLEDGE_BASE_GRAPH_EXPLORE_MAX_NODES = 1000;
1604
+ /** One bounded page of a full graph export. @category AI */
1605
+ export interface ExportKnowledgeBaseGraphPageRequest {
1606
+ /** Knowledge base whose complete entity graph is being exported. */
1607
+ knowledgeBaseId: AiKnowledgeBaseId;
1608
+ /** The graph collection to enumerate. */
1609
+ phase: 'entities' | 'relationships' | 'provenance';
1610
+ /** Last document id returned by the preceding page. */
1611
+ afterId?: string;
1612
+ /** Export version returned by the first page; subsequent pages must use the same version. */
1613
+ version?: string;
1614
+ /** Maximum records per page, from 1 to 500; defaults to 200. */
1615
+ pageSize?: number;
1616
+ }
1617
+ /** A page without visualization caps; continue until nextAfterId is absent. @category AI */
1618
+ export interface ExportKnowledgeBaseGraphPageResponse {
1619
+ /** Version fence covering graph generation and build activity. */
1620
+ version: string;
1621
+ /** Entity rows for an entities page. */
1622
+ nodes: KnowledgeBaseGraphExportNode[];
1623
+ /** Relationship rows for a relationships page. */
1624
+ edges: KnowledgeBaseGraphExportEdge[];
1625
+ /** Complete source references, paged independently of graph records. */
1626
+ provenance: KnowledgeBaseGraphExportProvenance[];
1627
+ /** Cursor for the next page of the same phase. */
1628
+ nextAfterId?: string;
1629
+ }
1630
+ /** A full-export entity, including its quarantine state. @category AI */
1631
+ export interface KnowledgeBaseGraphExportNode extends KnowledgeBaseGraphNode {
1632
+ /** Whether the entity is hidden from ordinary graph exploration. */
1633
+ quarantined?: boolean;
1634
+ }
1635
+ /** A full-export relationship with its stored identifier and description. @category AI */
1636
+ export interface KnowledgeBaseGraphExportEdge extends KnowledgeBaseGraphEdge {
1637
+ /** Stored relationship identifier. */
1638
+ id: string;
1639
+ /** Stored relationship description, when present. */
1640
+ description?: string;
1641
+ }
1642
+ /** A bucket of source-chunk references owned by one graph record. @category AI */
1643
+ export interface KnowledgeBaseGraphExportProvenance {
1644
+ /** Stored provenance bucket identifier. */
1645
+ id: string;
1646
+ /** Kind of graph record owning these references. */
1647
+ ownerKind: 'entity' | 'edge';
1648
+ /** Identifier of the owning graph record. */
1649
+ ownerId: string;
1650
+ /** Source knowledge-base context. */
1651
+ contextId: string;
1652
+ /** Source chunks in the context. */
1653
+ chunkIds: string[];
1654
+ }
1604
1655
  /** Longest `search` text a graph explore accepts; a longer one is rejected. */
1605
1656
  export declare const KNOWLEDGE_BASE_GRAPH_SEARCH_MAX_LENGTH = 200;
1606
1657
  /**
@@ -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 ["bitbucket", "confluence", "connect_companion", "cotomi", "databricks_genie", "elevenlabs", "openai_voice", "essentials", "freshdesk", "generic_site_ingester", "github", "google_calendar", "google_drive", "hubspot", "sharepoint", "jira", "jira_jsm", "linear", "mail", "onedrive", "outlook", "salesforce", "servicenow_csm", "slack", "teams", "ticketmind_companion", "twilio", "zendesk"];
7
+ export declare const CONNECTOR_IDS: readonly ["bitbucket", "cockroach", "confluence", "connect_companion", "cotomi", "databricks_genie", "elevenlabs", "openai_voice", "essentials", "freshdesk", "generic_site_ingester", "github", "google_calendar", "google_drive", "hubspot", "sharepoint", "jira", "jira_jsm", "linear", "mail", "onedrive", "outlook", "postgres", "salesforce", "servicenow_csm", "slack", "snowflake", "teams", "ticketmind_companion", "twilio", "zendesk"];
8
8
  /**
9
9
  * Unique connector package name.
10
10
  * @category Platform
@@ -45,6 +45,10 @@ export interface TopLevelPropertySchema extends PropertySchema {
45
45
  * This indicates that although the field exists on the db, it should be ignored by squid.
46
46
  */
47
47
  hidden?: boolean;
48
+ /** The only values the database takes in this field. */
49
+ enumValues?: Array<string>;
50
+ /** Whether the database computes this field itself, so a write that names it fails. */
51
+ isGenerated?: boolean;
48
52
  }
49
53
  /**
50
54
  * Milestoning kind on a Legend/PURE class. Drives `.all()` arity and the date
@@ -62,6 +66,10 @@ export interface CollectionSchema extends Omit<PropertySchema, 'properties'> {
62
66
  properties?: Record<string, TopLevelPropertySchema>;
63
67
  /** Legend/PURE only: milestoning stereotype on the class, if any. */
64
68
  milestoning?: MilestoningKind;
69
+ /** The sets of fields, other than the primary key, the database keeps unique across rows. */
70
+ uniqueKeys?: Array<Array<string>>;
71
+ /** The rules the database holds every row to, in its own syntax. */
72
+ checks?: Array<string>;
65
73
  }
66
74
  /**
67
75
  * API-boundary view of {@link CollectionSchema} for use in OpenAPI-exposed
@@ -1,6 +1,8 @@
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
6
  export interface AppRunConfiguration {
5
7
  /** List of enabled connectors packages. */
6
8
  connectors: Array<ConnectorRunConfiguration>;
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@squidcloud/jira-jsm-client",
3
- "version": "1.0.508",
4
- "description": "Squid Jira Service Management Client - SDK for interacting with the JSM connector",
5
- "main": "dist/index.js",
6
- "types": "dist/jira-jsm-client/src/index.d.ts",
7
- "scripts": {
8
- "prebuild": "del-cli dist",
9
- "build": "webpack --mode=production",
10
- "lint": "eslint",
11
- "publish:public": "npm run build && npm publish --access public"
12
- },
13
- "files": [
14
- "dist/**/*"
15
- ],
16
- "keywords": [
17
- "squid",
18
- "jira",
19
- "jira-service-management",
20
- "jsm",
21
- "support-tickets",
22
- "connector"
23
- ],
24
- "author": "",
25
- "license": "ISC",
26
- "dependencies": {
27
- "@squidcloud/client": "^1.0.508"
28
- },
29
- "engines": {
30
- "node": ">=20.0.0"
31
- }
32
- }
1
+ {
2
+ "name": "@squidcloud/jira-jsm-client",
3
+ "version": "1.0.509",
4
+ "description": "Squid Jira Service Management Client - SDK for interacting with the JSM connector",
5
+ "main": "dist/index.js",
6
+ "types": "dist/jira-jsm-client/src/index.d.ts",
7
+ "scripts": {
8
+ "prebuild": "del-cli dist",
9
+ "build": "webpack --mode=production",
10
+ "lint": "eslint",
11
+ "publish:public": "npm run build && npm publish --access public"
12
+ },
13
+ "files": [
14
+ "dist/**/*"
15
+ ],
16
+ "keywords": [
17
+ "squid",
18
+ "jira",
19
+ "jira-service-management",
20
+ "jsm",
21
+ "support-tickets",
22
+ "connector"
23
+ ],
24
+ "author": "",
25
+ "license": "ISC",
26
+ "dependencies": {
27
+ "@squidcloud/client": "^1.0.509"
28
+ },
29
+ "engines": {
30
+ "node": ">=20.0.0"
31
+ }
32
+ }