@stack-spot/portal-network 0.162.1 → 0.162.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.162.3](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.162.2...portal-network@v0.162.3) (2025-07-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * sendAgentMessage ([#1287](https://github.com/stack-spot/portal-commons/issues/1287)) ([0d4f1da](https://github.com/stack-spot/portal-commons/commit/0d4f1da6ed04ea5fb6b3ffabf518f9320b95218b))
9
+
10
+ ## [0.162.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.162.1...portal-network@v0.162.2) (2025-07-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add sendAgentMessage ([#1285](https://github.com/stack-spot/portal-commons/issues/1285)) ([dc412d5](https://github.com/stack-spot/portal-commons/commit/dc412d55b701285c93a19f708639028a60e48b67))
16
+
3
17
  ## [0.162.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.162.0...portal-network@v0.162.1) (2025-07-24)
4
18
 
5
19
 
@@ -87,6 +87,15 @@ declare class GenAiInference extends ReactQueryNetworkClient {
87
87
  xAccountId?: string | null | undefined;
88
88
  authorization: string;
89
89
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
90
+ /**
91
+ * Interaction with a specific AI agent
92
+ */
93
+ sendAgentMessage: import("../network/types.js").MutationObject<Omit<{
94
+ agentId: string;
95
+ xAccountId?: string | null | undefined;
96
+ authorization: string;
97
+ chatRequest: import("../api/genAiInference.js").ChatRequest;
98
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
90
99
  }
91
100
  export declare const genAiInferenceClient: GenAiInference;
92
101
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"gen-ai-inference.d.ts","sourceRoot":"","sources":["../../src/client/gen-ai-inference.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ACH,WAAW;;;;;sHAAuE;IAClF;;OAEG;IACH,iBAAiB;;;;;sHAAoF;IACrG;;OAEG;IACH,mBAAmB;;;;;wEAAoG;IAEvH;;OAEG;IACH,mBAAmB;;;;4EAA8F;IAEjH;;OAEG;IACH,gBAAgB;;;;;wEAA2E;CAC5F;AAED,eAAO,MAAM,oBAAoB,gBAAuB,CAAA"}
@@ -1,9 +1,9 @@
1
- import { addSelfHostedModelV1LlmModelsPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference.js';
1
+ import { getApiAddresses } from '../api-addresses.js';
2
+ import { addSelfHostedModelV1LlmModelsPost, agentChatV1AgentAgentIdChatPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference.js';
2
3
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
3
4
  import { inferenceDictionary } from '../error/dictionary/ai-inference.js';
4
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
5
6
  import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
6
- import { getApiAddresses } from '../api-addresses.js';
7
7
  class GenAiInference extends ReactQueryNetworkClient {
8
8
  constructor() {
9
9
  super(getApiAddresses().genAiInference.url, defaults);
@@ -88,6 +88,15 @@ class GenAiInference extends ReactQueryNetworkClient {
88
88
  writable: true,
89
89
  value: this.mutation(removeAuthorizationParam(deleteModelResourcesV1LlmResourcesResourceIdDelete))
90
90
  });
91
+ /**
92
+ * Interaction with a specific AI agent
93
+ */
94
+ Object.defineProperty(this, "sendAgentMessage", {
95
+ enumerable: true,
96
+ configurable: true,
97
+ writable: true,
98
+ value: this.mutation(removeAuthorizationParam(agentChatV1AgentAgentIdChatPost))
99
+ });
91
100
  }
92
101
  buildStackSpotError(error) {
93
102
  return new DefaultAPIError(error.data, error.status, inferenceDictionary, error.headers);
@@ -1 +1 @@
1
- {"version":3,"file":"gen-ai-inference.js","sourceRoot":"","sources":["../../src/client/gen-ai-inference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,QAAQ,EAAE,kDAAkD,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,wDAAwD,EAAE,wCAAwC,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AACpY,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAEtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,cAAe,SAAQ,uBAAuB;IAClD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOvD;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;WAAA;QAC3E;;WAEG;QACH;;;;mBAAgB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,iCAAiC,CAAC,CAAC;WAAA;QACvF;;WAEG;QACH;;;;mBAAc,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,iCAAiC,CAAC,CAAC;WAAA;QACxF;;WAEG;QACH;;;;mBAAc,I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O,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IAC1F,CAAC;CA6CF;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-network",
3
- "version": "0.162.1",
3
+ "version": "0.162.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +1,12 @@
1
1
 
2
2
  import { HttpError } from '@oazapfts/runtime'
3
- import { addSelfHostedModelV1LlmModelsPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference'
3
+ import { getApiAddresses } from '../api-addresses'
4
+ import { addSelfHostedModelV1LlmModelsPost, agentChatV1AgentAgentIdChatPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference'
4
5
  import { DefaultAPIError } from '../error/DefaultAPIError'
5
6
  import { inferenceDictionary } from '../error/dictionary/ai-inference'
6
7
  import { StackspotAPIError } from '../error/StackspotAPIError'
7
8
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
8
9
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
9
- import { getApiAddresses } from '../api-addresses'
10
10
 
11
11
  class GenAiInference extends ReactQueryNetworkClient {
12
12
  constructor() {
@@ -55,6 +55,11 @@ class GenAiInference extends ReactQueryNetworkClient {
55
55
  * Deletes a specific model resource by resource ID.
56
56
  */
57
57
  deleteModelResource = this.mutation(removeAuthorizationParam(deleteModelResourcesV1LlmResourcesResourceIdDelete))
58
+
59
+ /**
60
+ * Interaction with a specific AI agent
61
+ */
62
+ sendAgentMessage = this.mutation(removeAuthorizationParam(agentChatV1AgentAgentIdChatPost))
58
63
  }
59
64
 
60
65
  export const genAiInferenceClient = new GenAiInference()