@kora-platform/cli 0.7.0-rc1 → 0.8.0-rc10
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 +274 -106
- package/dist/api-client.js +192 -167
- package/dist/api-types.d.ts +301 -163
- 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 +177 -4
- 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 +195 -32
- package/dist/cli-errors.d.ts +7 -1
- package/dist/cli-errors.js +12 -1
- package/dist/command-builders.d.ts +1 -0
- package/dist/command-builders.js +1 -0
- package/dist/command-flags.d.ts +1 -0
- package/dist/command-flags.js +7 -0
- package/dist/command-groups.js +10 -12
- package/dist/command-registry.js +595 -277
- package/dist/commands.js +728 -636
- package/dist/environment-context.d.ts +9 -0
- package/dist/environment-context.js +32 -0
- package/dist/error-code.d.ts +2 -0
- package/dist/error-code.js +9 -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 +44 -4
- package/dist/files.js +349 -26
- package/dist/format.d.ts +6 -0
- package/dist/format.js +83 -1
- package/dist/runner.js +28 -10
- package/dist/schema-registry-data.d.ts +318 -571
- package/dist/schema-registry-data.js +356 -698
- package/dist/session-store.js +80 -0
- package/dist/session.d.ts +1 -0
- package/dist/transport-refresh.d.ts +10 -0
- package/dist/transport-refresh.js +51 -0
- package/dist/transport.d.ts +31 -0
- package/dist/transport.js +102 -36
- 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/dotenv.d.ts +0 -1
- package/dist/dotenv.js +0 -26
- 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,11 +1,22 @@
|
|
|
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
|
+
export type ReleaseSnapshotSelectorInput = {
|
|
5
|
+
environment: string;
|
|
6
|
+
releaseId?: never;
|
|
7
|
+
} | {
|
|
8
|
+
environment?: never;
|
|
9
|
+
releaseId: string;
|
|
10
|
+
};
|
|
4
11
|
export interface PlatformApiClientInput {
|
|
5
12
|
now?: () => number;
|
|
6
13
|
sessionStore: Parameters<typeof createPlatformTransport>[0]["sessionStore"];
|
|
7
14
|
}
|
|
8
15
|
export declare function createPlatformApiClient(input: PlatformApiClientInput): {
|
|
16
|
+
claimDeviceLogin: (claim: {
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
deviceCode: string;
|
|
19
|
+
}) => Promise<import("./transport.js").CliDeviceLoginClaim>;
|
|
9
20
|
getAuthSettings: (baseUrl: string) => Promise<import("./transport.js").CliAuthSettings>;
|
|
10
21
|
login: (credentials: {
|
|
11
22
|
baseUrl: string;
|
|
@@ -13,6 +24,13 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
13
24
|
password: string;
|
|
14
25
|
}) => Promise<CliSessionState>;
|
|
15
26
|
refreshSession: (session: CliSessionState) => Promise<CliSessionState>;
|
|
27
|
+
signup: (credentials: {
|
|
28
|
+
baseUrl: string;
|
|
29
|
+
email: string;
|
|
30
|
+
name: string;
|
|
31
|
+
password: string;
|
|
32
|
+
}) => Promise<CliSessionState>;
|
|
33
|
+
startDeviceLogin: (baseUrl: string) => Promise<import("./transport.js").CliDeviceLoginStart>;
|
|
16
34
|
getMe(session: CliSessionState): Promise<{
|
|
17
35
|
user: {
|
|
18
36
|
email: string;
|
|
@@ -53,22 +71,24 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
53
71
|
getOrgSettings(session: CliSessionState, orgId: string): Promise<{
|
|
54
72
|
settings: OrgSettingsRecord;
|
|
55
73
|
}>;
|
|
56
|
-
|
|
74
|
+
testWorkflowNode(session: CliSessionState, orgId: string, workflowName: string, nodeId: string, inputData: {
|
|
75
|
+
environment?: string;
|
|
57
76
|
files: Array<{
|
|
58
77
|
content: string;
|
|
59
78
|
path: string;
|
|
60
79
|
}>;
|
|
80
|
+
input?: Record<string, unknown>;
|
|
61
81
|
}): Promise<{
|
|
62
|
-
|
|
63
|
-
}>;
|
|
64
|
-
getProjectWorkspace(session: CliSessionState, orgId: string, releaseId?: string): Promise<{
|
|
65
|
-
project: ProjectWorkspaceSummary;
|
|
82
|
+
test: WorkflowNodeTestResult;
|
|
66
83
|
}>;
|
|
67
84
|
resetOrganizationProject(session: CliSessionState, orgId: string): Promise<void>;
|
|
68
|
-
listRuntimeVariables(session: CliSessionState, orgId: string
|
|
85
|
+
listRuntimeVariables(session: CliSessionState, orgId: string, inputData?: {
|
|
86
|
+
environment?: string;
|
|
87
|
+
}): Promise<{
|
|
69
88
|
variables: RuntimeVariableRecord[];
|
|
70
89
|
}>;
|
|
71
90
|
replaceRuntimeVariables(session: CliSessionState, orgId: string, inputData: {
|
|
91
|
+
environment: string;
|
|
72
92
|
variables: Array<{
|
|
73
93
|
name: string;
|
|
74
94
|
value: string;
|
|
@@ -76,41 +96,166 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
76
96
|
}): Promise<{
|
|
77
97
|
variables: RuntimeVariableRecord[];
|
|
78
98
|
}>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
upsertRuntimeVariable(session: CliSessionState, orgId: string, inputData: {
|
|
100
|
+
environment: string;
|
|
101
|
+
name: string;
|
|
102
|
+
value: string;
|
|
82
103
|
}): Promise<{
|
|
83
|
-
|
|
84
|
-
variables: RuntimeVariableRecord[];
|
|
104
|
+
variable: RuntimeVariableRecord;
|
|
85
105
|
}>;
|
|
86
|
-
listOrgSecrets(session: CliSessionState, orgId: string
|
|
106
|
+
listOrgSecrets(session: CliSessionState, orgId: string, inputData?: {
|
|
107
|
+
environment?: string;
|
|
108
|
+
}): Promise<{
|
|
87
109
|
secrets: OrgSecretRecord[];
|
|
88
110
|
}>;
|
|
89
111
|
upsertOrgSecret(session: CliSessionState, orgId: string, inputData: {
|
|
112
|
+
environment: string;
|
|
90
113
|
name: string;
|
|
91
114
|
value: string;
|
|
92
115
|
}): Promise<{
|
|
93
116
|
secret: OrgSecretRecord;
|
|
94
117
|
}>;
|
|
95
|
-
deleteOrgSecret(session: CliSessionState, orgId: string, name: string
|
|
118
|
+
deleteOrgSecret(session: CliSessionState, orgId: string, name: string, inputData: {
|
|
119
|
+
environment: string;
|
|
120
|
+
}): Promise<{
|
|
96
121
|
deleted: boolean;
|
|
97
122
|
}>;
|
|
98
|
-
|
|
123
|
+
validateExtensionPackage(session: CliSessionState, orgId: string, inputData: {
|
|
124
|
+
files: ExtensionPackageFileInput[];
|
|
125
|
+
}): Promise<ExtensionPackageValidationResult>;
|
|
126
|
+
validateExtensionPackageArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
127
|
+
subdir?: string;
|
|
128
|
+
}): Promise<ExtensionPackageValidationResult>;
|
|
129
|
+
publishExtensionPackage(session: CliSessionState, orgId: string, inputData: {
|
|
130
|
+
files: ExtensionPackageFileInput[];
|
|
131
|
+
}): Promise<{
|
|
132
|
+
package: ExtensionPackageRecord;
|
|
133
|
+
revision: ExtensionPackageRevisionRecord;
|
|
134
|
+
}>;
|
|
135
|
+
publishExtensionPackageArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
136
|
+
subdir?: string;
|
|
137
|
+
}): Promise<{
|
|
138
|
+
package: ExtensionPackageRecord;
|
|
139
|
+
revision: ExtensionPackageRevisionRecord;
|
|
140
|
+
}>;
|
|
141
|
+
exportExtensionPackage(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
|
+
exported: ExtensionPackageExportEnvelope;
|
|
151
|
+
}>;
|
|
152
|
+
exportExtensionPackageArchive(session: CliSessionState, orgId: string, inputData: {
|
|
153
|
+
environment?: string;
|
|
154
|
+
install: string;
|
|
155
|
+
} | {
|
|
156
|
+
package: string;
|
|
157
|
+
latest: true;
|
|
158
|
+
} | {
|
|
159
|
+
revision: string;
|
|
160
|
+
}): Promise<{
|
|
161
|
+
body: Uint8Array;
|
|
162
|
+
headers: Headers;
|
|
163
|
+
status: number;
|
|
164
|
+
}>;
|
|
165
|
+
installExtension(session: CliSessionState, orgId: string, inputData: {
|
|
166
|
+
environment: string;
|
|
167
|
+
grantedPermissions?: ExtensionPermissions;
|
|
168
|
+
packageRevisionId: string;
|
|
169
|
+
slug: string;
|
|
170
|
+
}): Promise<{
|
|
171
|
+
install: ExtensionInstallRecord;
|
|
172
|
+
}>;
|
|
173
|
+
listBuiltInExtensions(session: CliSessionState, orgId: string, inputData?: {
|
|
174
|
+
environment?: string;
|
|
175
|
+
}): Promise<{
|
|
176
|
+
builtIns: BuiltInExtensionRecord[];
|
|
177
|
+
}>;
|
|
178
|
+
installBuiltInExtension(session: CliSessionState, orgId: string, builtInSlug: string, inputData: {
|
|
179
|
+
environment: string;
|
|
180
|
+
grantedPermissions?: ExtensionPermissions;
|
|
181
|
+
slug?: string;
|
|
182
|
+
}): Promise<{
|
|
183
|
+
install: ExtensionInstallRecord;
|
|
184
|
+
}>;
|
|
185
|
+
listExtensionInstalls(session: CliSessionState, orgId: string, inputData?: {
|
|
186
|
+
environment?: string;
|
|
187
|
+
}): Promise<{
|
|
188
|
+
installs: ExtensionInstallRecord[];
|
|
189
|
+
}>;
|
|
190
|
+
getExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
191
|
+
environment: string;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
install: ExtensionInstallRecord;
|
|
194
|
+
}>;
|
|
195
|
+
getExtensionInstallDetail(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
196
|
+
environment: string;
|
|
197
|
+
}): Promise<{
|
|
198
|
+
detail: ExtensionInstallDetailRecord;
|
|
199
|
+
}>;
|
|
200
|
+
grantExtensionPermissions(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
201
|
+
basePackageRevisionId?: string;
|
|
202
|
+
baseUpdatedAt?: string;
|
|
203
|
+
environment: string;
|
|
204
|
+
grantedPermissions: ExtensionPermissions;
|
|
205
|
+
}): Promise<{
|
|
206
|
+
install: ExtensionInstallRecord;
|
|
207
|
+
}>;
|
|
208
|
+
planExtensionInstallUpdate(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
209
|
+
basePackageRevisionId?: string;
|
|
210
|
+
baseUpdatedAt?: string;
|
|
211
|
+
environment: string;
|
|
212
|
+
packageRevisionId: string;
|
|
213
|
+
}): Promise<{
|
|
214
|
+
plan: ExtensionInstallUpdatePlan;
|
|
215
|
+
}>;
|
|
216
|
+
updateExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
217
|
+
basePackageRevisionId?: string;
|
|
218
|
+
baseUpdatedAt?: string;
|
|
219
|
+
environment: string;
|
|
220
|
+
packageRevisionId: string;
|
|
221
|
+
}): Promise<{
|
|
222
|
+
install: ExtensionInstallRecord;
|
|
223
|
+
plan: ExtensionInstallUpdatePlan;
|
|
224
|
+
}>;
|
|
225
|
+
disableExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
226
|
+
environment: string;
|
|
227
|
+
}): Promise<{
|
|
228
|
+
install: ExtensionInstallRecord;
|
|
229
|
+
}>;
|
|
230
|
+
enableExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
231
|
+
environment: string;
|
|
232
|
+
}): Promise<{
|
|
233
|
+
install: ExtensionInstallRecord;
|
|
234
|
+
}>;
|
|
235
|
+
deleteExtensionInstall(session: CliSessionState, orgId: string, installRef: string, inputData: {
|
|
236
|
+
environment: string;
|
|
237
|
+
}): Promise<void>;
|
|
238
|
+
listWorkflows(session: CliSessionState, orgId: string, inputData: {
|
|
239
|
+
environment?: never;
|
|
240
|
+
live: true;
|
|
241
|
+
releaseId?: never;
|
|
242
|
+
} | ReleaseSnapshotSelectorInput): Promise<{
|
|
99
243
|
processes: ProcessDefinitionSummary[];
|
|
100
244
|
}>;
|
|
101
|
-
getWorkflow(session: CliSessionState, orgId: string, name: string,
|
|
245
|
+
getWorkflow(session: CliSessionState, orgId: string, name: string, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
102
246
|
process: ProcessDefinitionDetail;
|
|
103
247
|
}>;
|
|
104
|
-
getWorkflowVersion(session: CliSessionState, orgId: string, name: string, version: number,
|
|
248
|
+
getWorkflowVersion(session: CliSessionState, orgId: string, name: string, version: number, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
105
249
|
process: ProcessDefinitionRecord;
|
|
106
250
|
}>;
|
|
107
|
-
getWorkflowDependencies(session: CliSessionState, orgId: string, name: string, version: number,
|
|
251
|
+
getWorkflowDependencies(session: CliSessionState, orgId: string, name: string, version: number, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
108
252
|
dependencies: WorkflowDependencySummary;
|
|
109
253
|
}>;
|
|
110
|
-
getWorkflowContext(session: CliSessionState, orgId: string,
|
|
254
|
+
getWorkflowContext(session: CliSessionState, orgId: string, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
111
255
|
context: WorkflowInspectionContext;
|
|
112
256
|
}>;
|
|
113
257
|
startWorkflow(session: CliSessionState, orgId: string, name: string, inputData?: {
|
|
258
|
+
environment?: string;
|
|
114
259
|
idempotencyKey?: string;
|
|
115
260
|
inputData?: Record<string, unknown>;
|
|
116
261
|
startEvent?: {
|
|
@@ -120,68 +265,20 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
120
265
|
}): Promise<{
|
|
121
266
|
started: RuntimeControlStartProcessResult;
|
|
122
267
|
}>;
|
|
123
|
-
getOrganizationManagementContext(session: CliSessionState, orgId: string): Promise<{
|
|
268
|
+
getOrganizationManagementContext(session: CliSessionState, orgId: string, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
124
269
|
context: AuthoringOrganizationManagementContext;
|
|
125
270
|
}>;
|
|
126
|
-
getCapabilityEditor(session: CliSessionState, orgId: string, name: string): Promise<{
|
|
271
|
+
getCapabilityEditor(session: CliSessionState, orgId: string, name: string, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
127
272
|
editor: CapabilityEditorRecord;
|
|
128
273
|
}>;
|
|
129
|
-
|
|
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
|
-
getOperationsEditor(session: CliSessionState, orgId: string): Promise<{
|
|
274
|
+
getOperationsEditor(session: CliSessionState, orgId: string, selector: ReleaseSnapshotSelectorInput): Promise<{
|
|
179
275
|
editor: OperationsEditorRecord;
|
|
180
276
|
}>;
|
|
181
277
|
getOverview(session: CliSessionState, orgId: string): Promise<{
|
|
182
278
|
overview: RuntimeControlOverviewRecord;
|
|
183
279
|
}>;
|
|
184
280
|
getActivity(session: CliSessionState, orgId: string, filters: {
|
|
281
|
+
environment?: string;
|
|
185
282
|
focusType?: RuntimeControlActivityFocusType;
|
|
186
283
|
focusValue?: string;
|
|
187
284
|
from?: string;
|
|
@@ -196,7 +293,22 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
196
293
|
workflows: string[];
|
|
197
294
|
};
|
|
198
295
|
}>;
|
|
296
|
+
listAuditEvents(session: CliSessionState, orgId: string, filters: {
|
|
297
|
+
action?: string;
|
|
298
|
+
actorId?: string;
|
|
299
|
+
category?: string;
|
|
300
|
+
from?: string;
|
|
301
|
+
limit?: number;
|
|
302
|
+
outcome?: AuditOutcome;
|
|
303
|
+
resourceId?: string;
|
|
304
|
+
resourceType?: string;
|
|
305
|
+
to?: string;
|
|
306
|
+
}): Promise<AuditEventListResult>;
|
|
307
|
+
getAuditEvent(session: CliSessionState, orgId: string, eventId: string): Promise<{
|
|
308
|
+
event: AuditEventRecord;
|
|
309
|
+
}>;
|
|
199
310
|
listRuns(session: CliSessionState, orgId: string, filters: {
|
|
311
|
+
environment?: string;
|
|
200
312
|
limit?: number;
|
|
201
313
|
status?: string;
|
|
202
314
|
}): Promise<{
|
|
@@ -238,11 +350,48 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
238
350
|
outputData: Record<string, unknown>;
|
|
239
351
|
workflowId: string;
|
|
240
352
|
}): Promise<CompleteRuntimeTaskResult>;
|
|
241
|
-
|
|
242
|
-
|
|
353
|
+
listEnvironmentDeployments(session: CliSessionState, orgId: string, filters?: {
|
|
354
|
+
environment?: string;
|
|
355
|
+
limit?: number;
|
|
356
|
+
}): Promise<{
|
|
357
|
+
deployments: EnvironmentDeploymentRecord[];
|
|
358
|
+
}>;
|
|
359
|
+
getEnvironmentDeployment(session: CliSessionState, orgId: string, deploymentId: string, filters?: {
|
|
360
|
+
environment?: string;
|
|
361
|
+
}): Promise<{
|
|
362
|
+
deployment: EnvironmentDeploymentRecord;
|
|
363
|
+
}>;
|
|
364
|
+
listEnvironments(session: CliSessionState, orgId: string): Promise<{
|
|
365
|
+
environments: EnvironmentDetailRecord[];
|
|
366
|
+
}>;
|
|
367
|
+
getEnvironment(session: CliSessionState, orgId: string, environment: string): Promise<EnvironmentDetailRecord>;
|
|
368
|
+
createEnvironment(session: CliSessionState, orgId: string, inputData: {
|
|
369
|
+
copyFromEnvironmentId?: string;
|
|
370
|
+
key: string;
|
|
371
|
+
name?: string;
|
|
372
|
+
}): Promise<{
|
|
373
|
+
environment: EnvironmentRecord;
|
|
374
|
+
}>;
|
|
375
|
+
renameEnvironment(session: CliSessionState, orgId: string, environment: string, inputData: {
|
|
376
|
+
name: string;
|
|
377
|
+
}): Promise<{
|
|
378
|
+
environment: EnvironmentRecord;
|
|
379
|
+
}>;
|
|
380
|
+
archiveEnvironment(session: CliSessionState, orgId: string, environment: string): Promise<{
|
|
381
|
+
environment: EnvironmentRecord;
|
|
382
|
+
}>;
|
|
383
|
+
deployEnvironment(session: CliSessionState, orgId: string, environment: string, inputData: {
|
|
384
|
+
policy?: "drain" | "terminate-running";
|
|
385
|
+
releaseId: string;
|
|
386
|
+
}): Promise<{
|
|
387
|
+
deployment: EnvironmentDeploymentRecord;
|
|
388
|
+
}>;
|
|
389
|
+
undeployEnvironment(session: CliSessionState, orgId: string, environment: string, inputData?: {
|
|
390
|
+
policy?: "drain" | "terminate-running";
|
|
391
|
+
}): Promise<{
|
|
392
|
+
deployment: EnvironmentDeploymentRecord;
|
|
243
393
|
}>;
|
|
244
394
|
listReleases(session: CliSessionState, orgId: string, filters: {
|
|
245
|
-
includeDraft?: boolean;
|
|
246
395
|
limit?: number;
|
|
247
396
|
}): Promise<{
|
|
248
397
|
releases: ReleaseSummaryRecord[];
|
|
@@ -250,23 +399,27 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
250
399
|
getRelease(session: CliSessionState, orgId: string, releaseId: string): Promise<{
|
|
251
400
|
release: ReleaseSummaryRecord;
|
|
252
401
|
}>;
|
|
253
|
-
|
|
254
|
-
|
|
402
|
+
getReleaseSource(session: CliSessionState, orgId: string, releaseId: string): Promise<{
|
|
403
|
+
source: ReleaseSourceSnapshotRecord;
|
|
255
404
|
}>;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
draft: ReleaseSummaryRecord;
|
|
405
|
+
createRelease(session: CliSessionState, orgId: string, inputData: {
|
|
406
|
+
files: Array<{
|
|
407
|
+
content: string;
|
|
408
|
+
path: string;
|
|
409
|
+
}>;
|
|
410
|
+
}): Promise<{
|
|
411
|
+
created: CreateReleaseResult;
|
|
264
412
|
}>;
|
|
265
|
-
|
|
266
|
-
|
|
413
|
+
createReleaseArchive(session: CliSessionState, orgId: string, archive: Uint8Array, inputData?: {
|
|
414
|
+
subdir?: string;
|
|
415
|
+
}): Promise<{
|
|
416
|
+
created: CreateReleaseResult;
|
|
267
417
|
}>;
|
|
268
|
-
|
|
269
|
-
|
|
418
|
+
validateRelease(session: CliSessionState, orgId: string, inputData: {
|
|
419
|
+
environment?: string;
|
|
420
|
+
releaseId: string;
|
|
421
|
+
}): Promise<{
|
|
422
|
+
validation: ReleaseValidationResult;
|
|
270
423
|
}>;
|
|
271
424
|
listMembers(session: CliSessionState, orgId: string, filters: {
|
|
272
425
|
limit?: number;
|
|
@@ -311,6 +464,13 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
311
464
|
getChatHealth(session: CliSessionState, orgId: string): Promise<{
|
|
312
465
|
health: ChatHealth;
|
|
313
466
|
}>;
|
|
467
|
+
getAgentUsage(session: CliSessionState, orgId: string, inputData?: {
|
|
468
|
+
from?: string;
|
|
469
|
+
limit?: number;
|
|
470
|
+
to?: string;
|
|
471
|
+
}): Promise<{
|
|
472
|
+
usage: AgentUsageReport;
|
|
473
|
+
}>;
|
|
314
474
|
listChatSessions(session: CliSessionState, orgId: string): Promise<{
|
|
315
475
|
sessions: ChatSessionSummary[];
|
|
316
476
|
}>;
|
|
@@ -319,24 +479,6 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
319
479
|
session: ChatSessionRecord;
|
|
320
480
|
}>;
|
|
321
481
|
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
482
|
listDeletedOrganizations(session: CliSessionState): Promise<{
|
|
341
483
|
organizations: DeletedOrganizationSummary[];
|
|
342
484
|
}>;
|
|
@@ -360,6 +502,23 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
360
502
|
}): Promise<{
|
|
361
503
|
artifacts: import("./api-types.js").RuntimeArtifactRecord[];
|
|
362
504
|
}>;
|
|
505
|
+
listArtifacts(session: CliSessionState, orgId: string, filters: {
|
|
506
|
+
associationKind?: string;
|
|
507
|
+
associationRole?: string;
|
|
508
|
+
createdAfter?: string;
|
|
509
|
+
createdBefore?: string;
|
|
510
|
+
lifecycleStatus?: import("./api-types.js").RuntimeArtifactLifecycleFilter;
|
|
511
|
+
limit?: number;
|
|
512
|
+
mediaType?: string;
|
|
513
|
+
nodeId?: string;
|
|
514
|
+
producerType?: string;
|
|
515
|
+
runId?: string;
|
|
516
|
+
workflowNodeTestId?: string;
|
|
517
|
+
workflowId?: string;
|
|
518
|
+
}): Promise<{
|
|
519
|
+
artifacts: import("./api-types.js").RuntimeArtifactInventoryRecord[];
|
|
520
|
+
}>;
|
|
521
|
+
getArtifactDetail(session: CliSessionState, orgId: string, artifactId: string): Promise<import("./api-types.js").RuntimeArtifactDetailRecord>;
|
|
363
522
|
downloadArtifact(session: CliSessionState, orgId: string, artifactId: string, options?: {
|
|
364
523
|
createMaxBytesError?: (input: {
|
|
365
524
|
actualBytes: number;
|
|
@@ -373,4 +532,13 @@ export declare function createPlatformApiClient(input: PlatformApiClientInput):
|
|
|
373
532
|
fileName: string | null;
|
|
374
533
|
sizeBytes: number;
|
|
375
534
|
}>;
|
|
535
|
+
archiveArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
536
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
537
|
+
}>;
|
|
538
|
+
restoreArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
539
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
540
|
+
}>;
|
|
541
|
+
purgeArtifact(session: CliSessionState, orgId: string, artifactId: string): Promise<{
|
|
542
|
+
artifact: import("./api-types.js").RuntimeArtifactRecord;
|
|
543
|
+
}>;
|
|
376
544
|
};
|