@stack-spot/portal-network 0.150.1 → 0.150.2-beta.1
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 +16 -0
- package/dist/api/agent-tools.d.ts +13 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/client/agent-tools.d.ts +88 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +133 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +5 -50
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +0 -64
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +7 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +10 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/types.d.ts +5 -4
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/dictionary/cnt.d.ts +4 -0
- package/dist/error/dictionary/cnt.d.ts.map +1 -1
- package/dist/error/dictionary/cnt.js +4 -0
- package/dist/error/dictionary/cnt.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +16 -0
- package/src/api/agent.ts +2 -0
- package/src/api/notification.ts +2 -0
- package/src/client/agent-tools.ts +102 -3
- package/src/client/agent.ts +0 -68
- package/src/client/ai.ts +6 -0
- package/src/client/types.ts +7 -5
- package/src/error/dictionary/cnt.ts +7 -0
package/src/client/ai.ts
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost,
|
|
34
34
|
resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
|
|
35
35
|
runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
|
|
36
|
+
searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
|
|
36
37
|
updateQuickCommandV1QuickCommandsSlugPatch,
|
|
37
38
|
updateTitleV1ConversationsConversationIdPatch,
|
|
38
39
|
vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
|
|
@@ -134,6 +135,10 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
134
135
|
* Gets a knowledge source document by the slug of the parent knowledge source and the document id.
|
|
135
136
|
*/
|
|
136
137
|
knowledgeSourceDocument = this.query(removeAuthorizationParam(findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet))
|
|
138
|
+
/**
|
|
139
|
+
* Lists knowledge sources matching the provided IDs.
|
|
140
|
+
*/
|
|
141
|
+
searchKnowledgeSources = this.query(removeAuthorizationParam(searchKnowledgeSourcesV1KnowledgeSourcesSearchPost))
|
|
137
142
|
/**
|
|
138
143
|
* Gets the chat history. This is a paginated resource.
|
|
139
144
|
*/
|
|
@@ -371,3 +376,4 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
371
376
|
}
|
|
372
377
|
|
|
373
378
|
export const aiClient = new AIClient()
|
|
379
|
+
|
package/src/client/types.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RequestOpts } from '@oazapfts/runtime'
|
|
2
2
|
import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse, GroupsFromResourceResponse, MembersFromResourceResponse } from '../api/account'
|
|
3
|
-
import {
|
|
4
|
-
import { HttpMethod } from '../api/agent-tools'
|
|
3
|
+
import { AgentVisibilityLevelEnum, HttpMethod, ListAgentResponse, VisibilityLevelEnum } from '../api/agent-tools'
|
|
5
4
|
import { ChatRequest, ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse } from '../api/ai'
|
|
6
5
|
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
|
|
7
6
|
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
|
|
@@ -220,6 +219,7 @@ export interface WorkspaceAiMembersPermissions {
|
|
|
220
219
|
totalPages: number,
|
|
221
220
|
}
|
|
222
221
|
|
|
222
|
+
|
|
223
223
|
export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
|
|
224
224
|
actions: Action[],
|
|
225
225
|
}
|
|
@@ -358,12 +358,14 @@ export type FixVariables<
|
|
|
358
358
|
|
|
359
359
|
export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>
|
|
360
360
|
|
|
361
|
-
export interface AgentResponseWithBuiltIn extends
|
|
361
|
+
export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
|
|
362
362
|
builtIn?: boolean,
|
|
363
363
|
spaceName?: string,
|
|
364
|
-
|
|
364
|
+
conversation_starter?: string[] | null,
|
|
365
|
+
avatar?: string | null | undefined,
|
|
366
|
+
}
|
|
365
367
|
|
|
366
|
-
export type AgentVisibilityLevel =
|
|
368
|
+
export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
|
|
367
369
|
|
|
368
370
|
export interface AgentToolsOpenAPIPreview {
|
|
369
371
|
name: string,
|
|
@@ -44,8 +44,11 @@ export const cntDictionary = {
|
|
|
44
44
|
CNT_STACK_ADD_WORKFLOWS_INCONSISTENCY_BY_INFRA_PLUGIN_NOT_FOUND_DEPENDENCIES_ERROR: 'There are workflows entered that depend on infra type plugins that were not found to add to the stack',
|
|
45
45
|
CNT_CONTENT_NO_PERMISSION_TO_ARCHIVE: 'User has no permission to archive this type of content',
|
|
46
46
|
CNT_STUDIO_SLUG_RESERVED_PREFIX_ERROR: 'The prefix \'stackspot\' in the studio slug is reserved and cannot be used',
|
|
47
|
+
CNT_CUSTOMIZED_WORKFLOW_NO_PERMISSION_TO_DEPRECATE: 'You do not have permission to deprecate customized workflows. Please request access from your administrator to proceed.',
|
|
48
|
+
CNT_CUSTOMIZED_WORKFLOW_NO_PERMISSION_TO_UNPUBLISH: 'You do not have permission to unpublish customized workflows. Please request access from your administrator to proceed.',
|
|
47
49
|
CNT_WORKFLOW_NO_PERMISSION_TO_DEPRECATE: 'You do not have permission to deprecate base/normal workflows. Please request access from your administrator to proceed.',
|
|
48
50
|
CNT_WORKFLOW_NO_PERMISSION_TO_UNPUBLISH: 'You do not have permission to unpublish base/normal workflows. Please request access from your administrator to proceed.',
|
|
51
|
+
|
|
49
52
|
},
|
|
50
53
|
pt: {
|
|
51
54
|
CNT_MALFORMED_FIELDS_IN_PAYLOAD: 'Alguns campos estão incorretos. Verifique os dados.',
|
|
@@ -90,7 +93,11 @@ export const cntDictionary = {
|
|
|
90
93
|
CNT_STACK_ADD_WORKFLOWS_INCONSISTENCY_BY_INFRA_PLUGIN_NOT_FOUND_DEPENDENCIES_ERROR: 'Existem workflows inseridos que dependem de plugins do tipo infra que não foram encontrados para adicionar à stack',
|
|
91
94
|
CNT_CONTENT_NO_PERMISSION_TO_ARCHIVE: 'O usuário não tem permissão para arquivar esse tipo de conteúdo.',
|
|
92
95
|
CNT_STUDIO_SLUG_RESERVED_PREFIX_ERROR: 'O prefixo \'stackspot\' no slug do estúdio é reservado e não pode ser utilizado',
|
|
96
|
+
CNT_CUSTOMIZED_WORKFLOW_NO_PERMISSION_TO_DEPRECATE: 'Você não possui permissão para depreciar workflows do tipo customizado. Solicite ao administrador o acesso para continuar',
|
|
97
|
+
CNT_CUSTOMIZED_WORKFLOW_NO_PERMISSION_TO_UNPUBLISH: 'Você não possui permissão para despublicar workflows do tipo customizado. Solicite ao administrador o acesso para continuar',
|
|
93
98
|
CNT_WORKFLOW_NO_PERMISSION_TO_DEPRECATE: 'Você não possui permissão para depreciar workflows do tipo base/normal. Solicite ao administrador o acesso para continuar',
|
|
94
99
|
CNT_WORKFLOW_NO_PERMISSION_TO_UNPUBLISH: 'Você não possui permissão para despublicar workflows do tipo base/normal. Solicite ao administrador o acesso para continuar',
|
|
100
|
+
|
|
95
101
|
},
|
|
96
102
|
} satisfies Dictionary
|
|
103
|
+
|