@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036
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 +633 -0
- package/dist/api/account.d.ts +413 -277
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +261 -176
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +818 -261
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +245 -50
- 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 +488 -98
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +426 -146
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +374 -221
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +299 -93
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +1125 -83
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +538 -16
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +98 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workflows.d.ts +68 -5
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +16 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api-addresses.d.ts +20 -18
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +81 -21
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +241 -0
- package/dist/apis.json +17 -1
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +265 -242
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +80 -34
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +295 -121
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +166 -12
- 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 +265 -79
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +268 -24
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +10 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +213 -46
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +168 -33
- 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 +535 -162
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +296 -7
- 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 +92 -53
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +38 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +31 -10
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +239 -3
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- 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 +17 -10
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +50 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +65 -55
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +19 -9
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +115 -76
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +47 -2
- package/dist/client/workspace-manager.js.map +1 -1
- 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/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/error/dictionary/cloud-platform.d.ts +76 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +80 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/error/dictionary/workspace-ai.d.ts +9 -0
- package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-ai.js +9 -0
- package/dist/error/dictionary/workspace-ai.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +16 -4
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +2 -0
- package/dist/network/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +3 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +23 -3
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +10 -9
- package/package.stg.json +3 -0
- package/readme.md +40 -1
- package/src/api/account.ts +701 -540
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +1354 -556
- package/src/api/ai.ts +891 -170
- package/src/api/cloudPlatform.ts +667 -298
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +2088 -97
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/api/edpBfa.ts +472 -0
- package/src/api/genAiInference.ts +47 -4
- package/src/api/workflows.ts +100 -5
- package/src/api/workspace-ai.ts +83 -0
- package/src/api/workspaceManager.ts +25 -10
- package/src/api-addresses.ts +113 -38
- package/src/apis-itau.json +241 -0
- package/src/apis.json +17 -1
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +71 -40
- package/src/client/agent-tools.ts +111 -18
- package/src/client/ai.ts +237 -24
- package/src/client/api-management.ts +7 -2
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/cloud-platform.ts +101 -27
- package/src/client/code-shift.ts +196 -8
- package/src/client/data-integration.ts +28 -1
- package/src/client/discover.ts +238 -5
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +55 -9
- package/src/client/workspace-ai.ts +37 -26
- package/src/client/workspace-manager.ts +31 -2
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/error/dictionary/cloud-platform.ts +80 -12
- package/src/error/dictionary/workspace-ai.ts +10 -0
- package/src/index.ts +6 -3
- package/src/network/NetworkClient.ts +18 -6
- package/src/network/types.ts +3 -0
- package/src/utils/StreamedJson.tsx +19 -4
package/src/api/discover.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://discover-discover-core.
|
|
11
|
+
baseUrl: "https://discover-discover-core.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://discover-discover-core.
|
|
15
|
+
generatedServerUrl: "https://discover-discover-core.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type GetOpportunityResponseHypothesisResponse = {
|
|
18
18
|
id: string;
|
|
@@ -28,7 +28,7 @@ export type GetOpportunityResponse = {
|
|
|
28
28
|
hypotheses: GetOpportunityResponseHypothesisResponse[];
|
|
29
29
|
updatedBy?: string;
|
|
30
30
|
updatedAt?: string;
|
|
31
|
-
chatId
|
|
31
|
+
chatId: string;
|
|
32
32
|
};
|
|
33
33
|
export type UpdateOpportunityRequest = {
|
|
34
34
|
title?: string;
|
|
@@ -42,7 +42,7 @@ export type UpdateOpportunityResponse = {
|
|
|
42
42
|
createdAt?: string;
|
|
43
43
|
updatedBy?: string;
|
|
44
44
|
updatedAt?: string;
|
|
45
|
-
chatId
|
|
45
|
+
chatId: string;
|
|
46
46
|
};
|
|
47
47
|
export type GetHypothesisResponseDocumentResponse = {
|
|
48
48
|
id: string;
|
|
@@ -59,7 +59,7 @@ export type GetHypothesisResponse = {
|
|
|
59
59
|
createdAt?: string;
|
|
60
60
|
updatedBy?: string;
|
|
61
61
|
updatedAt?: string;
|
|
62
|
-
chatId
|
|
62
|
+
chatId: string;
|
|
63
63
|
};
|
|
64
64
|
export type UpdateHypothesisRequest = {
|
|
65
65
|
title?: string;
|
|
@@ -74,7 +74,7 @@ export type UpdateHypothesisResponse = {
|
|
|
74
74
|
createdAt?: string;
|
|
75
75
|
updatedBy?: string;
|
|
76
76
|
updatedAt?: string;
|
|
77
|
-
chatId
|
|
77
|
+
chatId: string;
|
|
78
78
|
};
|
|
79
79
|
export type GetDocumentResponse = {
|
|
80
80
|
id: string;
|
|
@@ -85,7 +85,7 @@ export type GetDocumentResponse = {
|
|
|
85
85
|
createdAt?: string;
|
|
86
86
|
updatedBy?: string;
|
|
87
87
|
updatedAt?: string;
|
|
88
|
-
chatId
|
|
88
|
+
chatId: string;
|
|
89
89
|
};
|
|
90
90
|
export type UpdateDocumentRequest = {
|
|
91
91
|
title?: string;
|
|
@@ -101,7 +101,7 @@ export type UpdateDocumentResponse = {
|
|
|
101
101
|
createdAt?: string;
|
|
102
102
|
updatedBy?: string;
|
|
103
103
|
updatedAt?: string;
|
|
104
|
-
chatId
|
|
104
|
+
chatId: string;
|
|
105
105
|
};
|
|
106
106
|
export type SortResponse = {
|
|
107
107
|
direction: string;
|
|
@@ -134,7 +134,7 @@ export type PageResponseGetOpportunityResponse = {
|
|
|
134
134
|
export type CreateOpportunityRequest = {
|
|
135
135
|
title?: string;
|
|
136
136
|
description?: string;
|
|
137
|
-
chatId
|
|
137
|
+
chatId: string;
|
|
138
138
|
};
|
|
139
139
|
export type CreateOpportunityResponse = {
|
|
140
140
|
id: string;
|
|
@@ -144,13 +144,24 @@ export type CreateOpportunityResponse = {
|
|
|
144
144
|
createdAt?: string;
|
|
145
145
|
updatedBy?: string;
|
|
146
146
|
updatedAt?: string;
|
|
147
|
-
chatId
|
|
147
|
+
chatId: string;
|
|
148
|
+
};
|
|
149
|
+
export type InsightResponseInsightData = {
|
|
150
|
+
id: string;
|
|
151
|
+
title: string;
|
|
152
|
+
summary: string;
|
|
153
|
+
badge: string;
|
|
154
|
+
chartUrl?: string;
|
|
155
|
+
};
|
|
156
|
+
export type InsightResponse = {
|
|
157
|
+
insights: InsightResponseInsightData[];
|
|
158
|
+
generatedAt: string;
|
|
148
159
|
};
|
|
149
160
|
export type CreateHypothesisRequest = {
|
|
150
161
|
opportunityId?: string;
|
|
151
162
|
title?: string;
|
|
152
163
|
description?: string;
|
|
153
|
-
chatId
|
|
164
|
+
chatId: string;
|
|
154
165
|
};
|
|
155
166
|
export type CreateHypothesisResponse = {
|
|
156
167
|
id: string;
|
|
@@ -161,14 +172,14 @@ export type CreateHypothesisResponse = {
|
|
|
161
172
|
createdAt?: string;
|
|
162
173
|
updatedBy?: string;
|
|
163
174
|
updatedAt?: string;
|
|
164
|
-
chatId
|
|
175
|
+
chatId: string;
|
|
165
176
|
};
|
|
166
177
|
export type CreateDocumentRequest = {
|
|
167
178
|
hypothesisId?: string;
|
|
168
179
|
title?: string;
|
|
169
180
|
description?: string;
|
|
170
181
|
content?: string;
|
|
171
|
-
chatId
|
|
182
|
+
chatId: string;
|
|
172
183
|
};
|
|
173
184
|
export type CreateDocumentResponse = {
|
|
174
185
|
id: string;
|
|
@@ -179,7 +190,35 @@ export type CreateDocumentResponse = {
|
|
|
179
190
|
createdAt?: string;
|
|
180
191
|
updatedBy?: string;
|
|
181
192
|
updatedAt?: string;
|
|
182
|
-
chatId
|
|
193
|
+
chatId: string;
|
|
194
|
+
};
|
|
195
|
+
export type AiChatRequest = {
|
|
196
|
+
prompt: string;
|
|
197
|
+
conversationId: string;
|
|
198
|
+
};
|
|
199
|
+
export type SseEmitter = {
|
|
200
|
+
timeout?: number;
|
|
201
|
+
};
|
|
202
|
+
export type AdminAgentCreateRequest = {
|
|
203
|
+
agentId: string;
|
|
204
|
+
name: string;
|
|
205
|
+
description: string;
|
|
206
|
+
schema: string;
|
|
207
|
+
};
|
|
208
|
+
export type AdminAgentResponse = {
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
description: string;
|
|
212
|
+
active: boolean;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt?: string;
|
|
215
|
+
};
|
|
216
|
+
export type GetInsightResponse = {
|
|
217
|
+
id: string;
|
|
218
|
+
title: string;
|
|
219
|
+
summary: string;
|
|
220
|
+
content: string;
|
|
221
|
+
chartUrl?: string;
|
|
183
222
|
};
|
|
184
223
|
export type GetArtifactResponse = {
|
|
185
224
|
"type": "OPPORTUNITY" | "HYPOTHESIS" | "DOCUMENT";
|
|
@@ -187,6 +226,9 @@ export type GetArtifactResponse = {
|
|
|
187
226
|
title: string;
|
|
188
227
|
description: string;
|
|
189
228
|
};
|
|
229
|
+
export type AdminHelloResponse = {
|
|
230
|
+
message: string;
|
|
231
|
+
};
|
|
190
232
|
/**
|
|
191
233
|
* Get specific Opportunity
|
|
192
234
|
*/
|
|
@@ -345,6 +387,30 @@ export function create({ createOpportunityRequest }: {
|
|
|
345
387
|
body: createOpportunityRequest
|
|
346
388
|
})));
|
|
347
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Fetch Insights
|
|
392
|
+
*/
|
|
393
|
+
export function fetchInsights(opts?: Oazapfts.RequestOpts) {
|
|
394
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
395
|
+
status: 200;
|
|
396
|
+
data: InsightResponse;
|
|
397
|
+
}>("/v2/insights", {
|
|
398
|
+
...opts,
|
|
399
|
+
method: "POST"
|
|
400
|
+
}));
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Refresh Insights
|
|
404
|
+
*/
|
|
405
|
+
export function refreshInsights(opts?: Oazapfts.RequestOpts) {
|
|
406
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
407
|
+
status: 200;
|
|
408
|
+
data: InsightResponse;
|
|
409
|
+
}>("/v2/insights/refresh", {
|
|
410
|
+
...opts,
|
|
411
|
+
method: "POST"
|
|
412
|
+
}));
|
|
413
|
+
}
|
|
348
414
|
/**
|
|
349
415
|
* Get all Hypotheses
|
|
350
416
|
*/
|
|
@@ -405,6 +471,79 @@ export function create2({ createDocumentRequest }: {
|
|
|
405
471
|
body: createDocumentRequest
|
|
406
472
|
})));
|
|
407
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Send a message to AI chat
|
|
476
|
+
*/
|
|
477
|
+
export function chat({ aiChatRequest }: {
|
|
478
|
+
aiChatRequest: AiChatRequest;
|
|
479
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
480
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
481
|
+
status: 200;
|
|
482
|
+
data: SseEmitter;
|
|
483
|
+
}>("/v2/ai/chat", oazapfts.json({
|
|
484
|
+
...opts,
|
|
485
|
+
method: "POST",
|
|
486
|
+
body: aiChatRequest
|
|
487
|
+
})));
|
|
488
|
+
}
|
|
489
|
+
export function createAgent({ adminAgentCreateRequest }: {
|
|
490
|
+
adminAgentCreateRequest: AdminAgentCreateRequest;
|
|
491
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
492
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
493
|
+
status: 200;
|
|
494
|
+
data: AdminAgentResponse;
|
|
495
|
+
}>("/v2/admin/agents", oazapfts.json({
|
|
496
|
+
...opts,
|
|
497
|
+
method: "POST",
|
|
498
|
+
body: adminAgentCreateRequest
|
|
499
|
+
})));
|
|
500
|
+
}
|
|
501
|
+
export function deactivateAgent({ schema, agentId }: {
|
|
502
|
+
schema: string;
|
|
503
|
+
agentId: string;
|
|
504
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
505
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}/deactivate`, {
|
|
506
|
+
...opts,
|
|
507
|
+
method: "PATCH"
|
|
508
|
+
}));
|
|
509
|
+
}
|
|
510
|
+
export function activateAgent({ schema, agentId }: {
|
|
511
|
+
schema: string;
|
|
512
|
+
agentId: string;
|
|
513
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
514
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
515
|
+
status: 200;
|
|
516
|
+
data: AdminAgentResponse;
|
|
517
|
+
}>(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}/activate`, {
|
|
518
|
+
...opts,
|
|
519
|
+
method: "PATCH"
|
|
520
|
+
}));
|
|
521
|
+
}
|
|
522
|
+
export function getAndCacheData({ key }: {
|
|
523
|
+
key: string;
|
|
524
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
525
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
526
|
+
status: 200;
|
|
527
|
+
data: {
|
|
528
|
+
[key: string]: object;
|
|
529
|
+
};
|
|
530
|
+
}>(`/v2/redis/hello-world-persist-redis/${encodeURIComponent(key)}`, {
|
|
531
|
+
...opts
|
|
532
|
+
}));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Get specific Insight
|
|
536
|
+
*/
|
|
537
|
+
export function getInsightById({ insightId }: {
|
|
538
|
+
insightId: string;
|
|
539
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
540
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
541
|
+
status: 200;
|
|
542
|
+
data: GetInsightResponse;
|
|
543
|
+
}>(`/v2/insights/${encodeURIComponent(insightId)}`, {
|
|
544
|
+
...opts
|
|
545
|
+
}));
|
|
546
|
+
}
|
|
408
547
|
/**
|
|
409
548
|
* Get specific Document content
|
|
410
549
|
*/
|
|
@@ -433,3 +572,30 @@ export function getAll2({ chatId }: {
|
|
|
433
572
|
...opts
|
|
434
573
|
}));
|
|
435
574
|
}
|
|
575
|
+
export function hello(opts?: Oazapfts.RequestOpts) {
|
|
576
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
577
|
+
status: 200;
|
|
578
|
+
data: AdminHelloResponse;
|
|
579
|
+
}>("/v2/admin/hello", {
|
|
580
|
+
...opts
|
|
581
|
+
}));
|
|
582
|
+
}
|
|
583
|
+
export function listAgents({ schema }: {
|
|
584
|
+
schema: string;
|
|
585
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
586
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
587
|
+
status: 200;
|
|
588
|
+
data: AdminAgentResponse[];
|
|
589
|
+
}>(`/v2/admin/agents/${encodeURIComponent(schema)}`, {
|
|
590
|
+
...opts
|
|
591
|
+
}));
|
|
592
|
+
}
|
|
593
|
+
export function deleteAgent({ schema, agentId }: {
|
|
594
|
+
schema: string;
|
|
595
|
+
agentId: string;
|
|
596
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
597
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}`, {
|
|
598
|
+
...opts,
|
|
599
|
+
method: "DELETE"
|
|
600
|
+
}));
|
|
601
|
+
}
|