@squidcloud/jira-client 1.0.512 → 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.
@@ -46,7 +46,7 @@ export declare const AI_CODE_INTERPRETER_PROVIDER_TYPES: readonly ["openai", "an
46
46
  * Public OpenAI chat model names (active models only).
47
47
  * @category AI
48
48
  */
49
- export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-luna", "gpt-6-astra", "gpt-6-luna", "gpt-6.1-sol", "gpt-6.1-terra"];
49
+ export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-luna", "gpt-6-luna", "gpt-6.1-terra", "gpt-6.2-astra", "gpt-6.2-sol"];
50
50
  /**
51
51
  * Public Gemini chat model names (active models only).
52
52
  * @category AI
@@ -66,7 +66,7 @@ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-fable-5-2", "
66
66
  * The supported AI model names.
67
67
  * @category AI
68
68
  */
69
- export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-luna", "gpt-6-astra", "gpt-6-luna", "gpt-6.1-sol", "gpt-6.1-terra", "claude-fable-5-2", "claude-haiku-5-5", "claude-opus-5-5", "claude-sonnet-5-5", "gemini-4-carbon", "gemini-4-argon", "gemini-4-hydrogen", "gemini-3.8-flash", "gemini-3.5-flash-lite", "grok-4.6", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
69
+ export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-luna", "gpt-6-luna", "gpt-6.1-terra", "gpt-6.2-astra", "gpt-6.2-sol", "claude-fable-5-2", "claude-haiku-5-5", "claude-opus-5-5", "claude-sonnet-5-5", "gemini-4-carbon", "gemini-4-argon", "gemini-4-hydrogen", "gemini-3.8-flash", "gemini-3.5-flash-lite", "grok-4.6", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
70
70
  /** Checks if the given model name is a global AI chat model name. */
71
71
  export declare function isVendorAiChatModelName(modelName: unknown): modelName is VendorAiChatModelName;
72
72
  /**
@@ -814,6 +814,16 @@ export interface GenerateAiOntologyRequest {
814
814
  ontologyId: AiOntologyId;
815
815
  /** The status the run saves what it generates with. Defaults to `accepted`. */
816
816
  saveAs?: AiOntologyGenerationSaveStatus;
817
+ /**
818
+ * Whether the run uses the stored ontology as its reference. Defaults to `true`: the model sees the stored rows and
819
+ * the run only adds to them, apart from what is derived: the schema import refreshes unreviewed imported
820
+ * relationships and removes those whose association is gone, and the knowledge base records are refreshed as
821
+ * {@link AiOntologyKnowledgeBase} describes. With `false` the run first deletes every relationship, business entity,
822
+ * property and knowledge base record, reviewed and hand-made ones included, and generates everything again. That is
823
+ * refused with `ONTOLOGY_HAS_NO_SOURCES` when nothing is attached, and fails, deleting nothing, when a database has
824
+ * no stored schema or a knowledge base is gone or may not be in an ontology.
825
+ */
826
+ usePreviousOntology?: boolean;
817
827
  }
818
828
  /**
819
829
  * Request to generate only the properties of business entities of an ontology. Answered by
@@ -829,8 +839,8 @@ export interface GenerateAiOntologyPropertiesRequest {
829
839
  saveAs?: AiOntologyGenerationSaveStatus;
830
840
  }
831
841
  /**
832
- * Request to refresh what an ontology stores about its attached knowledge bases, in a run of its own that stores what
833
- * it reads. Answered by {@link AiOntologyResponse}.
842
+ * Request to refresh what an ontology stores about its attached knowledge bases, in a run of its own that saves its
843
+ * topic links as accepted. Answered by {@link AiOntologyResponse}.
834
844
  * @category AI
835
845
  */
