@stack-spot/portal-network 0.108.0 → 0.110.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 +19 -0
- package/dist/api/cloudPlatformHorizon.d.ts +159 -55
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +123 -13
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/ai.d.ts +32 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +37 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +49 -2
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +51 -6
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatformHorizon.ts +624 -100
- package/src/client/ai.ts +24 -0
- package/src/client/cloud-platform-horizon.ts +26 -6
package/src/client/ai.ts
CHANGED
|
@@ -25,6 +25,10 @@ import {
|
|
|
25
25
|
quickActionsV1QuickActionsPost,
|
|
26
26
|
quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost,
|
|
27
27
|
updateTitleV1ConversationsConversationIdPatch,
|
|
28
|
+
deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete,
|
|
29
|
+
getUploadFormV1FileUploadFormPost,
|
|
30
|
+
vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
|
|
31
|
+
resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
|
|
28
32
|
} from '../api/ai'
|
|
29
33
|
import apis from '../apis.json'
|
|
30
34
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
@@ -60,6 +64,26 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
60
64
|
* Chat: runs a quick action.
|
|
61
65
|
*/
|
|
62
66
|
runQuickAction = this.mutation(removeAuthorizationParam(quickActionsV1QuickActionsPost))
|
|
67
|
+
/**
|
|
68
|
+
* Deletes a KO from a KS
|
|
69
|
+
*/
|
|
70
|
+
deleteKnowledgeObjectFromKs = this.mutation(
|
|
71
|
+
removeAuthorizationParam(deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete))
|
|
72
|
+
/**
|
|
73
|
+
* Deletes a KO by standalone (reset Knowledge Objects)
|
|
74
|
+
*/
|
|
75
|
+
deleteKnowledgeObjectsByStandalone = this.mutation(
|
|
76
|
+
removeAuthorizationParam(resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete))
|
|
77
|
+
/**
|
|
78
|
+
* Uploads a KO file
|
|
79
|
+
*/
|
|
80
|
+
fileUploadFormKnowledgeObject = this.mutation(
|
|
81
|
+
removeAuthorizationParam(getUploadFormV1FileUploadFormPost))
|
|
82
|
+
/**
|
|
83
|
+
* Creates a custom KO (Vectorize)
|
|
84
|
+
*/
|
|
85
|
+
vectorizeCustomKS = this.mutation(
|
|
86
|
+
removeAuthorizationParam(vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost))
|
|
63
87
|
/**
|
|
64
88
|
* Lists the AI Stacks according to their visibilities.
|
|
65
89
|
*/
|
|
@@ -5,7 +5,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
|
5
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
-
import { apply, createOrganization,
|
|
8
|
+
import { apply, createOrganization, createRuntime1, createTenant1, defaults, deploy, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listApplicationDeployments, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
9
9
|
import { baseDictionary } from '../error/dictionary/base'
|
|
10
10
|
|
|
11
11
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
@@ -27,31 +27,51 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get details of an tenant
|
|
29
29
|
*/
|
|
30
|
-
getTenantById= this.query(removeAuthorizationParam(
|
|
30
|
+
getTenantById= this.query(removeAuthorizationParam(getTenant1))
|
|
31
31
|
/**
|
|
32
32
|
* Get details of an runtime
|
|
33
33
|
*/
|
|
34
|
-
getRuntimeById= this.query(removeAuthorizationParam(
|
|
34
|
+
getRuntimeById= this.query(removeAuthorizationParam(getRuntime1))
|
|
35
35
|
/**
|
|
36
36
|
* Create an tenant
|
|
37
37
|
*/
|
|
38
|
-
createTenant = this.mutation(removeAuthorizationParam(
|
|
38
|
+
createTenant = this.mutation(removeAuthorizationParam(createTenant1))
|
|
39
39
|
/**
|
|
40
40
|
* Create an runtime
|
|
41
41
|
*/
|
|
42
|
-
createRuntime = this.mutation(removeAuthorizationParam(
|
|
42
|
+
createRuntime = this.mutation(removeAuthorizationParam(createRuntime1))
|
|
43
43
|
/**
|
|
44
44
|
* Create an organization
|
|
45
45
|
*/
|
|
46
46
|
createOrganization = this.mutation(removeAuthorizationParam(createOrganization))
|
|
47
47
|
/**
|
|
48
|
-
* List runtimes
|
|
48
|
+
* List all runtimes
|
|
49
49
|
*/
|
|
50
50
|
listRuntimes = this.query(removeAuthorizationParam(listRuntimes))
|
|
51
|
+
/**
|
|
52
|
+
* List all tenants
|
|
53
|
+
*/
|
|
54
|
+
listTenants = this.query(removeAuthorizationParam(listTenants))
|
|
55
|
+
/**
|
|
56
|
+
* List tenants from organization
|
|
57
|
+
*/
|
|
58
|
+
listTenantsByOrganization = this.query(removeAuthorizationParam(listTenants1))
|
|
59
|
+
/**
|
|
60
|
+
* List runtimes from tenant
|
|
61
|
+
*/
|
|
62
|
+
listRuntimesByTenant = this.query(removeAuthorizationParam(listRuntimes1))
|
|
63
|
+
/**
|
|
64
|
+
* List applications deployments from runtime
|
|
65
|
+
*/
|
|
66
|
+
listApplicationsDeployments = this.query(removeAuthorizationParam(listApplicationDeployments))
|
|
51
67
|
/**
|
|
52
68
|
* Deploy an application
|
|
53
69
|
*/
|
|
54
70
|
deployApplication = this.mutation(removeAuthorizationParam(deploy))
|
|
71
|
+
/**
|
|
72
|
+
* Get organization by id
|
|
73
|
+
*/
|
|
74
|
+
getOrganizationById = this.query(removeAuthorizationParam(getOrganizationById))
|
|
55
75
|
}
|
|
56
76
|
|
|
57
77
|
export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
|