@stack-spot/portal-network 0.162.2 → 0.163.0
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 +14 -0
- package/dist/api/content.d.ts +140 -308
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +79 -217
- package/dist/api/content.js.map +1 -1
- package/dist/client/agent-tools.d.ts +0 -9
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +0 -10
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/content.d.ts +10 -4
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +10 -1
- package/dist/client/content.js.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +9 -0
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.js +11 -2
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +343 -795
- package/src/client/agent-tools.ts +0 -6
- package/src/client/content.ts +5 -0
- package/src/client/gen-ai-inference.ts +7 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { getApiAddresses } from '../api-addresses'
|
|
3
3
|
import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, HttpValidationError, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, updateAgentV1AgentsAgentIdPut, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
|
|
4
|
-
import { agentChatV1AgentAgentIdChatPost } from '../api/genAiInference'
|
|
5
4
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
5
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
6
|
import { FetchEventStream } from '../network/types'
|
|
@@ -126,11 +125,6 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
126
125
|
},
|
|
127
126
|
})
|
|
128
127
|
|
|
129
|
-
/**
|
|
130
|
-
* Interaction with a specific AI agent
|
|
131
|
-
*/
|
|
132
|
-
sendAgentMessage = this.mutation(removeAuthorizationParam(agentChatV1AgentAgentIdChatPost))
|
|
133
|
-
|
|
134
128
|
/* Get list of Toolkits
|
|
135
129
|
*/
|
|
136
130
|
toolkits = this.query(removeAuthorizationParam(listToolkitsV1ToolkitsGet))
|
package/src/client/content.ts
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
getDependentWorkflowVersions,
|
|
34
34
|
getGetPluginView,
|
|
35
35
|
getInfrastructureEnvironmentsUsesPlugin,
|
|
36
|
+
getInputs1,
|
|
36
37
|
getListOfInputs,
|
|
37
38
|
getPlugin,
|
|
38
39
|
getPluginInfrastructureView,
|
|
@@ -528,6 +529,10 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
528
529
|
* Get usage summary of workflow version
|
|
529
530
|
*/
|
|
530
531
|
workflowVersionUsageSummary = this.query(getWorkflowVersionUsageSummary)
|
|
532
|
+
/**
|
|
533
|
+
* Get list of inputs of a workflow
|
|
534
|
+
*/
|
|
535
|
+
workflowInputs = this.query(getInputs1)
|
|
531
536
|
}
|
|
532
537
|
|
|
533
538
|
export const contentClient = new ContentClient()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
|
-
import {
|
|
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()
|