@stack-spot/portal-network 1.0.0-dev.1773068412144 → 1.0.0-dev.1773261546384
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-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +0 -1
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +0 -8
- package/dist/apis.json +0 -8
- package/dist/client/content.d.ts +11 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +10 -1
- package/dist/client/content.js.map +1 -1
- package/dist/client/types.d.ts +0 -48
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-manager.d.ts +12 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +19 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api-addresses.ts +0 -1
- package/src/apis-itau.json +0 -8
- package/src/apis.json +0 -8
- package/src/client/content.ts +5 -0
- package/src/client/types.ts +9 -66
- package/src/client/workspace-manager.ts +10 -0
- package/src/index.ts +0 -1
- package/dist/api/cloudServices.d.ts +0 -614
- package/dist/api/cloudServices.d.ts.map +0 -1
- package/dist/api/cloudServices.js +0 -355
- package/dist/api/cloudServices.js.map +0 -1
- package/dist/client/cloud-services.d.ts +0 -113
- package/dist/client/cloud-services.d.ts.map +0 -1
- package/dist/client/cloud-services.js +0 -146
- package/dist/client/cloud-services.js.map +0 -1
- package/src/api/cloudServices.ts +0 -1445
- package/src/client/cloud-services.ts +0 -94
package/src/client/types.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatu
|
|
|
3
3
|
import { AgentVisibilityLevelEnum, HttpMethod, ListAgentCoreResponse, VisibilityLevelEnum } from '../api/agent-tools'
|
|
4
4
|
import { ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse, QuickCommandResponse, QuickCommandStepResult, SourceKnowledgeSource, SourceProjectFile3, SourceStackAi } from '../api/ai'
|
|
5
5
|
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
|
|
6
|
-
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
|
|
7
6
|
import { ChatRequest } from '../api/genAiInference'
|
|
8
7
|
import { Action } from '../api/workspace-ai'
|
|
9
8
|
import { ActivityResponse, FullInputContextResponse, InputConditionResponse, InputValuesContextResponse, PaginatedActivityResponse, PluginForAppCreationV2Response, PluginInputValuesInConsolidatedContextResponse, ValueByEnvResponse, WorkflowForCreationResponse } from '../api/workspaceManager'
|
|
@@ -51,62 +50,6 @@ export interface UpdateSCMRequest {
|
|
|
51
50
|
},
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
export type AllocationCostType = Parameters<typeof getAllocationCostFilters>[0]['$type']
|
|
55
|
-
|
|
56
|
-
export interface CostAllocationVariables {
|
|
57
|
-
allocationCostRequest: Omit<AllocationCostRequest, 'stackSpotAccountId' | 'billingAccountId'> & {
|
|
58
|
-
stackSpotAccountId: string,
|
|
59
|
-
billingAccountId: string[],
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface ServiceNameResponse {
|
|
64
|
-
type: 'ServiceNameResponse',
|
|
65
|
-
chargePeriod?: ChargePeriod,
|
|
66
|
-
/** Represents an offering that can be purchased from a cloud provider. */
|
|
67
|
-
serviceName?: string,
|
|
68
|
-
/** Effective cost post discounts and amortizations. */
|
|
69
|
-
effectiveCost?: number,
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface TagResponse {
|
|
73
|
-
type: 'TagResponse',
|
|
74
|
-
chargePeriod?: ChargePeriod,
|
|
75
|
-
/** Tag key: Identifies a grouping attribute or category for resources or constructs. */
|
|
76
|
-
tagKey?: string,
|
|
77
|
-
/** Tag value: Specifies the group or category detail that the resource or construct belongs to. */
|
|
78
|
-
tagValue?: string,
|
|
79
|
-
/** Effective cost post discounts and amortizations. */
|
|
80
|
-
effectiveCost?: number,
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface UsageUnitResponse {
|
|
84
|
-
type: 'UsageUnitResponse',
|
|
85
|
-
chargePeriod?: ChargePeriod,
|
|
86
|
-
/** Represents an offering that can be purchased from a cloud provider. */
|
|
87
|
-
serviceName?: string,
|
|
88
|
-
/** Represents the volume of a given resource or service used or purchased based on the Usage Unit. */
|
|
89
|
-
usageQuantity?: number,
|
|
90
|
-
/** Defines the unit of measurement for the resource or service. */
|
|
91
|
-
usageUnit?: string,
|
|
92
|
-
/** Effective cost post discounts and amortizations. */
|
|
93
|
-
effectiveCost?: number,
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type CostAllocationData = ServiceNameResponse | TagResponse | UsageUnitResponse
|
|
97
|
-
|
|
98
|
-
export interface CostAllocationResult extends Omit<AllocationCostResponse, 'data'> {
|
|
99
|
-
data: CostAllocationData[],
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface FixedServiceResource extends Omit<ServiceResource, 'id'> {
|
|
103
|
-
id: string,
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface FixedManagedService extends Omit<ManagedService, 'resources'> {
|
|
107
|
-
resources: FixedServiceResource[],
|
|
108
|
-
}
|
|
109
|
-
|
|
110
53
|
export interface FixedConnectAccountRequestV2 extends ConnectAccountRequestV2 {
|
|
111
54
|
credential?: {
|
|
112
55
|
iamRole?: string,
|
|
@@ -360,11 +303,11 @@ export interface ToolCallsAgentInfo extends BaseAgentInfo {
|
|
|
360
303
|
export type AgentInfo = GenericAgentInfo | PlanningAgentInfo | StepAgentInfo | ToolAgentInfo | ToolCallsAgentInfo
|
|
361
304
|
|
|
362
305
|
export type ChatResponse = {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
306
|
+
message: string,
|
|
307
|
+
cross_account_source: SourceKnowledgeSource[],
|
|
308
|
+
source: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[],
|
|
309
|
+
message_id: string | null,
|
|
310
|
+
stop_reason: 'stop',
|
|
368
311
|
};
|
|
369
312
|
|
|
370
313
|
export interface FixedChatResponse extends ChatResponse {
|
|
@@ -449,7 +392,7 @@ interface BaseQCContext {
|
|
|
449
392
|
code?: string,
|
|
450
393
|
executionId: string,
|
|
451
394
|
signal: AbortSignal,
|
|
452
|
-
isRemote?: boolean,
|
|
395
|
+
isRemote?: boolean,
|
|
453
396
|
headers?: Record<string, string>,
|
|
454
397
|
conversation_id?: string,
|
|
455
398
|
}
|
|
@@ -462,8 +405,8 @@ export interface QCContextExecution extends BaseQCContext {
|
|
|
462
405
|
qc: QuickCommandResponse,
|
|
463
406
|
}
|
|
464
407
|
|
|
465
|
-
export interface QCProgressProps{
|
|
466
|
-
update?: (index: number) => void,
|
|
467
|
-
remove?: () => void,
|
|
408
|
+
export interface QCProgressProps {
|
|
409
|
+
update?: (index: number) => void,
|
|
410
|
+
remove?: () => void,
|
|
468
411
|
onStepChange?: (stepResult: any) => void,
|
|
469
412
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
accountApplicationControllergetAccountApplicationsFilters,
|
|
7
7
|
accountSharedInfraControllergetAccountSharedInfraFilters,
|
|
8
8
|
accountSharedInfraControllergetAccountSharedInfraPage,
|
|
9
|
+
accountStackControllerlistStacksByAccountWithWorkflow,
|
|
9
10
|
accountStackControllerlistVersionsWithContext,
|
|
10
11
|
accountVariableControllercreate,
|
|
11
12
|
accountVariableControllerdelete,
|
|
@@ -65,6 +66,7 @@ import {
|
|
|
65
66
|
updateInfrastructureControllerremoveInfraPluginsAndCreatePullRequestBySharedInfra,
|
|
66
67
|
updateInfrastructureControllerupdateInfraPluginsAndCreatePullRequestByApplication,
|
|
67
68
|
updateInfrastructureControllerupdateInfraPluginsAndCreatePullRequestBySharedInfra,
|
|
69
|
+
workflowAccountControllercreateAccountWorkflow,
|
|
68
70
|
workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
|
|
69
71
|
workspaceControllerdelete,
|
|
70
72
|
workspaceControllergetWorkspaces,
|
|
@@ -577,6 +579,14 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
577
579
|
* Gets available connection interfaces from a workspace
|
|
578
580
|
*/
|
|
579
581
|
availableConnectionInterfaces = this.query(availableConnectionInterfaceControllergetAvailableConnectionInterfaces)
|
|
582
|
+
/**
|
|
583
|
+
* List stacks from account
|
|
584
|
+
*/
|
|
585
|
+
listStacksFromAccount = this.query(accountStackControllerlistStacksByAccountWithWorkflow)
|
|
586
|
+
/**
|
|
587
|
+
* Create workflow in an account
|
|
588
|
+
*/
|
|
589
|
+
createWorkflowAccount = this.mutation(workflowAccountControllercreateAccountWorkflow)
|
|
580
590
|
}
|
|
581
591
|
|
|
582
592
|
export const workspaceManagerClient = new WorkspaceManagerClient()
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,6 @@ export { apiManagementClient } from './client/api-management'
|
|
|
9
9
|
export { cloudAccountClient } from './client/cloud-account'
|
|
10
10
|
export { cloudPlatformClient } from './client/cloud-platform'
|
|
11
11
|
export { cloudRuntimesClient } from './client/cloud-runtimes'
|
|
12
|
-
export { cloudServicesClient } from './client/cloud-services'
|
|
13
12
|
export { codeShiftClient } from './client/code-shift'
|
|
14
13
|
export { contentClient } from './client/content'
|
|
15
14
|
export { dataIntegrationClient } from './client/data-integration'
|