836
846
  export interface RefreshAiOntologyKnowledgeBasesRequest {
@@ -839,7 +849,8 @@ export interface RefreshAiOntologyKnowledgeBasesRequest {
839
849
  }
840
850
  /**
841
851
  * The status a generation run saves what it generates with: `accepted` puts it to use at once, `suggested` keeps it
842
- * from agents until a review accepts it.
852
+ * from agents until a review accepts it. The topics and summary of a knowledge base have no status and are refreshed
853
+ * by every run.
843
854
  * @category AI
844
855
  */
845
856
  export type AiOntologyGenerationSaveStatus = 'accepted' | 'suggested';
@@ -866,10 +877,16 @@ export interface AiOntologyKnowledgeBaseTopicLink {
866
877
  entityId: string;
867
878
  /** Why the model linked them; absent on a link a person added. */
868
879
  reasoning?: string;
880
+ /** Review state; agents see only accepted links. A link without `reviewedAt` is unreviewed. */
881
+ status: AiOntologyRelationshipStatus;
882
+ /** Who accepted or rejected the link. The caller's claim, not an authenticated identity. */
883
+ reviewedBy?: string;
884
+ /** When the link was reviewed, in epoch milliseconds. */
885
+ reviewedAt?: number;
869
886
  }
870
887
  /**
871
- * What an ontology stores about one attached knowledge base. A refresh replaces the summary and topics, and the topic
872
- * links until a person edits them.
888
+ * What an ontology stores about one attached knowledge base. A run replaces the summary and topics. Of the links it
889
+ * replaces the unreviewed ones of the status it saves with, and none once a person set the links.
873
890
  * @category AI
874
891
  */
875
892
  export interface AiOntologyKnowledgeBase {
@@ -910,7 +927,8 @@ export interface ListAiOntologyKnowledgeBasesResponse {
910
927
  knowledgeBases: AiOntologyKnowledgeBase[];
911
928
  }
912
929
  /**
913
- * Request to set the topic links of an attached knowledge base. Later refreshes keep these links.
930
+ * Request to set the topic links of an attached knowledge base: the links named become the accepted links and every
931
+ * other link is removed. Later runs keep these links.
914
932
  * @category AI
915
933
  */
916
934
  export interface UpdateAiOntologyKnowledgeBaseRequest {
@@ -924,6 +942,26 @@ export interface UpdateAiOntologyKnowledgeBaseRequest {
924
942
  */
925
943
  topicLinks: Array<Pick<AiOntologyKnowledgeBaseTopicLink, 'topicName' | 'entityId'>>;
926
944
  }
945
+ /**
946
+ * Request to accept, reject or reset topic links of an attached knowledge base. Answered by
947
+ * {@link AiOntologyKnowledgeBaseResponse}.
948
+ * @category AI
949
+ */
950
+ export interface ReviewAiOntologyKnowledgeBaseTopicLinksRequest {
951
+ /** Id of the ontology. */
952
+ ontologyId: AiOntologyId;
953
+ /** Id of an attached knowledge base that a run has read. */
954
+ knowledgeBaseId: AiKnowledgeBaseId;
955
+ /** The links to review, 1 to `maxKnowledgeBaseTopicLinks`, each one a link of the record. */
956
+ topicLinks: Array<Pick<AiOntologyKnowledgeBaseTopicLink, 'topicName' | 'entityId'>>;
957
+ /**
958
+ * The decision. `reset` returns the links to suggested and clears `reviewedAt`. Only a run that saves as suggested
959
+ * may then replace them, and none once a person set the links; a run that saves as accepted keeps them suggested.
960
+ */
961
+ decision: ReviewAiOntologyRelationshipRequest['decision'];
962
+ /** The caller's claim of who they are, not an authenticated identity. */
963
+ actor?: string;
964
+ }
927
965
  /**
928
966
  * Response that carries what an ontology stores about one knowledge base.
929
967
  * @category AI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/jira-client",
3
- "version": "1.0.512",
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.512"
25
+ "@squidcloud/client": "^1.0.513"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=20.0.0"