@kora-platform/cli 0.7.0-rc1 → 0.8.0-rc1
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/README.md +21 -0
- package/dist/api-client.d.ts +250 -93
- package/dist/api-client.js +187 -163
- package/dist/api-types.d.ts +280 -162
- package/dist/artifact-api-client.d.ts +28 -1
- package/dist/artifact-api-client.js +33 -0
- package/dist/artifact-commands.d.ts +5 -0
- package/dist/artifact-commands.js +172 -1
- package/dist/audit-commands.d.ts +12 -0
- package/dist/audit-commands.js +74 -0
- package/dist/auth-commands.d.ts +1 -0
- package/dist/auth-commands.js +116 -29
- package/dist/command-builders.d.ts +1 -0
- package/dist/command-builders.js +1 -0
- package/dist/command-groups.js +10 -12
- package/dist/command-registry.js +548 -243
- package/dist/commands.js +652 -602
- package/dist/environment-context.d.ts +9 -0
- package/dist/environment-context.js +32 -0
- package/dist/{integration-commands.d.ts → extension-commands.d.ts} +3 -2
- package/dist/extension-commands.js +446 -0
- package/dist/files.d.ts +33 -0
- package/dist/files.js +247 -12
- package/dist/format.d.ts +5 -0
- package/dist/format.js +78 -1
- package/dist/runner.js +14 -5
- package/dist/schema-registry-data.d.ts +272 -569
- package/dist/schema-registry-data.js +307 -700
- package/dist/session.d.ts +1 -0
- package/dist/transport.d.ts +10 -0
- package/dist/transport.js +22 -0
- package/dist/types.d.ts +2 -1
- package/dist/workspace-source.d.ts +1 -0
- package/dist/workspace-source.js +13 -0
- package/package.json +2 -1
- package/dist/integration-api-client.d.ts +0 -29
- package/dist/integration-api-client.js +0 -50
- package/dist/integration-commands.js +0 -208
package/README.md
CHANGED
|
@@ -14,4 +14,25 @@ Run:
|
|
|
14
14
|
kora --help
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
Sign up against a local or self-managed instance with local auth enabled:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
kora auth signup --base-url http://localhost:3000
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then create an organization:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
kora org create --name "JB Demo" --slug jb-demo
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Existing users can log in the same way:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
kora auth login --base-url http://localhost:3000
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`kora auth signup` creates local email/password users only. On OIDC-only
|
|
36
|
+
instances, it prints the SSO login URL instead of creating a local account.
|
|
37
|
+
|
|
17
38
|
This package is proprietary Kora software. See `LICENSE.md`.
|
package/dist/api-client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbortRuntimeRunResult,
|
|
1
|
+
import type { AbortRuntimeRunResult, AgentUsageReport, ApiKeyRecord, AuditEventListResult, AuditEventRecord, AuditOutcome, AuthoringOrganizationManagementContext, CapabilityEditorRecord, ChatHealth, ChatSessionRecord, ChatSessionSummary, CreateReleaseResult, CompleteRuntimeTaskResult, DeletedOrganizationDetail, DeletedOrganizationSummary, EnvironmentDeploymentRecord, EnvironmentDetailRecord, EnvironmentRecord, BuiltInExtensionRecord, ExtensionInstallDetailRecord, ExtensionInstallRecord, ExtensionInstallUpdatePlan, ExtensionPackageExportEnvelope, ExtensionPackageFileInput, ExtensionPackageRecord, ExtensionPackageRevisionRecord, ExtensionPackageValidationResult, ExtensionPermissions, InviteRecord, MembershipRecord, OperationsEditorRecord, WorkflowNodeTestResult, OrganizationRecord, OrganizationWithRoleRecord, OrgSecretRecord, OrgSettingsRecord, ProcessDefinitionDetail, ProcessDefinitionRecord, ProcessDefinitionSummary, ReleaseSourceSnapshotRecord, ReleaseValidationResult, ReleaseSummaryRecord, RuntimeControlActivityFocusType, RuntimeControlActivityReadResult, RuntimeControlOverviewRecord, RuntimeControlRunDetailRecord, RuntimeControlRunRecord, RuntimeControlRunStateRecord, RuntimeControlRunStepRecord, RuntimeControlStartProcessResult, RuntimeControlTaskRecord, RuntimeVariableRecord, WorkflowDependencySummary, WorkflowInspectionContext } from "./api-types.js";
|
|
2
2
|
import type { CliSessionState } from "./transport.js";
|
|
3
3
|
import { createPlatformTransport } from "./transport.js";
|
|
4
4
|
export interface PlatformApiClientInput {
|
|
@@ -13,6 +13,12 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
13
13
|
password: string;
|
|
14
14
|
}) => Promise<CliSessionState>;
|
|
15
15
|
refreshSession: (session: CliSessionState) => Promise<CliSessionState>;
|
|
16
|
+
signup: (credentials: {
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
email: string;
|
|
19
|
+
name: string;
|
|
20
|
+
password: string;
|
|
21
|
+
}) => Promise<CliSessionState>;
|
|
16
22
|
getMe(session: CliSessionState): Promise<{
|
|
17
23
|
user: {
|
|
18
24
|
email: string;
|
|
@@ -53,22 +59,24 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
53
59
|
getOrgSettings(session: CliSessionState, orgId: string): Promise<{
|
|
54
60
|
settings: OrgSettingsRecord;
|
|
55
61
|
}>;
|
|
56
|
-
|
|
62
|
+
testWorkflowNode(session: CliSessionState, orgId: string, workflowName: string, nodeId: string, inputData: {
|
|
63
|
+
environment?: string;
|
|
57
64
|
files: Array<{
|
|
58
65
|
content: string;
|
|
59
66
|
path: string;
|
|
60
67
|
}>;
|
|
68
|
+
input?: Record<string, unknown>;
|
|
61
69
|
}): Promise<{
|
|
62
|
-
|
|
63
|
-
}>;
|
|
64
|
-
getProjectWorkspace(session: CliSessionState, orgId: string, releaseId?: string): Promise<{
|
|
65
|
-
project: ProjectWorkspaceSummary;
|
|
70
|
+
test: WorkflowNodeTestResult;
|
|
66
71
|
}>;
|
|
67
72
|
resetOrganizationProject(session: CliSessionState, orgId: string): Promise<void>;
|
|
68
|
-
listRuntimeVariables(session: CliSessionState, orgId: string
|
|
73
|
+
listRuntimeVariables(session: CliSessionState, orgId: string, inputData?: {
|
|
74
|
+
environment?: string;
|
|
75
|
+
}): Promise<{
|
|
69
76
|
variables: RuntimeVariableRecord[];
|
|
70
77
|
}>;
|
|
71
78
|
replaceRuntimeVariables(session: CliSessionState, orgId: string, inputData: {
|
|
79
|
+
environment: string;
|
|
72
80
|
variables: Array<{
|
|
73
81
|
name: string;
|
|
74
82
|
value: string;
|
|
@@ -78,23 +86,144 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
78
86
|
}>;
|
|
79
87
|
importRuntimeVariables(session: CliSessionState, orgId: string, inputData: {
|
|
80
88
|
content: string;
|
|
89
|
+
environment: string;
|
|
81
90
|
fileName?: string | null;
|
|
82
91
|
}): Promise<{
|
|
83
92
|
importedCount: number;
|
|
84
93
|
variables: RuntimeVariableRecord[];
|
|
85
94
|
}>;
|
|
86
|
-
listOrgSecrets(session: CliSessionState, orgId: string
|
|
95
|
+
listOrgSecrets(session: CliSessionState, orgId: string, inputData?: {
|
|
96
|
+
environment?: string;
|
|
97
|
+
}): Promise<{
|
|
87
98
|
secrets: OrgSecretRecord[];
|
|
88
99
|
}>;
|
|
89
100
|
upsertOrgSecret(session: CliSessionState, orgId: string, inputData: {
|
|
101
|
+
environment: string;
|
|
90
102
|
name: string;
|
|
91
103
|
value: string;
|
|
92
104
|
}): Promise<{
|
|
93
105
|
secret: OrgSecretRecord;
|
|
94
106
|
}>;
|
|
95
|
-
deleteOrgSecret(session: CliSessionState, orgId: string, name: string
|
|
107
|
+
deleteOrgSecret(session: CliSessionState, orgId: string, name: string, inputData: {
|
|
108
|
+
environment: string;
|
|
109
|
+
}): Promise<{
|
|
96
110
|
deleted: boolean;
|
|
97
111
|
}>;
|
|
112
|
+
validateExtensionPackage(session: CliSessionState, orgId: string, inputData: {
|
|
113
|
+
files: ExtensionPackageFileInput[];
|
|
114
|
+
}): Promise<ExtensionPackageValidationResult>;
|
|
115
|
+
validateExtensionPackageArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
116
|
+
subdir?: string;
|
|
117
|
+
}): Promise<ExtensionPackageValidationResult>;
|
|
118
|
+
publishExtensionPackage(session: CliSessionState, orgId: string, inputData: {
|
|
119
|
+
files: ExtensionPackageFileInput[];
|
|
120
|
+
}): Promise<{
|
|
121
|
+
package: ExtensionPackageRecord;
|
|
122
|
+
revision: ExtensionPackageRevisionRecord;
|
|
123
|
+
}>;
|
|
124
|
+
publishExtensionPackageArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
125
|
+
subdir?: string;
|
|
126
|
+
}): Promise<{
|
|
127
|
+
package: ExtensionPackageRecord;
|
|
128
|
+
revision: ExtensionPackageRevisionRecord;
|
|
129
|
+
}>;
|
|
130
|
+
exportExtensionPackage(session: CliSessionState, orgId: string, inputData: {
|
|
131
|
+
environment?: string;
|
|
132
|
+
install: string;
|
|
133
|
+
} | {
|
|
134
|
+
package: string;
|
|
135
|
+
latest: true;
|
|
136
|
+
} | {
|
|
137
|
+
revision: string;
|
|
138
|
+
}): Promise<{
|
|
139
|
+
exported: ExtensionPackageExportEnvelope;
|
|
140
|
+
}>;
|
|
141
|
+
exportExtensionPackageArchive(session: CliSessionState, orgId: string, inputData: {
|
|
142
|
+
environment?: string;
|
|
143
|
+
install: string;
|
|
144
|
+
} | {
|
|
145
|
+
package: string;
|
|
146
|
+
latest: true;
|
|
147
|
+
} | {
|
|
148
|
+
revision: string;
|
|
149
|
+
}): Promise<{
|
|
150
|
+
body: Uint8Array;
|
|
151
|
+
headers: Headers;
|
|
152
|
+
status: number;
|
|
153
|
+
}>;
|
|
154
|
+
installExtension(session: CliSessionState, orgId: string, inputData: {
|
|
155
|
+
environment: string;
|
|
156
|
+
grantedPermissions?: ExtensionPermissions;
|
|
157
|
+
packageRevisionId: string;
|
|
158
|
+
slug: string;
|
|
159
|
+
}): Promise<{
|
|
160
|
+
install: ExtensionInstallRecord;
|
|
161
|
+
}>;
|
|
162
|
+
listBuiltInExtensions(session: CliSessionState, orgId: string, inputData?: {
|
|
163
|
+
environment?: string;
|
|
164
|
+
}): Promise<{
|
|
165
|
+
builtIns: BuiltInExtensionRecord[];
|
|
166
|
+
}>;
|
|
167
|
+
installBuiltInExtension(session: CliSessionState, orgId: string, builtInSlug: string, inputData: {
|
|
168
|
+
environment: string;
|
|
169
|
+
grantedPermissions?: ExtensionPermissions;
|
|
170
|
+
slug?: string;
|
|
171
|
+
}): Promise<{
|
|
172
|
+
install: ExtensionInstallRecord;
|
|
173
|
+
}>;
|
|
174
|
+
listExtensionInstalls(session: CliSessionState, orgId: string, inputData?: {
|
|
175
|
+
environment?: string;
|
|
176
|
+
}): Promise<{
|
|
177
|
+
installs: ExtensionInstallRecord[];
|
|
178
|
+
}>;
|
|
179
|
+
getExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
180
|
+
environment: string;
|
|
181
|
+
}): Promise<{
|
|
182
|
+
install: ExtensionInstallRecord;
|
|
183
|
+
}>;
|
|
184
|
+
getExtensionInstallDetail(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
185
|
+
environment: string;
|
|
186
|
+
}): Promise<{
|
|
187
|
+
detail: ExtensionInstallDetailRecord;
|
|
188
|
+
}>;
|
|
189
|
+
grantExtensionPermissions(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
190
|
+
basePackageRevisionId?: string;
|
|
191
|
+
baseUpdatedAt?: string;
|
|
192
|
+
environment: string;
|
|
193
|
+
grantedPermissions: ExtensionPermissions;
|
|
194
|
+
}): Promise<{
|
|
195
|
+
install: ExtensionInstallRecord;
|
|
196
|
+
}>;
|
|
197
|
+
planExtensionInstallUpdate(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
198
|
+
basePackageRevisionId?: string;
|
|
199
|
+
baseUpdatedAt?: string;
|
|
200
|
+
environment: string;
|
|
201
|
+
packageRevisionId: string;
|
|
202
|
+
}): Promise<{
|
|
203
|
+
plan: ExtensionInstallUpdatePlan;
|
|
204
|
+
}>;
|
|
205
|
+
updateExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
206
|
+
basePackageRevisionId?: string;
|
|
207
|
+
baseUpdatedAt?: string;
|
|
208
|
+
environment: string;
|
|
209
|
+
packageRevisionId: string;
|
|
210
|
+
}): Promise<{
|
|
211
|
+
install: ExtensionInstallRecord;
|
|
212
|
+
plan: ExtensionInstallUpdatePlan;
|
|
213
|
+
}>;
|
|
214
|
+
disableExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
215
|
+
environment: string;
|
|
216
|
+
}): Promise<{
|
|
217
|
+
install: ExtensionInstallRecord;
|
|
218
|
+
}>;
|
|
219
|
+
enableExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
220
|
+
environment: string;
|
|
221
|
+
}): Promise<{
|
|
222
|
+
install: ExtensionInstallRecord;
|
|
223
|
+
}>;
|
|
224
|
+
deleteExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
225
|
+
environment: string;
|
|
226
|
+
}): Promise<void>;
|
|
98
227
|
listWorkflows(session: CliSessionState, orgId: string, releaseId?: string): Promise<{
|
|
99
228
|
processes: ProcessDefinitionSummary[];
|
|
100
229
|
}>;
|
|
@@ -111,6 +240,7 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
111
240
|
context: WorkflowInspectionContext;
|
|
112
241
|
}>;
|
|
113
242
|
startWorkflow(session: CliSessionState, orgId: string, name: string, inputData?: {
|
|
243
|
+
environment?: string;
|
|
114
244
|
idempotencyKey?: string;
|
|
115
245
|
inputData?: Record<string, unknown>;
|
|
116
246
|
startEvent?: {
|
|
@@ -126,55 +256,6 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
126
256
|
getCapabilityEditor(session: CliSessionState, orgId: string, name: string): Promise<{
|
|
127
257
|
editor: CapabilityEditorRecord;
|
|
128
258
|
}>;
|
|
129
|
-
getConnectorsEditor(session: CliSessionState, orgId: string): Promise<{
|
|
130
|
-
editor: ConnectorsEditorRecord;
|
|
131
|
-
}>;
|
|
132
|
-
getMcpServersEditor(session: CliSessionState, orgId: string): Promise<{
|
|
133
|
-
editor: McpServersEditorRecord;
|
|
134
|
-
}>;
|
|
135
|
-
listOrgMcpServers(session: CliSessionState, orgId: string): Promise<{
|
|
136
|
-
servers: OrgMcpServerRecord[];
|
|
137
|
-
}>;
|
|
138
|
-
createOrgMcpServer(session: CliSessionState, orgId: string, inputData: CreateOrgMcpServerInput): Promise<{
|
|
139
|
-
server: OrgMcpServerRecord;
|
|
140
|
-
}>;
|
|
141
|
-
getOrgMcpServer(session: CliSessionState, orgId: string, serverRef: string): Promise<OrgMcpServerDetailRecord>;
|
|
142
|
-
updateOrgMcpServer(session: CliSessionState, orgId: string, serverRef: string, inputData: UpdateOrgMcpServerInput): Promise<{
|
|
143
|
-
server: OrgMcpServerRecord;
|
|
144
|
-
}>;
|
|
145
|
-
deleteOrgMcpServer(session: CliSessionState, orgId: string, serverRef: string): Promise<void>;
|
|
146
|
-
testOrgMcpServer(session: CliSessionState, orgId: string, serverRef: string): Promise<OrgMcpServerTestResult>;
|
|
147
|
-
discoverOrgMcpServerTools(session: CliSessionState, orgId: string, serverRef: string): Promise<OrgMcpServerDiscoveryResult>;
|
|
148
|
-
connectOrgMcpServerOAuth(session: CliSessionState, orgId: string, serverRef: string): Promise<OrgMcpServerOAuthConnectResult>;
|
|
149
|
-
disconnectOrgMcpServerOAuth(session: CliSessionState, orgId: string, serverRef: string): Promise<OrgMcpServerOAuthActionResult>;
|
|
150
|
-
getOrgMcpServerOAuthSession(session: CliSessionState, orgId: string, serverRef: string, oauthSessionId: string): Promise<{
|
|
151
|
-
session: OrgMcpServerOAuthSessionRecord;
|
|
152
|
-
}>;
|
|
153
|
-
getOrgMcpServerOAuthStatus(session: CliSessionState, orgId: string, serverRef: string): Promise<{
|
|
154
|
-
oauth: OrgMcpServerOAuthStatusRecord;
|
|
155
|
-
}>;
|
|
156
|
-
listOrgSkillPackages(session: CliSessionState, orgId: string): Promise<{
|
|
157
|
-
skills: OrgSkillPackageRecord[];
|
|
158
|
-
}>;
|
|
159
|
-
createOrgSkillPackage(session: CliSessionState, orgId: string, inputData: CreateOrgSkillPackageInput): Promise<{
|
|
160
|
-
skill: OrgSkillPackageRecord;
|
|
161
|
-
}>;
|
|
162
|
-
getOrgSkillPackage(session: CliSessionState, orgId: string, skillRef: string): Promise<{
|
|
163
|
-
files: OrgSkillPackageDetailRecord["files"];
|
|
164
|
-
revision: OrgSkillPackageRevisionRecord | null;
|
|
165
|
-
skill: OrgSkillPackageRecord;
|
|
166
|
-
}>;
|
|
167
|
-
updateOrgSkillPackage(session: CliSessionState, orgId: string, skillRef: string, inputData: UpdateOrgSkillPackageInput): Promise<{
|
|
168
|
-
skill: OrgSkillPackageRecord;
|
|
169
|
-
}>;
|
|
170
|
-
deleteOrgSkillPackage(session: CliSessionState, orgId: string, skillRef: string): Promise<void>;
|
|
171
|
-
uploadOrgSkillPackageRevision(session: CliSessionState, orgId: string, skillRef: string, inputData: UploadOrgSkillPackageRevisionInput): Promise<{
|
|
172
|
-
revision: OrgSkillPackageRevisionRecord;
|
|
173
|
-
}>;
|
|
174
|
-
getOrgSkillPackageRevision(session: CliSessionState, orgId: string, skillRef: string, revision: number): Promise<{
|
|
175
|
-
files: OrgSkillPackageDetailRecord["files"];
|
|
176
|
-
revision: OrgSkillPackageRevisionRecord;
|
|
177
|
-
}>;
|
|
178
259
|
getOperationsEditor(session: CliSessionState, orgId: string): Promise<{
|
|
179
260
|
editor: OperationsEditorRecord;
|
|
180
261
|
}>;
|
|
@@ -182,6 +263,7 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
182
263
|
overview: RuntimeControlOverviewRecord;
|
|
183
264
|
}>;
|
|
184
265
|
getActivity(session: CliSessionState, orgId: string, filters: {
|
|
266
|
+
environment?: string;
|
|
185
267
|
focusType?: RuntimeControlActivityFocusType;
|
|
186
268
|
focusValue?: string;
|
|
187
269
|
from?: string;
|
|
@@ -196,7 +278,22 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
196
278
|
workflows: string[];
|
|
197
279
|
};
|
|
198
280
|
}>;
|
|
281
|
+
listAuditEvents(session: CliSessionState, orgId: string, filters: {
|
|
282
|
+
action?: string;
|
|
283
|
+
actorId?: string;
|
|
284
|
+
category?: string;
|
|
285
|
+
from?: string;
|
|
286
|
+
limit?: number;
|
|
287
|
+
outcome?: AuditOutcome;
|
|
288
|
+
resourceId?: string;
|
|
289
|
+
resourceType?: string;
|
|
290
|
+
to?: string;
|
|
291
|
+
}): Promise<AuditEventListResult>;
|
|
292
|
+
getAuditEvent(session: CliSessionState, orgId: string, eventId: string): Promise<{
|
|
293
|
+
event: AuditEventRecord;
|
|
294
|
+
}>;
|
|
199
295
|
listRuns(session: CliSessionState, orgId: string, filters: {
|
|
296
|
+
environment?: string;
|
|
200
297
|
limit?: number;
|
|
201
298
|
status?: string;
|
|
202
299
|
}): Promise<{
|
|
@@ -238,11 +335,50 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
238
335
|
outputData: Record<string, unknown>;
|
|
239
336
|
workflowId: string;
|
|
240
337
|
}): Promise<CompleteRuntimeTaskResult>;
|
|
241
|
-
|
|
242
|
-
|
|
338
|
+
listEnvironmentDeployments(session: CliSessionState, orgId: string, filters?: {
|
|
339
|
+
environment?: string;
|
|
340
|
+
limit?: number;
|
|
341
|
+
}): Promise<{
|
|
342
|
+
deployments: EnvironmentDeploymentRecord[];
|
|
343
|
+
}>;
|
|
344
|
+
getEnvironmentDeployment(session: CliSessionState, orgId: string, deploymentId: string, filters?: {
|
|
345
|
+
environment?: string;
|
|
346
|
+
}): Promise<{
|
|
347
|
+
deployment: EnvironmentDeploymentRecord;
|
|
348
|
+
}>;
|
|
349
|
+
listEnvironments(session: CliSessionState, orgId: string): Promise<{
|
|
350
|
+
environments: EnvironmentDetailRecord[];
|
|
351
|
+
}>;
|
|
352
|
+
getEnvironment(session: CliSessionState, orgId: string, environment: string): Promise<{
|
|
353
|
+
environment: EnvironmentDetailRecord;
|
|
354
|
+
}>;
|
|
355
|
+
createEnvironment(session: CliSessionState, orgId: string, inputData: {
|
|
356
|
+
copyFromEnvironmentId?: string;
|
|
357
|
+
key: string;
|
|
358
|
+
name?: string;
|
|
359
|
+
}): Promise<{
|
|
360
|
+
environment: EnvironmentRecord;
|
|
361
|
+
}>;
|
|
362
|
+
renameEnvironment(session: CliSessionState, orgId: string, environment: string, inputData: {
|
|
363
|
+
name: string;
|
|
364
|
+
}): Promise<{
|
|
365
|
+
environment: EnvironmentRecord;
|
|
366
|
+
}>;
|
|
367
|
+
archiveEnvironment(session: CliSessionState, orgId: string, environment: string): Promise<{
|
|
368
|
+
environment: EnvironmentRecord;
|
|
369
|
+
}>;
|
|
370
|
+
deployEnvironment(session: CliSessionState, orgId: string, environment: string, inputData: {
|
|
371
|
+
policy?: "drain" | "terminate-running";
|
|
372
|
+
releaseId: string;
|
|
373
|
+
}): Promise<{
|
|
374
|
+
deployment: EnvironmentDeploymentRecord;
|
|
375
|
+
}>;
|
|
376
|
+
undeployEnvironment(session: CliSessionState, orgId: string, environment: string, inputData?: {
|
|
377
|
+
policy?: "drain" | "terminate-running";
|
|
378
|
+
}): Promise<{
|
|
379
|
+
deployment: EnvironmentDeploymentRecord;
|
|
243
380
|
}>;
|
|
244
381
|
listReleases(session: CliSessionState, orgId: string, filters: {
|
|
245
|
-
includeDraft?: boolean;
|
|
246
382
|
limit?: number;
|
|
247
383
|
}): Promise<{
|
|
248
384
|
releases: ReleaseSummaryRecord[];
|
|
@@ -250,23 +386,29 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
250
386
|
getRelease(session: CliSessionState, orgId: string, releaseId: string): Promise<{
|
|
251
387
|
release: ReleaseSummaryRecord;
|
|
252
388
|
}>;
|
|
253
|
-
|
|
254
|
-
|
|
389
|
+
getReleaseSource(session: CliSessionState, orgId: string, releaseId: string): Promise<{
|
|
390
|
+
source: ReleaseSourceSnapshotRecord;
|
|
255
391
|
}>;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
392
|
+
createRelease(session: CliSessionState, orgId: string, inputData: {
|
|
393
|
+
files: Array<{
|
|
394
|
+
content: string;
|
|
395
|
+
path: string;
|
|
396
|
+
}>;
|
|
397
|
+
label?: string;
|
|
398
|
+
}): Promise<{
|
|
399
|
+
created: CreateReleaseResult;
|
|
264
400
|
}>;
|
|
265
|
-
|
|
266
|
-
|
|
401
|
+
createReleaseArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
402
|
+
label?: string;
|
|
403
|
+
subdir?: string;
|
|
404
|
+
}): Promise<{
|
|
405
|
+
created: CreateReleaseResult;
|
|
267
406
|
}>;
|
|
268
|
-
|
|
269
|
-
|
|
407
|
+
validateRelease(session: CliSessionState, orgId: string, inputData: {
|
|
408
|
+
environment?: string;
|
|
409
|
+
releaseId: string;
|
|
410
|
+
}): Promise<{
|
|
411
|
+
validation: ReleaseValidationResult;
|
|
270
412
|
}>;
|
|
271
413
|
listMembers(session: CliSessionState, orgId: string, filters: {
|
|
272
414
|
limit?: number;
|
|
@@ -311,6 +453,13 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
311
453
|
getChatHealth(session: CliSessionState, orgId: string): Promise<{
|
|
312
454
|
health: ChatHealth;
|
|
313
455
|
}>;
|
|
456
|
+
getAgentUsage(session: CliSessionState, orgId: string, inputData?: {
|
|
457
|
+
from?: string;
|
|
458
|
+
limit?: number;
|
|
459
|
+
to?: string;
|
|
460
|
+
}): Promise<{
|
|
461
|
+
usage: AgentUsageReport;
|
|
462
|
+
}>;
|
|
314
463
|
listChatSessions(session: CliSessionState, orgId: string): Promise<{
|
|
315
464
|
sessions: ChatSessionSummary[];
|
|
316
465
|
}>;
|
|
@@ -319,24 +468,6 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
319
468
|
session: ChatSessionRecord;
|
|
320
469
|
}>;
|
|
321
470
|
deleteChatSession(session: CliSessionState, orgId: string, sessionId: string): Promise<void>;
|
|
322
|
-
getChatChanges(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
323
|
-
changes: ChatSessionChangesRecord;
|
|
324
|
-
}>;
|
|
325
|
-
getChatValidation(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
326
|
-
validation: ChatSessionValidationRecord;
|
|
327
|
-
}>;
|
|
328
|
-
getChatDraft(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
329
|
-
draft: ChatSessionDraftRecord;
|
|
330
|
-
}>;
|
|
331
|
-
applyChatDraft(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
332
|
-
applied: ChatSessionDraftApplyRecord;
|
|
333
|
-
}>;
|
|
334
|
-
refreshChatDraft(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
335
|
-
refreshed: ChatSessionDraftRefreshRecord;
|
|
336
|
-
}>;
|
|
337
|
-
getChatWorkspaceState(session: CliSessionState, orgId: string, sessionId: string): Promise<{
|
|
338
|
-
workspaceState: ChatSessionWorkspaceStateRecord;
|
|
339
|
-
}>;
|
|
340
471
|
listDeletedOrganizations(session: CliSessionState): Promise<{
|
|
341
472
|
organizations: DeletedOrganizationSummary[];
|
|
342
473
|
}>;
|
|
@@ -360,6 +491,23 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
360
491
|
}): Promise<{
|
|
361
492
|
artifacts: import("./api-types.js").RuntimeArtifactRecord[];
|
|
362
493
|
}>;
|
|
494
|
+
listArtifacts(session: CliSessionState, orgId: string, filters: {
|
|
495
|
+
associationKind?: string;
|
|
496
|
+
associationRole?: string;
|
|
497
|
+
createdAfter?: string;
|
|
498
|
+
createdBefore?: string;
|
|
499
|
+
lifecycleStatus?: import("./api-types.js").RuntimeArtifactLifecycleFilter;
|
|
500
|
+
limit?: number;
|
|
501
|
+
mediaType?: string;
|
|
502
|
+
nodeId?: string;
|
|
503
|
+
producerType?: string;
|
|
504
|
+
runId?: string;
|
|
505
|
+
workflowNodeTestId?: string;
|
|
506
|
+
workflowId?: string;
|
|
507
|
+
}): Promise<{
|
|
508
|
+
artifacts: import("./api-types.js").RuntimeArtifactInventoryRecord[];
|
|
509
|
+
}>;
|
|
510
|
+
getArtifactDetail(session: CliSessionState, orgId: string, artifactId: string): Promise<import("./api-types.js").RuntimeArtifactDetailRecord>;
|
|
363
511
|
downloadArtifact(session: CliSessionState, orgId: string, artifactId: string, options?: {
|
|
364
512
|
createMaxBytesError?: (input: {
|
|
365
513
|
actualBytes: number;
|
|
@@ -373,4 +521,13 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
373
521
|
fileName: string | null;
|
|
374
522
|
sizeBytes: number;
|
|
375
523
|
}>;
|
|
524
|
+
archiveArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
525
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
526
|
+
}>;
|
|
527
|
+
restoreArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
528
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
529
|
+
}>;
|
|
530
|
+
purgeArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
531
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
532
|
+
}>;
|
|
376
533
|
};
|