@stack-spot/portal-network 0.194.1 → 0.195.0-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 +181 -0
- package/dist/api/agent-tools.d.ts +6 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +70 -129
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +79 -72
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +315 -62
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +153 -12
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +124 -124
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +10 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +123 -77
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +47 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +19 -19
- package/dist/client/cloud-platform.d.ts +114 -89
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +73 -46
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +356 -258
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +91 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +55 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/discover.d.ts +15 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +48 -48
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +2 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +9 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +142 -216
- package/src/api/codeShift.ts +607 -69
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/agent-tools.ts +10 -1
- package/src/client/ai.ts +42 -1
- package/src/client/cloud-platform.ts +40 -25
- package/src/client/code-shift.ts +54 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/dist/client/agent.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime';
|
|
2
2
|
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
3
3
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
|
-
export declare const isAgentDefault: (agentSlug?: string) =>
|
|
4
|
+
export declare const isAgentDefault: (agentSlug?: string) => agentSlug is "stk_code_buddy";
|
|
5
5
|
declare class AgentClient extends ReactQueryNetworkClient {
|
|
6
6
|
constructor();
|
|
7
7
|
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
@@ -15,36 +15,36 @@ declare class AgentClient extends ReactQueryNetworkClient {
|
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
17
|
slug: string;
|
|
18
|
-
description?: string
|
|
19
|
-
avatar?: string
|
|
18
|
+
description?: string;
|
|
19
|
+
avatar?: string;
|
|
20
20
|
system_prompt: string;
|
|
21
21
|
type: string;
|
|
22
|
-
llm_config?: import("../api/agent.js").LlmConfigResponse
|
|
23
|
-
suggested_prompts?: string[]
|
|
24
|
-
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse
|
|
22
|
+
llm_config?: import("../api/agent.js").LlmConfigResponse;
|
|
23
|
+
suggested_prompts?: string[];
|
|
24
|
+
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
|
|
25
25
|
visibility_level: import("../api/agent.js").VisibilityLevel;
|
|
26
26
|
use_only: boolean;
|
|
27
27
|
creator_name: string;
|
|
28
28
|
created_by: string;
|
|
29
|
-
created_at:
|
|
30
|
-
updated_by?: string
|
|
31
|
-
updated_at?:
|
|
32
|
-
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse
|
|
33
|
-
detail_mode?: boolean
|
|
34
|
-
model_id?: string
|
|
35
|
-
model_name?: string
|
|
29
|
+
created_at: import("../api/agent.js").ZonedDateTime;
|
|
30
|
+
updated_by?: string;
|
|
31
|
+
updated_at?: import("../api/agent.js").ZonedDateTime;
|
|
32
|
+
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
|
|
33
|
+
detail_mode?: boolean;
|
|
34
|
+
model_id?: string;
|
|
35
|
+
model_name?: string;
|
|
36
36
|
structured_output?: {
|
|
37
37
|
[key: string]: any;
|
|
38
|
-
} | null
|
|
38
|
+
} | null;
|
|
39
39
|
llm_settings?: {
|
|
40
40
|
[key: string]: any;
|
|
41
|
-
} | null
|
|
41
|
+
} | null;
|
|
42
42
|
}>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
43
43
|
/**
|
|
44
44
|
* List commons agents
|
|
45
45
|
*/
|
|
46
46
|
agents: import("../network/types.js").QueryObject<{
|
|
47
|
-
visibility?: import("../api/agent.js").VisibilityLevel
|
|
47
|
+
visibility?: import("../api/agent.js").VisibilityLevel;
|
|
48
48
|
}, import("../api/agent.js").AgentResponse[]>;
|
|
49
49
|
/**
|
|
50
50
|
* Gets a common agent by id
|
|
@@ -55,36 +55,36 @@ declare class AgentClient extends ReactQueryNetworkClient {
|
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
57
|
slug: string;
|
|
58
|
-
description?: string
|
|
59
|
-
avatar?: string
|
|
58
|
+
description?: string;
|
|
59
|
+
avatar?: string;
|
|
60
60
|
system_prompt: string;
|
|
61
61
|
type: string;
|
|
62
|
-
llm_config?: import("../api/agent.js").LlmConfigResponse
|
|
63
|
-
suggested_prompts?: string[]
|
|
64
|
-
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse
|
|
62
|
+
llm_config?: import("../api/agent.js").LlmConfigResponse;
|
|
63
|
+
suggested_prompts?: string[];
|
|
64
|
+
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
|
|
65
65
|
visibility_level: import("../api/agent.js").VisibilityLevel;
|
|
66
66
|
use_only: boolean;
|
|
67
67
|
creator_name: string;
|
|
68
68
|
created_by: string;
|
|
69
|
-
created_at:
|
|
70
|
-
updated_by?: string
|
|
71
|
-
updated_at?:
|
|
72
|
-
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse
|
|
73
|
-
detail_mode?: boolean
|
|
74
|
-
model_id?: string
|
|
75
|
-
model_name?: string
|
|
69
|
+
created_at: import("../api/agent.js").ZonedDateTime;
|
|
70
|
+
updated_by?: string;
|
|
71
|
+
updated_at?: import("../api/agent.js").ZonedDateTime;
|
|
72
|
+
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
|
|
73
|
+
detail_mode?: boolean;
|
|
74
|
+
model_id?: string;
|
|
75
|
+
model_name?: string;
|
|
76
76
|
structured_output?: {
|
|
77
77
|
[key: string]: any;
|
|
78
|
-
} | null
|
|
78
|
+
} | null;
|
|
79
79
|
llm_settings?: {
|
|
80
80
|
[key: string]: any;
|
|
81
|
-
} | null
|
|
81
|
+
} | null;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
* List all public agents (built-in)
|
|
85
85
|
*/
|
|
86
86
|
publicAgents: import("../network/types.js").QueryObject<{
|
|
87
|
-
visibility?: import("../api/agent.js").VisibilityLevel
|
|
87
|
+
visibility?: import("../api/agent.js").VisibilityLevel;
|
|
88
88
|
}, import("../api/agent.js").AgentResponse[]>;
|
|
89
89
|
/**
|
|
90
90
|
* Gets a public agent by id (built-in)
|
|
@@ -95,30 +95,30 @@ declare class AgentClient extends ReactQueryNetworkClient {
|
|
|
95
95
|
id: string;
|
|
96
96
|
name: string;
|
|
97
97
|
slug: string;
|
|
98
|
-
description?: string
|
|
99
|
-
avatar?: string
|
|
98
|
+
description?: string;
|
|
99
|
+
avatar?: string;
|
|
100
100
|
system_prompt: string;
|
|
101
101
|
type: string;
|
|
102
|
-
llm_config?: import("../api/agent.js").LlmConfigResponse
|
|
103
|
-
suggested_prompts?: string[]
|
|
104
|
-
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse
|
|
102
|
+
llm_config?: import("../api/agent.js").LlmConfigResponse;
|
|
103
|
+
suggested_prompts?: string[];
|
|
104
|
+
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
|
|
105
105
|
visibility_level: import("../api/agent.js").VisibilityLevel;
|
|
106
106
|
use_only: boolean;
|
|
107
107
|
creator_name: string;
|
|
108
108
|
created_by: string;
|
|
109
|
-
created_at:
|
|
110
|
-
updated_by?: string
|
|
111
|
-
updated_at?:
|
|
112
|
-
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse
|
|
113
|
-
detail_mode?: boolean
|
|
114
|
-
model_id?: string
|
|
115
|
-
model_name?: string
|
|
109
|
+
created_at: import("../api/agent.js").ZonedDateTime;
|
|
110
|
+
updated_by?: string;
|
|
111
|
+
updated_at?: import("../api/agent.js").ZonedDateTime;
|
|
112
|
+
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
|
|
113
|
+
detail_mode?: boolean;
|
|
114
|
+
model_id?: string;
|
|
115
|
+
model_name?: string;
|
|
116
116
|
structured_output?: {
|
|
117
117
|
[key: string]: any;
|
|
118
|
-
} | null
|
|
118
|
+
} | null;
|
|
119
119
|
llm_settings?: {
|
|
120
120
|
[key: string]: any;
|
|
121
|
-
} | null
|
|
121
|
+
} | null;
|
|
122
122
|
}>;
|
|
123
123
|
/**
|
|
124
124
|
* Adds the resource of type Agent to the list of favorites.
|
|
@@ -137,7 +137,7 @@ declare class AgentClient extends ReactQueryNetworkClient {
|
|
|
137
137
|
*/
|
|
138
138
|
updateAgent: import("../network/types.js").MutationObject<{
|
|
139
139
|
agentId: string;
|
|
140
|
-
modifiedAgentRequest?: import("../api/agent.js").ModifiedAgentRequest
|
|
140
|
+
modifiedAgentRequest?: import("../api/agent.js").ModifiedAgentRequest;
|
|
141
141
|
}, unknown>;
|
|
142
142
|
}
|
|
143
143
|
export declare const agentClient: AgentClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,kCAAmC,CAAA;AAQpF,cAAM,WAAY,SAAQ,uBAAuB;;IAK/C,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAalE;;OAEG;IACH,SAAS;iBAEiC,MAAM;iBAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAGhE;IAEF;;OAEG;IACH,MAAM;;+CAA0B;IAEhC;;OAEG;IACH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAkC;IAEvC;;OAEG;IACH,YAAY;;+CAAgC;IAE5C;;OAEG;IACH,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAwC;IAEnD;;OAEG;IACH,gBAAgB;;aAA8C;IAE9D;;OAEG;IACH,mBAAmB;;aAAgD;IACnE;;OAEG;IACH,WAAW;;;gBAAqC;CACjD;AAED,eAAO,MAAM,WAAW,aAAoB,CAAA"}
|
package/dist/client/ai.d.ts
CHANGED
|
@@ -12,8 +12,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
12
12
|
*/
|
|
13
13
|
runQuickAction: import("../network/types.js").MutationObject<Omit<{
|
|
14
14
|
authorization: string;
|
|
15
|
-
xAccountId?: string | null
|
|
16
|
-
xMemberId?: string | null
|
|
15
|
+
xAccountId?: string | null;
|
|
16
|
+
xMemberId?: string | null;
|
|
17
|
+
xUsername?: string | null;
|
|
17
18
|
quickActionsRequest: import("../api/ai.js").QuickActionsRequest;
|
|
18
19
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").SimpleResponse>;
|
|
19
20
|
/**
|
|
@@ -29,7 +30,7 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
29
30
|
*/
|
|
30
31
|
deleteKnowledgeObjectsByStandalone: import("../network/types.js").MutationObject<Omit<{
|
|
31
32
|
slug: string;
|
|
32
|
-
standalone?: boolean | null
|
|
33
|
+
standalone?: boolean | null;
|
|
33
34
|
authorization: string;
|
|
34
35
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
35
36
|
/**
|
|
@@ -45,26 +46,29 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
45
46
|
vectorizeCustomKS: import("../network/types.js").MutationObject<Omit<{
|
|
46
47
|
slug: string;
|
|
47
48
|
authorization: string;
|
|
48
|
-
xAccountId?: string | null
|
|
49
|
-
xMemberId?: string | null
|
|
49
|
+
xAccountId?: string | null;
|
|
50
|
+
xMemberId?: string | null;
|
|
51
|
+
xUsername?: string | null;
|
|
50
52
|
customKnowledgeSourceRequest: import("../api/ai.js").CustomKnowledgeSourceRequest;
|
|
51
53
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
52
54
|
/**
|
|
53
55
|
* Lists the AI Stacks according to their visibilities.
|
|
54
56
|
*/
|
|
55
57
|
aiStacks: import("../network/types.js").QueryObject<Omit<{
|
|
56
|
-
visibility?: import("../api/ai.js").VisibilityLevelEnum
|
|
58
|
+
visibility?: import("../api/ai.js").VisibilityLevelEnum;
|
|
57
59
|
authorization: string;
|
|
58
|
-
xAccountId?: string | null
|
|
59
|
-
xMemberId?: string | null
|
|
60
|
+
xAccountId?: string | null;
|
|
61
|
+
xMemberId?: string | null;
|
|
62
|
+
xUsername?: string | null;
|
|
60
63
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").GetAiStackResponse[]>;
|
|
61
64
|
/**
|
|
62
65
|
* Gets total tokens usage
|
|
63
66
|
*/
|
|
64
67
|
totalTokensUsage: import("../network/types.js").QueryObject<Omit<{
|
|
65
68
|
authorization: string;
|
|
66
|
-
xAccountId?: string | null
|
|
67
|
-
xMemberId?: string | null
|
|
69
|
+
xAccountId?: string | null;
|
|
70
|
+
xMemberId?: string | null;
|
|
71
|
+
xUsername?: string | null;
|
|
68
72
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
|
|
69
73
|
/**
|
|
70
74
|
* Gets current tokens usage
|
|
@@ -73,8 +77,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
73
77
|
year: number;
|
|
74
78
|
month: number;
|
|
75
79
|
authorization: string;
|
|
76
|
-
xAccountId?: string | null
|
|
77
|
-
xMemberId?: string | null
|
|
80
|
+
xAccountId?: string | null;
|
|
81
|
+
xMemberId?: string | null;
|
|
82
|
+
xUsername?: string | null;
|
|
78
83
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
|
|
79
84
|
/**
|
|
80
85
|
* Gets a workspace by its id.
|
|
@@ -82,52 +87,57 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
82
87
|
workspace: import("../network/types.js").QueryObject<Omit<{
|
|
83
88
|
workspaceId: string;
|
|
84
89
|
authorization: string;
|
|
85
|
-
xAccountId?: string | null
|
|
86
|
-
xMemberId?: string | null
|
|
90
|
+
xAccountId?: string | null;
|
|
91
|
+
xMemberId?: string | null;
|
|
92
|
+
xUsername?: string | null;
|
|
87
93
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceResponse[]>;
|
|
88
94
|
/**
|
|
89
95
|
* @deprecated
|
|
90
96
|
* Lists the quick commands according to filters passed as parameter (QC with secrets will not be returned).
|
|
91
97
|
*/
|
|
92
98
|
quickCommands: import("../network/types.js").QueryObject<Omit<{
|
|
93
|
-
visibility?: import("../api/ai.js").VisibilityLevelEnum | null
|
|
94
|
-
order?: import("../api/ai.js").OrderEnum
|
|
95
|
-
types?: import("../api/ai.js").QuickCommandTypeRequest[] | null
|
|
99
|
+
visibility?: import("../api/ai.js").VisibilityLevelEnum | null;
|
|
100
|
+
order?: import("../api/ai.js").OrderEnum;
|
|
101
|
+
types?: import("../api/ai.js").QuickCommandTypeRequest[] | null;
|
|
96
102
|
authorization: string;
|
|
97
|
-
xAccountId?: string | null
|
|
98
|
-
xMemberId?: string | null
|
|
103
|
+
xAccountId?: string | null;
|
|
104
|
+
xMemberId?: string | null;
|
|
105
|
+
xUsername?: string | null;
|
|
99
106
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
|
|
100
107
|
/**
|
|
101
108
|
* Lists all the quick commands according to filters passed as parameter (including QC with secrets).
|
|
102
109
|
*/
|
|
103
110
|
allQuickCommands: import("../network/types.js").QueryObject<Omit<{
|
|
104
|
-
visibility?: import("../api/ai.js").VisibilityLevelEnum | null
|
|
105
|
-
order?: import("../api/ai.js").OrderEnum
|
|
106
|
-
types?: import("../api/ai.js").QuickCommandTypeRequest[] | null
|
|
111
|
+
visibility?: import("../api/ai.js").VisibilityLevelEnum | null;
|
|
112
|
+
order?: import("../api/ai.js").OrderEnum;
|
|
113
|
+
types?: import("../api/ai.js").QuickCommandTypeRequest[] | null;
|
|
107
114
|
authorization: string;
|
|
108
|
-
xAccountId?: string | null
|
|
109
|
-
xMemberId?: string | null
|
|
115
|
+
xAccountId?: string | null;
|
|
116
|
+
xMemberId?: string | null;
|
|
117
|
+
xUsername?: string | null;
|
|
110
118
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
|
|
111
119
|
/**
|
|
112
120
|
* Gets a quick command by its slug.
|
|
113
121
|
*/
|
|
114
122
|
quickCommand: import("../network/types.js").QueryObject<Omit<{
|
|
115
123
|
slug: string;
|
|
116
|
-
findAgents?: boolean
|
|
124
|
+
findAgents?: boolean;
|
|
117
125
|
authorization: string;
|
|
118
|
-
xAccountId?: string | null
|
|
119
|
-
xMemberId?: string | null
|
|
126
|
+
xAccountId?: string | null;
|
|
127
|
+
xMemberId?: string | null;
|
|
128
|
+
xUsername?: string | null;
|
|
120
129
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandResponse>;
|
|
121
130
|
/**
|
|
122
131
|
* Creates a new execution for a quick command by its slug.
|
|
123
132
|
*/
|
|
124
133
|
quickCommandCreateExecution: import("../network/types.js").MutationObject<Omit<{
|
|
125
134
|
slug: string;
|
|
126
|
-
conversationId?: string | null
|
|
135
|
+
conversationId?: string | null;
|
|
127
136
|
authorization: string;
|
|
128
|
-
xAccountId?: string | null
|
|
129
|
-
xMemberId?: string | null
|
|
130
|
-
|
|
137
|
+
xAccountId?: string | null;
|
|
138
|
+
xMemberId?: string | null;
|
|
139
|
+
xUsername?: string | null;
|
|
140
|
+
quickCommandCreateRequest?: import("../api/ai.js").QuickCommandCreateRequest;
|
|
131
141
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
132
142
|
/**
|
|
133
143
|
* Gets the execution status and result of a quick command by its execution ID.
|
|
@@ -135,20 +145,22 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
135
145
|
quickCommandCallbackExecutionId: import("../network/types.js").QueryObject<Omit<{
|
|
136
146
|
executionId: string;
|
|
137
147
|
authorization: string;
|
|
138
|
-
xAccountId?: string | null
|
|
139
|
-
xMemberId?: string | null
|
|
148
|
+
xAccountId?: string | null;
|
|
149
|
+
xMemberId?: string | null;
|
|
150
|
+
xUsername?: string | null;
|
|
140
151
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandExecutionResponse>;
|
|
141
152
|
/**
|
|
142
153
|
* Lists the knowledge sources according to filters passed as parameter.
|
|
143
154
|
*/
|
|
144
155
|
knowledgeSources: import("../network/types.js").QueryObject<Omit<{
|
|
145
|
-
visibility?: import("../api/ai.js").VisibilityLevelEnum
|
|
146
|
-
order?: import("../api/ai.js").OrderEnum
|
|
147
|
-
$default?: boolean | null
|
|
148
|
-
types?: import("../api/ai.js").KnowledgeSourceTypeEnum[] | null
|
|
149
|
-
authorization: string;
|
|
150
|
-
xAccountId?: string | null
|
|
151
|
-
xMemberId?: string | null
|
|
156
|
+
visibility?: import("../api/ai.js").VisibilityLevelEnum;
|
|
157
|
+
order?: import("../api/ai.js").OrderEnum;
|
|
158
|
+
$default?: boolean | null;
|
|
159
|
+
types?: import("../api/ai.js").KnowledgeSourceTypeEnum[] | null;
|
|
160
|
+
authorization: string;
|
|
161
|
+
xAccountId?: string | null;
|
|
162
|
+
xMemberId?: string | null;
|
|
163
|
+
xUsername?: string | null;
|
|
152
164
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceItemResponse[]>;
|
|
153
165
|
/**
|
|
154
166
|
* Gets a knowledge source by its slug.
|
|
@@ -176,11 +188,12 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
176
188
|
* Gets the chat history. This is a paginated resource.
|
|
177
189
|
*/
|
|
178
190
|
chats: import("../network/types.js").InfiniteQueryObject<Omit<{
|
|
179
|
-
size?: number
|
|
180
|
-
page?: number
|
|
191
|
+
size?: number;
|
|
192
|
+
page?: number;
|
|
181
193
|
authorization: string;
|
|
182
|
-
xAccountId?: string | null
|
|
183
|
-
xMemberId?: string | null
|
|
194
|
+
xAccountId?: string | null;
|
|
195
|
+
xMemberId?: string | null;
|
|
196
|
+
xUsername?: string | null;
|
|
184
197
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse[], "">;
|
|
185
198
|
/**
|
|
186
199
|
* Gets a specific chat from the history according to its id.
|
|
@@ -188,8 +201,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
188
201
|
chat: import("../network/types.js").QueryObject<Omit<{
|
|
189
202
|
conversationId: string;
|
|
190
203
|
authorization: string;
|
|
191
|
-
xAccountId?: string | null
|
|
192
|
-
xMemberId?: string | null
|
|
204
|
+
xAccountId?: string | null;
|
|
205
|
+
xMemberId?: string | null;
|
|
206
|
+
xUsername?: string | null;
|
|
193
207
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedConversationResponse>;
|
|
194
208
|
/**
|
|
195
209
|
* Deletes a chat from the chat history.
|
|
@@ -197,8 +211,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
197
211
|
deleteChat: import("../network/types.js").MutationObject<Omit<{
|
|
198
212
|
conversationId: string;
|
|
199
213
|
authorization: string;
|
|
200
|
-
xAccountId?: string | null
|
|
201
|
-
xMemberId?: string | null
|
|
214
|
+
xAccountId?: string | null;
|
|
215
|
+
xMemberId?: string | null;
|
|
216
|
+
xUsername?: string | null;
|
|
202
217
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
203
218
|
/**
|
|
204
219
|
* Gets a plain text version of the chat with id passed as parameter.
|
|
@@ -206,8 +221,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
206
221
|
downloadChat: import("../network/types.js").MutationObject<Omit<{
|
|
207
222
|
conversationId: string;
|
|
208
223
|
authorization: string;
|
|
209
|
-
xAccountId?: string | null
|
|
210
|
-
xMemberId?: string | null
|
|
224
|
+
xAccountId?: string | null;
|
|
225
|
+
xMemberId?: string | null;
|
|
226
|
+
xUsername?: string | null;
|
|
211
227
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
212
228
|
/**
|
|
213
229
|
* Renames a chat.
|
|
@@ -215,8 +231,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
215
231
|
renameChat: import("../network/types.js").MutationObject<Omit<{
|
|
216
232
|
conversationId: string;
|
|
217
233
|
authorization: string;
|
|
218
|
-
xAccountId?: string | null
|
|
219
|
-
xMemberId?: string | null
|
|
234
|
+
xAccountId?: string | null;
|
|
235
|
+
xMemberId?: string | null;
|
|
236
|
+
xUsername?: string | null;
|
|
220
237
|
conversationUpdateTitleRequest: import("../api/ai.js").ConversationUpdateTitleRequest;
|
|
221
238
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse>;
|
|
222
239
|
/**
|
|
@@ -224,8 +241,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
224
241
|
*/
|
|
225
242
|
createEvent: import("../network/types.js").MutationObject<Omit<{
|
|
226
243
|
authorization: string;
|
|
227
|
-
xAccountId?: string | null
|
|
228
|
-
xMemberId?: string | null
|
|
244
|
+
xAccountId?: string | null;
|
|
245
|
+
xMemberId?: string | null;
|
|
246
|
+
xUsername?: string | null;
|
|
229
247
|
body: import("../api/ai.js").GenericEventRequest[];
|
|
230
248
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
231
249
|
/**
|
|
@@ -235,8 +253,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
235
253
|
slug: string;
|
|
236
254
|
stepSlug: string;
|
|
237
255
|
authorization: string;
|
|
238
|
-
xAccountId?: string | null
|
|
239
|
-
xMemberId?: string | null
|
|
256
|
+
xAccountId?: string | null;
|
|
257
|
+
xMemberId?: string | null;
|
|
258
|
+
xUsername?: string | null;
|
|
240
259
|
quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
|
|
241
260
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandStepFetchResponse>;
|
|
242
261
|
/**
|
|
@@ -246,11 +265,12 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
246
265
|
slug: string;
|
|
247
266
|
stepSlug: string;
|
|
248
267
|
authorization: string;
|
|
249
|
-
xAccountId?: string | null
|
|
250
|
-
xMemberId?: string | null
|
|
268
|
+
xAccountId?: string | null;
|
|
269
|
+
xMemberId?: string | null;
|
|
270
|
+
xUsername?: string | null;
|
|
251
271
|
quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
|
|
252
272
|
}, "authorization"> & {
|
|
253
|
-
headers?: Record<string, any
|
|
273
|
+
headers?: Record<string, any>;
|
|
254
274
|
}, import("../api/ai.js").QuickCommandStepFetchResponse>;
|
|
255
275
|
/**
|
|
256
276
|
* @deprecated This method does not use stream, only json. The json support has been removed
|
|
@@ -261,8 +281,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
261
281
|
slug: string;
|
|
262
282
|
stepSlug: string;
|
|
263
283
|
authorization: string;
|
|
264
|
-
xAccountId?: string | null
|
|
265
|
-
xMemberId?: string | null
|
|
284
|
+
xAccountId?: string | null;
|
|
285
|
+
xMemberId?: string | null;
|
|
286
|
+
xUsername?: string | null;
|
|
266
287
|
quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
|
|
267
288
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, string | QuickCommandPromptResponse2>;
|
|
268
289
|
/**
|
|
@@ -272,8 +293,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
272
293
|
slug: string;
|
|
273
294
|
stepSlug: string;
|
|
274
295
|
authorization: string;
|
|
275
|
-
xAccountId?: string | null
|
|
276
|
-
xMemberId?: string | null
|
|
296
|
+
xAccountId?: string | null;
|
|
297
|
+
xMemberId?: string | null;
|
|
298
|
+
xUsername?: string | null;
|
|
277
299
|
quickCommandEvaluateStepRouterRequest: import("../api/ai.js").QuickCommandEvaluateStepRouterRequest;
|
|
278
300
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandEvaluateStepRouterResponse>;
|
|
279
301
|
/**
|
|
@@ -286,8 +308,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
286
308
|
formatResultOfQuickCommand: import("../network/types.js").MutationObject<Omit<{
|
|
287
309
|
slug: string;
|
|
288
310
|
authorization: string;
|
|
289
|
-
xAccountId?: string | null
|
|
290
|
-
xMemberId?: string | null
|
|
311
|
+
xAccountId?: string | null;
|
|
312
|
+
xMemberId?: string | null;
|
|
313
|
+
xUsername?: string | null;
|
|
291
314
|
quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
|
|
292
315
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandFinalResultResponse>;
|
|
293
316
|
/**
|
|
@@ -296,8 +319,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
296
319
|
addFavoriteStackAi: import("../network/types.js").MutationObject<Omit<{
|
|
297
320
|
stackId: string;
|
|
298
321
|
authorization: string;
|
|
299
|
-
xAccountId?: string | null
|
|
300
|
-
xMemberId?: string | null
|
|
322
|
+
xAccountId?: string | null;
|
|
323
|
+
xMemberId?: string | null;
|
|
324
|
+
xUsername?: string | null;
|
|
301
325
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
302
326
|
/**
|
|
303
327
|
* Removes the resource of type Stack AI from the list of favorites.
|
|
@@ -305,8 +329,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
305
329
|
removeFavoriteStackAi: import("../network/types.js").MutationObject<Omit<{
|
|
306
330
|
stackId: string;
|
|
307
331
|
authorization: string;
|
|
308
|
-
xAccountId?: string | null
|
|
309
|
-
xMemberId?: string | null
|
|
332
|
+
xAccountId?: string | null;
|
|
333
|
+
xMemberId?: string | null;
|
|
334
|
+
xUsername?: string | null;
|
|
310
335
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
311
336
|
/**
|
|
312
337
|
* Updates a Quick Command
|
|
@@ -314,8 +339,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
314
339
|
updateQuickCommand: import("../network/types.js").MutationObject<Omit<{
|
|
315
340
|
slug: string;
|
|
316
341
|
authorization: string;
|
|
317
|
-
xAccountId?: string | null
|
|
318
|
-
xMemberId?: string | null
|
|
342
|
+
xAccountId?: string | null;
|
|
343
|
+
xMemberId?: string | null;
|
|
344
|
+
xUsername?: string | null;
|
|
319
345
|
quickCommandsUpdateRequest: import("../api/ai.js").QuickCommandsUpdateRequest;
|
|
320
346
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
321
347
|
/**
|
|
@@ -324,8 +350,9 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
324
350
|
addFavoriteQuickCommand: import("../network/types.js").MutationObject<Omit<{
|
|
325
351
|
slug: string;
|
|
326
352
|
authorization: string;
|
|
327
|
-
xAccountId?: string | null
|
|
328
|
-
xMemberId?: string | null
|
|
353
|
+
xAccountId?: string | null;
|
|
354
|
+
xMemberId?: string | null;
|
|
355
|
+
xUsername?: string | null;
|
|
329
356
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
330
357
|
/**
|
|
331
358
|
* Removes the resource of type Quick Command from the list of favorites.
|
|
@@ -333,17 +360,36 @@ declare class AIClient extends ReactQueryNetworkClient {
|
|
|
333
360
|
removeFavoriteQuickCommand: import("../network/types.js").MutationObject<Omit<{
|
|
334
361
|
slug: string;
|
|
335
362
|
authorization: string;
|
|
336
|
-
xAccountId?: string | null
|
|
337
|
-
xMemberId?: string | null
|
|
363
|
+
xAccountId?: string | null;
|
|
364
|
+
xMemberId?: string | null;
|
|
365
|
+
xUsername?: string | null;
|
|
338
366
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
367
|
+
/**
|
|
368
|
+
* Get Tokens Daily usage
|
|
369
|
+
*/
|
|
370
|
+
analyticsTokensDailyUsage: import("../network/types.js").QueryObject<Omit<{
|
|
371
|
+
month: number;
|
|
372
|
+
year: number;
|
|
373
|
+
accountSlug?: string;
|
|
374
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
375
|
+
/**
|
|
376
|
+
* Get Tokens By User
|
|
377
|
+
*/
|
|
378
|
+
analyticsTokensByUser: import("../network/types.js").QueryObject<{
|
|
379
|
+
month: number;
|
|
380
|
+
year: number;
|
|
381
|
+
page?: number;
|
|
382
|
+
pageSize?: number;
|
|
383
|
+
}, any>;
|
|
339
384
|
private static toolsOfAgent;
|
|
340
385
|
sendChatMessage(request: FixedChatRequest, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
|
|
341
386
|
contentDependencies: import("../network/types.js").QueryObject<Omit<{
|
|
342
387
|
contentType: import("../api/ai.js").ContentDependencyType;
|
|
343
388
|
contentId: string;
|
|
344
389
|
authorization: string;
|
|
345
|
-
xAccountId?: string | null
|
|
346
|
-
xMemberId?: string | null
|
|
390
|
+
xAccountId?: string | null;
|
|
391
|
+
xMemberId?: string | null;
|
|
392
|
+
xUsername?: string | null;
|
|
347
393
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedDependencyResponse>;
|
|
348
394
|
}
|
|
349
395
|
export declare const aiClient: AIClient;
|
package/dist/client/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/client/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EA+BL,2BAA2B,EAC3B,6BAA6B,
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/client/ai.ts"],"names":[],"mappings":"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"}
|