@stack-spot/portal-network 1.0.0-dev.1777572635727 → 1.0.0-dev.1779478017535
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 +7 -1
- package/dist/api/content.d.ts +2 -1
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +2 -1
- package/dist/api/content.js.map +1 -1
- package/dist/api/insights.d.ts +18 -72
- package/dist/api/insights.d.ts.map +1 -1
- package/dist/api/insights.js +11 -22
- package/dist/api/insights.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +0 -1
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +3 -9
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/content.d.ts +1 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/insights.d.ts +8 -20
- package/dist/client/insights.d.ts.map +1 -1
- package/dist/client/insights.js +2 -11
- package/dist/client/insights.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -0
- package/src/api/content.ts +11 -9
- package/src/api/insights.ts +26 -102
- package/src/client/cloud-platform.ts +2 -7
- package/src/client/insights.ts +2 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { accountAssignmentControllerCreate, accountAssignmentControllerDelete, accountAssignmentControllerList, createBoundary, createBoundarySso, createCertificate, createCidr, createDnsRecord, createDnsZone, createFolder, createFoundation, createNetwork, createProject, createRole, createServiceControlPolicy, createVpn, defaults, deleteBoundary, deleteBoundarySso, deleteCertificate, deleteCidr, deleteDnsRecord, deleteDnsZone, deleteFolder, deleteNetwork, deleteProject, deleteRole, deleteVpn, fmsAssociateAdminAccountControllerCreate, fmsAssociateAdminAccountControllerDelete, fmsAssociateAdminAccountControllerGet, fmsAssociateAdminAccountControllerList, fmsPolicyControllerCreate, fmsPolicyControllerDelete, fmsPolicyControllerGet, fmsPolicyControllerList, getBoundary, getBoundarySso, getCertificate, getFolder, getFolderTags, getFoundation, getNetwork, getOidc, getProject, getRole, getServiceControlPolicy, getVpnConfiguration, identityStoreGroupControllerCreate, identityStoreGroupControllerDelete, identityStoreGroupControllerList, listBoundary, listBoundarySso, listCertificates, listCidr, listDnsRecord, listDnsZone, listFoundations, listNetwork, listProject, listRole, listServiceControlPolicy, listVpns, permissionSetControllerCreate, permissionSetControllerDelete, permissionSetControllerList, putBoundaryDescription, putBoundaryPolicyDocument, putBoundarySsoDescription, putBoundarySsoPolicyDocument, putBoundarySsoTags, putBoundaryTags, putCertificateTags, putCidrTags, putDnsZoneTags, putFolderTags, putFoundationSecProjectTags, putNetworkTags, putProjectTags, putRole, putServiceControlPolicy, putVpnTags, } from '../api/cloudPlatform.js';
|
|
1
|
+
import { accountAssignmentControllerCreate, accountAssignmentControllerDelete, accountAssignmentControllerList, createBoundary, createBoundarySso, createCertificate, createCidr, createDnsRecord, createDnsZone, createFolder, createFoundation, createNetwork, createProject, createRole, createServiceControlPolicy, createVpn, defaults, deleteBoundary, deleteBoundarySso, deleteCertificate, deleteCidr, deleteDnsRecord, deleteDnsZone, deleteFolder, deleteNetwork, deleteProject, deleteRole, deleteVpn, fmsAssociateAdminAccountControllerCreate, fmsAssociateAdminAccountControllerDelete, fmsAssociateAdminAccountControllerGet, fmsAssociateAdminAccountControllerList, fmsPolicyControllerCreate, fmsPolicyControllerDelete, fmsPolicyControllerGet, fmsPolicyControllerList, getBoundary, getBoundarySso, getCertificate, getFolder, getFolderTags, getFoundation, getNetwork, getProject, getRole, getServiceControlPolicy, getVpnConfiguration, identityStoreGroupControllerCreate, identityStoreGroupControllerDelete, identityStoreGroupControllerList, listBoundary, listBoundarySso, listCertificates, listCidr, listDnsRecord, listDnsZone, listFoundations, listNetwork, listProject, listRole, listServiceControlPolicy, listVpns, permissionSetControllerCreate, permissionSetControllerDelete, permissionSetControllerList, putBoundaryDescription, putBoundaryPolicyDocument, putBoundarySsoDescription, putBoundarySsoPolicyDocument, putBoundarySsoTags, putBoundaryTags, putCertificateTags, putCidrTags, putDnsZoneTags, putFolderTags, putFoundationSecProjectTags, putNetworkTags, putProjectTags, putRole, putServiceControlPolicy, putVpnTags, } from '../api/cloudPlatform.js';
|
|
3
2
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
|
-
import { scfDictionary } from '../error/dictionary/cloud-platform.js';
|
|
5
3
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
6
4
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
5
|
+
import { scfDictionary } from '../error/dictionary/cloud-platform.js';
|
|
6
|
+
import { getApiAddresses } from '../api-addresses.js';
|
|
7
7
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(getApiAddresses().cloudPlatform.url, defaults);
|
|
@@ -646,12 +646,6 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
646
646
|
writable: true,
|
|
647
647
|
value: this.query(removeAuthorizationParam(fmsAssociateAdminAccountControllerList))
|
|
648
648
|
});
|
|
649
|
-
Object.defineProperty(this, "getAuthUrl", {
|
|
650
|
-
enumerable: true,
|
|
651
|
-
configurable: true,
|
|
652
|
-
writable: true,
|
|
653
|
-
value: this.query(removeAuthorizationParam(getOidc))
|
|
654
|
-
});
|
|
655
649
|
/**
|
|
656
650
|
* Create a Identity Store Group
|
|
657
651
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAC/B,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,a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C;IACxC;;OAEG;IACH,YAAY;;kHAAwD;IACpE;;OAEG;IACH,YAAY;;;gDAA8B;IAC1C;;OAEG;IACH,YAAY;;gBAA8B;IAC1C;;OAEG;IACH,sBAAsB;;;gDAAkC;IACxD;;OAEG;IACH,oBAAoB;;;gBAA8B;IAClD;;OAEG;IACH,yBAAyB;;;gBAA8B;IACvD;;OAEG;IACH,4BAA4B;;2DAA6B;IACzD;;OAEG;IACH,UAAU;;iBAA4B;IACtC;;OAEG;IACH,gBAAgB;;;gBAAkC;IAClD;;OAEG;IACH,kBAAkB,yDAA0B;IAC5C;;;OAGG;IACH,iBAAiB;;;;;4DAAkC;IACnD;;OAEG;IACH,gBAAgB;;;;;gEAAoC;IACpD;;OAEG;IACH,eAAe;;;;;;yDAA+B;IAC9C;;OAEG;IACH,eAAe;;;;;;4DAAgC;IAG/C;;OAEG;IACH,mBAAmB;;;;;;;;;;6EASjB;IAEF;;KAEC;IACD,kBAAkB;;;;;4DAAmC;IAErD;;KAEC;IACD,uBAAuB;;;;;;mEAAoC;IAE3D;;;OAGG;IACH,wBAAwB;;;;yEAA0C;IAElE;;OAEG;IACH,wBAAwB;;;;;;;wEAAyC;IAEjE;;OAEG;IACH,8BAA8B;;;;;0EAA2C;IAEzE;;OAEG;IACH,gBAAgB;;;;;wEAA2F;IAC3G;;OAEG;IACH,WAAW;;;;;uDAA6B;IACxC;;OAEG;IACH,QAAQ;;;;;qDAA0B;IAClC;;OAEG;IACH,gBAAgB;;;;;;kEAAkC;IAClD;;OAEG;IACH,yBAAyB
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAmCL,eAAe,EAsDf,QAAQ,EAST,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,E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H,wBAAwB;;;gBAA0C;IAClE;;OAEG;IACH,wBAAwB;;gBAA0C;IAClE;;OAEG;IACH,oBAAoB;;;iEAAsC;IAC1D;;OAEG;IACH,2BAA2B;;qEAA6C;IACxE;;OAEG;IACH,cAAc;;;yDAAyB;IACvC;;OAEG;IACH,cAAc;;;;;;;0DAAiC;CAChD;AAED,eAAO,MAAM,aAAa,eAAsB,CAAA"}
|
|
@@ -9,9 +9,9 @@ declare class InsightsClient extends ReactQueryNetworkClient {
|
|
|
9
9
|
*/
|
|
10
10
|
downloadAccountData: import("../network/types.js").QueryObject<{
|
|
11
11
|
accountSlug: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
startDate: string;
|
|
13
|
+
endDate: string;
|
|
14
|
+
dataset: string;
|
|
15
15
|
stackspotCustomerIp?: string;
|
|
16
16
|
}, string>;
|
|
17
17
|
/**
|
|
@@ -19,25 +19,13 @@ declare class InsightsClient extends ReactQueryNetworkClient {
|
|
|
19
19
|
*/
|
|
20
20
|
getDashboardAccount: import("../network/types.js").QueryObject<{
|
|
21
21
|
accountSlug: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
stackspotCustomerIp?: string;
|
|
26
|
-
}, import("../api/insights.js").DashboardReadResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* List cockpit executions by agent
|
|
29
|
-
*/
|
|
30
|
-
getCockpitExecutionsByAgent: import("../network/types.js").QueryObject<{
|
|
31
|
-
agentId: string;
|
|
32
|
-
date?: string;
|
|
33
|
-
conversationId?: string;
|
|
34
|
-
status?: "SUCCESS" | "ERROR";
|
|
35
|
-
id?: string;
|
|
22
|
+
startDate?: string;
|
|
23
|
+
endDate?: string;
|
|
24
|
+
panels?: string[];
|
|
36
25
|
page?: number;
|
|
37
26
|
size?: number;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, import("../api/insights.js").CockpitPageResponse>;
|
|
27
|
+
stackspotCustomerIp?: string;
|
|
28
|
+
}, import("../api/insights.js").DashboardReadResponse>;
|
|
41
29
|
}
|
|
42
30
|
export declare const insightsClient: InsightsClient;
|
|
43
31
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights.d.ts","sourceRoot":"","sources":["../../src/client/insights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"insights.d.ts","sourceRoot":"","sources":["../../src/client/insights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,cAAe,SAAQ,uBAAuB;;IAMlD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,mBAAmB;;;;;;eAAkC;IACrD;;OAEG;IACH,mBAAmB;;;;;;;;wDAAkC;CACtD;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
|
package/dist/client/insights.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaults, downloadAccountData, getCockpitExecutions, getDashboardAccount } from '../api/insights.js';
|
|
1
|
+
import { defaults, downloadAccountData, getDashboardAccount } from '../api/insights.js';
|
|
3
2
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
3
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
5
4
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
5
|
+
import { getApiAddresses } from '../api-addresses.js';
|
|
6
6
|
class InsightsClient extends ReactQueryNetworkClient {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(getApiAddresses().insights.url, defaults);
|
|
@@ -24,15 +24,6 @@ class InsightsClient extends ReactQueryNetworkClient {
|
|
|
24
24
|
writable: true,
|
|
25
25
|
value: this.query(getDashboardAccount)
|
|
26
26
|
});
|
|
27
|
-
/**
|
|
28
|
-
* List cockpit executions by agent
|
|
29
|
-
*/
|
|
30
|
-
Object.defineProperty(this, "getCockpitExecutionsByAgent", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: this.query(getCockpitExecutions)
|
|
35
|
-
});
|
|
36
27
|
}
|
|
37
28
|
buildStackSpotError(error) {
|
|
38
29
|
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights.js","sourceRoot":"","sources":["../../src/client/insights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"insights.js","sourceRoot":"","sources":["../../src/client/insights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,cAAe,SAAQ,uBAAuB;IAElD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAMjD;;WAEG;QACH;;;;mBAAsB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC;WAAA;QACrD;;WAEG;QACH;;;;mBAAsB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC;WAAA;IAZrD,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrF,CAAC;CASF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAA"}
|
package/package.json
CHANGED
package/readme.md
CHANGED
package/src/api/content.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query"
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query"
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
11
|
baseUrl: "https://content-content-api.stg.stackspot.com",
|
|
@@ -3920,10 +3920,11 @@ export function removeStackWorkspace({ stackVersionId, workspaceId, accountId }:
|
|
|
3920
3920
|
/**
|
|
3921
3921
|
* List all workflows versions from a stack version
|
|
3922
3922
|
*/
|
|
3923
|
-
export function listWorkflows({ stackVersionId, xWorkspaceId, displayName, $type, target, pageable }: {
|
|
3923
|
+
export function listWorkflows({ stackVersionId, xWorkspaceId, displayName, workflowSlug, $type, target, pageable }: {
|
|
3924
3924
|
stackVersionId: string;
|
|
3925
3925
|
xWorkspaceId?: string;
|
|
3926
3926
|
displayName?: string;
|
|
3927
|
+
workflowSlug?: string;
|
|
3927
3928
|
$type?: string;
|
|
3928
3929
|
target?: string;
|
|
3929
3930
|
pageable: Pageable;
|
|
@@ -3934,21 +3935,22 @@ export function listWorkflows({ stackVersionId, xWorkspaceId, displayName, $type
|
|
|
3934
3935
|
} | {
|
|
3935
3936
|
status: 422;
|
|
3936
3937
|
data: {
|
|
3937
|
-
code
|
|
3938
|
-
status
|
|
3939
|
-
details
|
|
3938
|
+
code?: string;
|
|
3939
|
+
status?: number;
|
|
3940
|
+
details?: string;
|
|
3940
3941
|
validationDetails?: ValidationDetails[];
|
|
3941
3942
|
};
|
|
3942
3943
|
} | {
|
|
3943
3944
|
status: 500;
|
|
3944
3945
|
data: {
|
|
3945
|
-
code
|
|
3946
|
-
status
|
|
3947
|
-
details
|
|
3946
|
+
code?: string;
|
|
3947
|
+
status?: number;
|
|
3948
|
+
details?: string;
|
|
3948
3949
|
validationDetails?: ValidationDetails[];
|
|
3949
3950
|
};
|
|
3950
3951
|
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workflows${QS.query(QS.explode({
|
|
3951
3952
|
displayName,
|
|
3953
|
+
workflowSlug,
|
|
3952
3954
|
"type": $type,
|
|
3953
3955
|
target,
|
|
3954
3956
|
pageable
|
package/src/api/insights.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Insights API
|
|
3
|
-
* v1.
|
|
3
|
+
* v1.0.0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -19,7 +19,7 @@ export type NewPanelRequest = {
|
|
|
19
19
|
};
|
|
20
20
|
export type IdResponse = {
|
|
21
21
|
/** Id response. */
|
|
22
|
-
id
|
|
22
|
+
id?: number;
|
|
23
23
|
};
|
|
24
24
|
export type ValidationDetails = {
|
|
25
25
|
code: string;
|
|
@@ -45,16 +45,16 @@ export type NewDatasetRequest = {
|
|
|
45
45
|
};
|
|
46
46
|
export type Panel = {
|
|
47
47
|
/** Panel id. */
|
|
48
|
-
id
|
|
48
|
+
id?: number;
|
|
49
49
|
/** The name of the dataset used to generate this panel. */
|
|
50
|
-
datasetName
|
|
50
|
+
datasetName?: string;
|
|
51
51
|
/** The type of the panel. */
|
|
52
|
-
panelType
|
|
52
|
+
panelType?: string;
|
|
53
53
|
/** Order to display this panel. */
|
|
54
54
|
order?: number;
|
|
55
55
|
/** Data for this panel. */
|
|
56
56
|
data?: {
|
|
57
|
-
[key: string]:
|
|
57
|
+
[key: string]: object;
|
|
58
58
|
}[];
|
|
59
59
|
/** The page number returned when paging through panel data. */
|
|
60
60
|
pageNumber?: number;
|
|
@@ -69,48 +69,6 @@ export type DashboardReadResponse = {
|
|
|
69
69
|
/** Panels in a dashboard. */
|
|
70
70
|
panels?: Panel[];
|
|
71
71
|
};
|
|
72
|
-
export type ExecutionTrace = {
|
|
73
|
-
/** Agent execution steps and tool calls. */
|
|
74
|
-
agentInfo: {
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}[];
|
|
77
|
-
/** Knowledge sources used during execution. */
|
|
78
|
-
knowledgeSourcesUsed: string[];
|
|
79
|
-
};
|
|
80
|
-
export type CockpitExecutionResponse = {
|
|
81
|
-
/** Execution unique identifier. */
|
|
82
|
-
id: string;
|
|
83
|
-
/** Conversation unique identifier. */
|
|
84
|
-
conversationId: string;
|
|
85
|
-
/** Agent unique identifier. */
|
|
86
|
-
agentId: string;
|
|
87
|
-
/** Execution date and time. */
|
|
88
|
-
executionDate: string;
|
|
89
|
-
/** User input prompt. */
|
|
90
|
-
input: string;
|
|
91
|
-
/** Agent output/response. */
|
|
92
|
-
output: string;
|
|
93
|
-
/** Total execution time in seconds. */
|
|
94
|
-
executionTime: string;
|
|
95
|
-
/** Number of output tokens generated. */
|
|
96
|
-
outputTokens: number;
|
|
97
|
-
/** Execution status. */
|
|
98
|
-
status: "SUCCESS" | "ERROR";
|
|
99
|
-
/** Execution trace with detailed information. */
|
|
100
|
-
trace: ExecutionTrace;
|
|
101
|
-
};
|
|
102
|
-
export type CockpitPageResponse = {
|
|
103
|
-
/** List of executions in the current page. */
|
|
104
|
-
content: CockpitExecutionResponse[];
|
|
105
|
-
/** Current page number (1-indexed). */
|
|
106
|
-
pageNumber: number;
|
|
107
|
-
/** Number of items per page. */
|
|
108
|
-
pageSize: number;
|
|
109
|
-
/** Total number of pages. */
|
|
110
|
-
totalPages: number;
|
|
111
|
-
/** Total number of elements across all pages. */
|
|
112
|
-
totalElements: number;
|
|
113
|
-
};
|
|
114
72
|
/**
|
|
115
73
|
* Create Panel
|
|
116
74
|
*/
|
|
@@ -211,7 +169,7 @@ export function downloadStudioData({ accountSlug, studioSlug, startDate, endDate
|
|
|
211
169
|
studioSlug: string;
|
|
212
170
|
startDate: string;
|
|
213
171
|
endDate: string;
|
|
214
|
-
dataset
|
|
172
|
+
dataset: string;
|
|
215
173
|
stackspotCustomerIp?: string;
|
|
216
174
|
}, opts?: Oazapfts.RequestOpts) {
|
|
217
175
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -242,7 +200,7 @@ export function streamingAccountData({ accountSlug, startDate, endDate, dataset
|
|
|
242
200
|
accountSlug: string;
|
|
243
201
|
startDate: string;
|
|
244
202
|
endDate: string;
|
|
245
|
-
dataset
|
|
203
|
+
dataset: string;
|
|
246
204
|
}, opts?: Oazapfts.RequestOpts) {
|
|
247
205
|
return oazapfts.ok(oazapfts.fetchBlob<{
|
|
248
206
|
status: 200;
|
|
@@ -264,11 +222,11 @@ export function streamingAccountData({ accountSlug, startDate, endDate, dataset
|
|
|
264
222
|
/**
|
|
265
223
|
* Download Account Data
|
|
266
224
|
*/
|
|
267
|
-
export function downloadAccountData({ accountSlug,
|
|
225
|
+
export function downloadAccountData({ accountSlug, startDate, endDate, dataset, stackspotCustomerIp }: {
|
|
268
226
|
accountSlug: string;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
227
|
+
startDate: string;
|
|
228
|
+
endDate: string;
|
|
229
|
+
dataset: string;
|
|
272
230
|
stackspotCustomerIp?: string;
|
|
273
231
|
}, opts?: Oazapfts.RequestOpts) {
|
|
274
232
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -281,7 +239,9 @@ export function downloadAccountData({ accountSlug, allParams, stackspotCustomerI
|
|
|
281
239
|
status: 500;
|
|
282
240
|
data: ErrorResponse;
|
|
283
241
|
}>(`/v1/assets/account/${encodeURIComponent(accountSlug)}/csv${QS.query(QS.explode({
|
|
284
|
-
|
|
242
|
+
startDate,
|
|
243
|
+
endDate,
|
|
244
|
+
dataset
|
|
285
245
|
}))}`, {
|
|
286
246
|
...opts,
|
|
287
247
|
method: "POST",
|
|
@@ -293,11 +253,13 @@ export function downloadAccountData({ accountSlug, allParams, stackspotCustomerI
|
|
|
293
253
|
/**
|
|
294
254
|
* Get Dashboard Account
|
|
295
255
|
*/
|
|
296
|
-
export function getDashboardAccount({ accountSlug,
|
|
256
|
+
export function getDashboardAccount({ accountSlug, startDate, endDate, panels, page, size, stackspotCustomerIp }: {
|
|
297
257
|
accountSlug: string;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
258
|
+
startDate?: string;
|
|
259
|
+
endDate?: string;
|
|
260
|
+
panels?: string[];
|
|
261
|
+
page?: number;
|
|
262
|
+
size?: number;
|
|
301
263
|
stackspotCustomerIp?: string;
|
|
302
264
|
}, opts?: Oazapfts.RequestOpts) {
|
|
303
265
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -310,7 +272,11 @@ export function getDashboardAccount({ accountSlug, allParams, stackspotCustomerI
|
|
|
310
272
|
status: 500;
|
|
311
273
|
data: ErrorResponse;
|
|
312
274
|
}>(`/v1/dashboards/account/${encodeURIComponent(accountSlug)}${QS.query(QS.explode({
|
|
313
|
-
|
|
275
|
+
startDate,
|
|
276
|
+
endDate,
|
|
277
|
+
panels,
|
|
278
|
+
page,
|
|
279
|
+
size
|
|
314
280
|
}))}`, {
|
|
315
281
|
...opts,
|
|
316
282
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -342,45 +308,3 @@ export function getDashboardStudio({ accountSlug, studioSlug, stackspotCustomerI
|
|
|
342
308
|
})
|
|
343
309
|
}));
|
|
344
310
|
}
|
|
345
|
-
/**
|
|
346
|
-
* List cockpit executions
|
|
347
|
-
*/
|
|
348
|
-
export function getCockpitExecutions({ agentId, date, conversationId, status, id, page, size, sortBy, sortDirection }: {
|
|
349
|
-
agentId: string;
|
|
350
|
-
date?: string;
|
|
351
|
-
conversationId?: string;
|
|
352
|
-
status?: "SUCCESS" | "ERROR";
|
|
353
|
-
id?: string;
|
|
354
|
-
page?: number;
|
|
355
|
-
size?: number;
|
|
356
|
-
sortBy?: "executionDate" | "executionTime" | "outputTokens";
|
|
357
|
-
sortDirection?: "DESC" | "ASC";
|
|
358
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
359
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
360
|
-
status: 200;
|
|
361
|
-
data: CockpitPageResponse;
|
|
362
|
-
} | {
|
|
363
|
-
status: 400;
|
|
364
|
-
data: ErrorResponse;
|
|
365
|
-
} | {
|
|
366
|
-
status: 403;
|
|
367
|
-
data: ErrorResponse;
|
|
368
|
-
} | {
|
|
369
|
-
status: 404;
|
|
370
|
-
data: ErrorResponse;
|
|
371
|
-
} | {
|
|
372
|
-
status: 500;
|
|
373
|
-
data: ErrorResponse;
|
|
374
|
-
}>(`/v1/cockpit/agent/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
375
|
-
date,
|
|
376
|
-
conversationId,
|
|
377
|
-
status,
|
|
378
|
-
id,
|
|
379
|
-
page,
|
|
380
|
-
size,
|
|
381
|
-
sortBy,
|
|
382
|
-
sortDirection
|
|
383
|
-
}))}`, {
|
|
384
|
-
...opts
|
|
385
|
-
}));
|
|
386
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { getApiAddresses } from '../api-addresses'
|
|
3
2
|
import {
|
|
4
3
|
accountAssignmentControllerCreate,
|
|
5
4
|
accountAssignmentControllerDelete,
|
|
@@ -44,7 +43,6 @@ import {
|
|
|
44
43
|
getFolderTags,
|
|
45
44
|
getFoundation,
|
|
46
45
|
getNetwork,
|
|
47
|
-
getOidc,
|
|
48
46
|
getProject,
|
|
49
47
|
getRole,
|
|
50
48
|
getServiceControlPolicy,
|
|
@@ -85,10 +83,11 @@ import {
|
|
|
85
83
|
putVpnTags,
|
|
86
84
|
} from '../api/cloudPlatform'
|
|
87
85
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
88
|
-
import { scfDictionary } from '../error/dictionary/cloud-platform'
|
|
89
86
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
90
87
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
91
88
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
89
|
+
import { scfDictionary } from '../error/dictionary/cloud-platform'
|
|
90
|
+
import { getApiAddresses } from '../api-addresses'
|
|
92
91
|
|
|
93
92
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
94
93
|
constructor() {
|
|
@@ -390,8 +389,6 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
390
389
|
*/
|
|
391
390
|
listFirewallManagerAssociateAdminAccount =
|
|
392
391
|
this.query(removeAuthorizationParam(fmsAssociateAdminAccountControllerList))
|
|
393
|
-
|
|
394
|
-
getAuthUrl = this.query(removeAuthorizationParam(getOidc))
|
|
395
392
|
/**
|
|
396
393
|
* Create a Identity Store Group
|
|
397
394
|
*/
|
|
@@ -439,6 +436,4 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
439
436
|
this.mutation(removeAuthorizationParam(accountAssignmentControllerDelete))
|
|
440
437
|
}
|
|
441
438
|
|
|
442
|
-
|
|
443
|
-
|
|
444
439
|
export const cloudPlatformClient = new CloudPlatformClient()
|
package/src/client/insights.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import {
|
|
3
|
-
import { defaults, downloadAccountData, getCockpitExecutions, getDashboardAccount } from '../api/insights'
|
|
2
|
+
import { defaults, downloadAccountData, getDashboardAccount } from '../api/insights'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { baseDictionary } from '../error/dictionary/base'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class InsightsClient extends ReactQueryNetworkClient {
|
|
10
10
|
|
|
@@ -23,11 +23,6 @@ class InsightsClient extends ReactQueryNetworkClient {
|
|
|
23
23
|
* Get data for analysis in account
|
|
24
24
|
*/
|
|
25
25
|
getDashboardAccount = this.query(getDashboardAccount)
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* List cockpit executions by agent
|
|
29
|
-
*/
|
|
30
|
-
getCockpitExecutionsByAgent = this.query(getCockpitExecutions)
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
export const insightsClient = new InsightsClient()
|