@numa-tech/numa 1.12.10 → 1.13.0
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 +96 -14
- package/dist/ai-registry/commands.js +33 -33
- package/dist/ai-registry/commands.js.map +1 -1
- package/dist/app-config.d.ts +0 -1
- package/dist/app-config.js +4 -2
- package/dist/app-config.js.map +1 -1
- package/dist/application-onboarding/client.d.ts +83 -8
- package/dist/application-onboarding/client.js +23 -1
- package/dist/application-onboarding/client.js.map +1 -1
- package/dist/application-onboarding/commands.js +66 -4
- package/dist/application-onboarding/commands.js.map +1 -1
- package/dist/application-onboarding/schemas.d.ts +301 -58
- package/dist/application-onboarding/schemas.js +134 -8
- package/dist/application-onboarding/schemas.js.map +1 -1
- package/dist/application-onboarding/tui-model.d.ts +18 -0
- package/dist/application-onboarding/tui-model.js +215 -3
- package/dist/application-onboarding/tui-model.js.map +1 -1
- package/dist/application-onboarding/tui.d.ts +1 -1
- package/dist/application-onboarding/tui.js +20 -6
- package/dist/application-onboarding/tui.js.map +1 -1
- package/dist/authorization/access-request-client.d.ts +45 -0
- package/dist/authorization/access-request-client.js +93 -0
- package/dist/authorization/access-request-client.js.map +1 -0
- package/dist/authorization/access-request-commands.d.ts +25 -0
- package/dist/authorization/access-request-commands.js +196 -0
- package/dist/authorization/access-request-commands.js.map +1 -0
- package/dist/authorization/access-request-schemas.d.ts +123 -0
- package/dist/authorization/access-request-schemas.js +67 -0
- package/dist/authorization/access-request-schemas.js.map +1 -0
- package/dist/authorization/client.d.ts +50 -0
- package/dist/authorization/client.js +113 -0
- package/dist/authorization/client.js.map +1 -0
- package/dist/authorization/commands.d.ts +40 -0
- package/dist/authorization/commands.js +296 -0
- package/dist/authorization/commands.js.map +1 -0
- package/dist/authorization/errors.d.ts +13 -0
- package/dist/authorization/errors.js +70 -0
- package/dist/authorization/errors.js.map +1 -0
- package/dist/authorization/schemas.d.ts +187 -0
- package/dist/authorization/schemas.js +101 -0
- package/dist/authorization/schemas.js.map +1 -0
- package/dist/cli.js +73 -9
- package/dist/cli.js.map +1 -1
- package/dist/clusters/client.d.ts +436 -0
- package/dist/clusters/client.js +207 -0
- package/dist/clusters/client.js.map +1 -0
- package/dist/clusters/commands.d.ts +11 -0
- package/dist/clusters/commands.js +373 -0
- package/dist/clusters/commands.js.map +1 -0
- package/dist/clusters/errors.d.ts +10 -0
- package/dist/clusters/errors.js +61 -0
- package/dist/clusters/errors.js.map +1 -0
- package/dist/clusters/kubeconfig-discovery.d.ts +48 -0
- package/dist/clusters/kubeconfig-discovery.js +280 -0
- package/dist/clusters/kubeconfig-discovery.js.map +1 -0
- package/dist/clusters/schemas.d.ts +510 -0
- package/dist/clusters/schemas.js +201 -0
- package/dist/clusters/schemas.js.map +1 -0
- package/dist/command-catalog.js +490 -26
- package/dist/command-catalog.js.map +1 -1
- package/dist/gitops/client.d.ts +499 -0
- package/dist/gitops/client.js +163 -0
- package/dist/gitops/client.js.map +1 -0
- package/dist/gitops/commands.d.ts +11 -0
- package/dist/gitops/commands.js +367 -0
- package/dist/gitops/commands.js.map +1 -0
- package/dist/gitops/errors.d.ts +10 -0
- package/dist/gitops/errors.js +59 -0
- package/dist/gitops/errors.js.map +1 -0
- package/dist/gitops/schemas.d.ts +1712 -0
- package/dist/gitops/schemas.js +360 -0
- package/dist/gitops/schemas.js.map +1 -0
- package/dist/repositories/client.d.ts +540 -0
- package/dist/repositories/client.js +215 -0
- package/dist/repositories/client.js.map +1 -0
- package/dist/repositories/commands.d.ts +10 -0
- package/dist/repositories/commands.js +347 -0
- package/dist/repositories/commands.js.map +1 -0
- package/dist/repositories/errors.d.ts +10 -0
- package/dist/repositories/errors.js +60 -0
- package/dist/repositories/errors.js.map +1 -0
- package/dist/repositories/schemas.d.ts +1692 -0
- package/dist/repositories/schemas.js +255 -0
- package/dist/repositories/schemas.js.map +1 -0
- package/dist/web-console-page.d.ts +1 -1
- package/dist/web-console-page.js +1 -1
- package/dist/web-console.js +2 -2
- package/dist/web-console.js.map +1 -1
- package/examples/ai-registry/README.md +18 -0
- package/examples/ai-registry/nacos-instance.username-password.example.json +25 -0
- package/package.json +4 -4
- package/skills/numa-ai-registry/SKILL.md +5 -5
- package/skills/numa-ai-registry/evals/evals.json +1 -1
- package/skills/numa-ai-registry/references/command-contract.md +22 -22
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import type { AuthConfig } from "../config.js";
|
|
2
|
+
import { type KeycloakTokenProvider } from "../oauth.js";
|
|
3
|
+
import { type RepositoryConsumerType, type RepositoryPlanRequest, type RepositoryRunCreate } from "./schemas.js";
|
|
4
|
+
export declare const SCM_API_ROOT = "/api/v1/scm";
|
|
5
|
+
export declare const SOURCE_REPOSITORY_CONTRACT_VERSION = "v2";
|
|
6
|
+
export interface SourceRepositoryClientDependencies {
|
|
7
|
+
fetch?: typeof fetch;
|
|
8
|
+
tokenProvider?: KeycloakTokenProvider;
|
|
9
|
+
}
|
|
10
|
+
export interface CursorPageOptions {
|
|
11
|
+
search?: string;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface RepositoryListOptions {
|
|
16
|
+
status?: string;
|
|
17
|
+
connectionCode?: string;
|
|
18
|
+
namespace?: string;
|
|
19
|
+
ownerTeamId?: string;
|
|
20
|
+
managementMode?: string;
|
|
21
|
+
search?: string;
|
|
22
|
+
page?: number;
|
|
23
|
+
size?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface RepositoryRunListOptions {
|
|
26
|
+
state?: string;
|
|
27
|
+
repositoryKey?: string;
|
|
28
|
+
consumerType?: RepositoryConsumerType;
|
|
29
|
+
page?: number;
|
|
30
|
+
size?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare class SourceRepositoryClient {
|
|
33
|
+
private readonly config;
|
|
34
|
+
private readonly fetchImpl;
|
|
35
|
+
private readonly tokenProvider;
|
|
36
|
+
constructor(config: AuthConfig, dependencies?: SourceRepositoryClientDependencies);
|
|
37
|
+
private authenticatedFetch;
|
|
38
|
+
private json;
|
|
39
|
+
listConnections(): Promise<{
|
|
40
|
+
items: {
|
|
41
|
+
code: string;
|
|
42
|
+
name: string;
|
|
43
|
+
provider: string;
|
|
44
|
+
status: string;
|
|
45
|
+
capabilities: string[] | {
|
|
46
|
+
code: string;
|
|
47
|
+
supported: boolean;
|
|
48
|
+
reason?: string | null | undefined;
|
|
49
|
+
}[] | Record<string, boolean>;
|
|
50
|
+
lastCheckedAt?: string | null | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
nextCursor: string | null;
|
|
53
|
+
hasMore: boolean;
|
|
54
|
+
total?: number | undefined;
|
|
55
|
+
page?: number | undefined;
|
|
56
|
+
size?: number | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
listRepositories(options?: RepositoryListOptions): Promise<{
|
|
59
|
+
items: {
|
|
60
|
+
repositoryKey: string;
|
|
61
|
+
id?: string | undefined;
|
|
62
|
+
connectionCode: string;
|
|
63
|
+
provider?: string | null | undefined;
|
|
64
|
+
externalId?: string | null | undefined;
|
|
65
|
+
namespaceExternalId?: string | null | undefined;
|
|
66
|
+
namespacePath?: string | null | undefined;
|
|
67
|
+
name?: string | null | undefined;
|
|
68
|
+
fullName: string;
|
|
69
|
+
description?: string | null | undefined;
|
|
70
|
+
visibility?: string | null | undefined;
|
|
71
|
+
defaultBranch?: string | null | undefined;
|
|
72
|
+
lastObservedRevision?: string | null | undefined;
|
|
73
|
+
webUrl?: string | null | undefined;
|
|
74
|
+
cloneUrl?: string | null | undefined;
|
|
75
|
+
managementMode?: string | null | undefined;
|
|
76
|
+
status: string;
|
|
77
|
+
ownerTeamId?: string | null | undefined;
|
|
78
|
+
lastReconciledAt?: string | null | undefined;
|
|
79
|
+
version?: number | undefined;
|
|
80
|
+
repositoryId: string | undefined;
|
|
81
|
+
observedRevision: string | null | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
nextCursor: string | null;
|
|
84
|
+
hasMore: boolean;
|
|
85
|
+
total?: number | undefined;
|
|
86
|
+
page?: number | undefined;
|
|
87
|
+
size?: number | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
getRepository(repositoryKey: string): Promise<{
|
|
90
|
+
repositoryKey: string;
|
|
91
|
+
id?: string | undefined;
|
|
92
|
+
connectionCode: string;
|
|
93
|
+
provider?: string | null | undefined;
|
|
94
|
+
externalId?: string | null | undefined;
|
|
95
|
+
namespaceExternalId?: string | null | undefined;
|
|
96
|
+
namespacePath?: string | null | undefined;
|
|
97
|
+
name?: string | null | undefined;
|
|
98
|
+
fullName: string;
|
|
99
|
+
description?: string | null | undefined;
|
|
100
|
+
visibility?: string | null | undefined;
|
|
101
|
+
defaultBranch?: string | null | undefined;
|
|
102
|
+
lastObservedRevision?: string | null | undefined;
|
|
103
|
+
webUrl?: string | null | undefined;
|
|
104
|
+
cloneUrl?: string | null | undefined;
|
|
105
|
+
managementMode?: string | null | undefined;
|
|
106
|
+
status: string;
|
|
107
|
+
ownerTeamId?: string | null | undefined;
|
|
108
|
+
lastReconciledAt?: string | null | undefined;
|
|
109
|
+
version?: number | undefined;
|
|
110
|
+
repositoryId: string | undefined;
|
|
111
|
+
observedRevision: string | null | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
listNamespaces(connectionCode: string, options?: CursorPageOptions): Promise<{
|
|
114
|
+
items: {
|
|
115
|
+
externalId: string;
|
|
116
|
+
name: string;
|
|
117
|
+
fullPath?: string | null | undefined;
|
|
118
|
+
parentExternalId?: string | null | undefined;
|
|
119
|
+
visibility?: string | null | undefined;
|
|
120
|
+
webUrl?: string | null | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
nextCursor: string | null;
|
|
123
|
+
hasMore: boolean;
|
|
124
|
+
total?: number | undefined;
|
|
125
|
+
page?: number | undefined;
|
|
126
|
+
size?: number | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
listRemoteRepositories(connectionCode: string, options?: CursorPageOptions): Promise<{
|
|
129
|
+
items: {
|
|
130
|
+
externalId: string;
|
|
131
|
+
namespace?: string | null | undefined;
|
|
132
|
+
namespaceExternalId?: string | null | undefined;
|
|
133
|
+
name: string;
|
|
134
|
+
fullName?: string | null | undefined;
|
|
135
|
+
description?: string | null | undefined;
|
|
136
|
+
visibility?: string | null | undefined;
|
|
137
|
+
defaultBranch?: string | null | undefined;
|
|
138
|
+
headRevision?: string | null | undefined;
|
|
139
|
+
archived?: boolean | undefined;
|
|
140
|
+
webUrl?: string | null | undefined;
|
|
141
|
+
httpCloneUrl?: string | null | undefined;
|
|
142
|
+
sshCloneUrl?: string | null | undefined;
|
|
143
|
+
namespacePath: string | null | undefined;
|
|
144
|
+
httpUrl: string | null | undefined;
|
|
145
|
+
sshUrl: string | null | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
nextCursor: string | null;
|
|
148
|
+
hasMore: boolean;
|
|
149
|
+
total?: number | undefined;
|
|
150
|
+
page?: number | undefined;
|
|
151
|
+
size?: number | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
getRemoteRepository(connectionCode: string, externalId: string): Promise<{
|
|
154
|
+
externalId: string;
|
|
155
|
+
namespace?: string | null | undefined;
|
|
156
|
+
namespaceExternalId?: string | null | undefined;
|
|
157
|
+
name: string;
|
|
158
|
+
fullName?: string | null | undefined;
|
|
159
|
+
description?: string | null | undefined;
|
|
160
|
+
visibility?: string | null | undefined;
|
|
161
|
+
defaultBranch?: string | null | undefined;
|
|
162
|
+
headRevision?: string | null | undefined;
|
|
163
|
+
archived?: boolean | undefined;
|
|
164
|
+
webUrl?: string | null | undefined;
|
|
165
|
+
httpCloneUrl?: string | null | undefined;
|
|
166
|
+
sshCloneUrl?: string | null | undefined;
|
|
167
|
+
namespacePath: string | null | undefined;
|
|
168
|
+
httpUrl: string | null | undefined;
|
|
169
|
+
sshUrl: string | null | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
getCapabilities(connectionCode: string, consumerType?: RepositoryConsumerType): Promise<{
|
|
172
|
+
contractVersion?: string | null | undefined;
|
|
173
|
+
connection: {
|
|
174
|
+
code: string;
|
|
175
|
+
name: string;
|
|
176
|
+
provider: string;
|
|
177
|
+
status: string;
|
|
178
|
+
capabilities: string[] | {
|
|
179
|
+
code: string;
|
|
180
|
+
supported: boolean;
|
|
181
|
+
reason?: string | null | undefined;
|
|
182
|
+
}[] | Record<string, boolean>;
|
|
183
|
+
lastCheckedAt?: string | null | undefined;
|
|
184
|
+
};
|
|
185
|
+
providerCapabilities: Record<string, boolean>;
|
|
186
|
+
allowedActions: string[];
|
|
187
|
+
constraints: {
|
|
188
|
+
supportedVisibilities: string[];
|
|
189
|
+
supportedOperations: ("CREATE" | "DISABLE" | "REGISTER_EXISTING" | "USE_EXISTING")[];
|
|
190
|
+
defaultVisibility?: string | null | undefined;
|
|
191
|
+
defaultBranch?: string | null | undefined;
|
|
192
|
+
namePattern?: string | null | undefined;
|
|
193
|
+
nameMaxLength?: number | undefined;
|
|
194
|
+
namespaceRequired?: boolean | undefined;
|
|
195
|
+
};
|
|
196
|
+
}>;
|
|
197
|
+
createPlan(input: RepositoryPlanRequest): Promise<{
|
|
198
|
+
planNo: string;
|
|
199
|
+
operation: "CREATE" | "DISABLE" | "REGISTER_EXISTING" | "USE_EXISTING";
|
|
200
|
+
state: string;
|
|
201
|
+
planHash: string;
|
|
202
|
+
normalizedSpec: Record<string, unknown>;
|
|
203
|
+
sideEffects: unknown[];
|
|
204
|
+
warnings: (string | {
|
|
205
|
+
path?: string | null | undefined;
|
|
206
|
+
code?: string | null | undefined;
|
|
207
|
+
message: string;
|
|
208
|
+
})[];
|
|
209
|
+
blockers: (string | {
|
|
210
|
+
path?: string | null | undefined;
|
|
211
|
+
code?: string | null | undefined;
|
|
212
|
+
message: string;
|
|
213
|
+
})[];
|
|
214
|
+
expiresAt?: string | null | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
getPlan(planNo: string): Promise<{
|
|
217
|
+
planNo: string;
|
|
218
|
+
operation: "CREATE" | "DISABLE" | "REGISTER_EXISTING" | "USE_EXISTING";
|
|
219
|
+
state: string;
|
|
220
|
+
planHash: string;
|
|
221
|
+
normalizedSpec: Record<string, unknown>;
|
|
222
|
+
sideEffects: unknown[];
|
|
223
|
+
warnings: (string | {
|
|
224
|
+
path?: string | null | undefined;
|
|
225
|
+
code?: string | null | undefined;
|
|
226
|
+
message: string;
|
|
227
|
+
})[];
|
|
228
|
+
blockers: (string | {
|
|
229
|
+
path?: string | null | undefined;
|
|
230
|
+
code?: string | null | undefined;
|
|
231
|
+
message: string;
|
|
232
|
+
})[];
|
|
233
|
+
expiresAt?: string | null | undefined;
|
|
234
|
+
}>;
|
|
235
|
+
createRun(input: RepositoryRunCreate, idempotencyKey: string): Promise<{
|
|
236
|
+
runNo: string;
|
|
237
|
+
planNo: string;
|
|
238
|
+
state: string;
|
|
239
|
+
stepCode?: string | null | undefined;
|
|
240
|
+
repository?: {
|
|
241
|
+
repositoryKey: string;
|
|
242
|
+
id?: string | undefined;
|
|
243
|
+
connectionCode: string;
|
|
244
|
+
provider?: string | null | undefined;
|
|
245
|
+
externalId?: string | null | undefined;
|
|
246
|
+
namespaceExternalId?: string | null | undefined;
|
|
247
|
+
namespacePath?: string | null | undefined;
|
|
248
|
+
name?: string | null | undefined;
|
|
249
|
+
fullName: string;
|
|
250
|
+
description?: string | null | undefined;
|
|
251
|
+
visibility?: string | null | undefined;
|
|
252
|
+
defaultBranch?: string | null | undefined;
|
|
253
|
+
lastObservedRevision?: string | null | undefined;
|
|
254
|
+
webUrl?: string | null | undefined;
|
|
255
|
+
cloneUrl?: string | null | undefined;
|
|
256
|
+
managementMode?: string | null | undefined;
|
|
257
|
+
status: string;
|
|
258
|
+
ownerTeamId?: string | null | undefined;
|
|
259
|
+
lastReconciledAt?: string | null | undefined;
|
|
260
|
+
version?: number | undefined;
|
|
261
|
+
repositoryId: string | undefined;
|
|
262
|
+
observedRevision: string | null | undefined;
|
|
263
|
+
} | null | undefined;
|
|
264
|
+
retryable: boolean;
|
|
265
|
+
errorCode?: string | null | undefined;
|
|
266
|
+
errorMessage?: string | null | undefined;
|
|
267
|
+
clientRequestId?: string | null | undefined;
|
|
268
|
+
createdAt?: string | null | undefined;
|
|
269
|
+
startedAt?: string | null | undefined;
|
|
270
|
+
updatedAt?: string | null | undefined;
|
|
271
|
+
finishedAt?: string | null | undefined;
|
|
272
|
+
completedAt?: string | null | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
listRuns(options?: RepositoryRunListOptions): Promise<{
|
|
275
|
+
items: {
|
|
276
|
+
runNo: string;
|
|
277
|
+
planNo: string;
|
|
278
|
+
state: string;
|
|
279
|
+
stepCode?: string | null | undefined;
|
|
280
|
+
repository?: {
|
|
281
|
+
repositoryKey: string;
|
|
282
|
+
id?: string | undefined;
|
|
283
|
+
connectionCode: string;
|
|
284
|
+
provider?: string | null | undefined;
|
|
285
|
+
externalId?: string | null | undefined;
|
|
286
|
+
namespaceExternalId?: string | null | undefined;
|
|
287
|
+
namespacePath?: string | null | undefined;
|
|
288
|
+
name?: string | null | undefined;
|
|
289
|
+
fullName: string;
|
|
290
|
+
description?: string | null | undefined;
|
|
291
|
+
visibility?: string | null | undefined;
|
|
292
|
+
defaultBranch?: string | null | undefined;
|
|
293
|
+
lastObservedRevision?: string | null | undefined;
|
|
294
|
+
webUrl?: string | null | undefined;
|
|
295
|
+
cloneUrl?: string | null | undefined;
|
|
296
|
+
managementMode?: string | null | undefined;
|
|
297
|
+
status: string;
|
|
298
|
+
ownerTeamId?: string | null | undefined;
|
|
299
|
+
lastReconciledAt?: string | null | undefined;
|
|
300
|
+
version?: number | undefined;
|
|
301
|
+
repositoryId: string | undefined;
|
|
302
|
+
observedRevision: string | null | undefined;
|
|
303
|
+
} | null | undefined;
|
|
304
|
+
retryable: boolean;
|
|
305
|
+
errorCode?: string | null | undefined;
|
|
306
|
+
errorMessage?: string | null | undefined;
|
|
307
|
+
clientRequestId?: string | null | undefined;
|
|
308
|
+
createdAt?: string | null | undefined;
|
|
309
|
+
startedAt?: string | null | undefined;
|
|
310
|
+
updatedAt?: string | null | undefined;
|
|
311
|
+
finishedAt?: string | null | undefined;
|
|
312
|
+
completedAt?: string | null | undefined;
|
|
313
|
+
}[];
|
|
314
|
+
nextCursor: string | null;
|
|
315
|
+
hasMore: boolean;
|
|
316
|
+
total?: number | undefined;
|
|
317
|
+
page?: number | undefined;
|
|
318
|
+
size?: number | undefined;
|
|
319
|
+
}>;
|
|
320
|
+
getRun(runNo: string): Promise<{
|
|
321
|
+
runNo: string;
|
|
322
|
+
planNo: string;
|
|
323
|
+
state: string;
|
|
324
|
+
stepCode?: string | null | undefined;
|
|
325
|
+
repository?: {
|
|
326
|
+
repositoryKey: string;
|
|
327
|
+
id?: string | undefined;
|
|
328
|
+
connectionCode: string;
|
|
329
|
+
provider?: string | null | undefined;
|
|
330
|
+
externalId?: string | null | undefined;
|
|
331
|
+
namespaceExternalId?: string | null | undefined;
|
|
332
|
+
namespacePath?: string | null | undefined;
|
|
333
|
+
name?: string | null | undefined;
|
|
334
|
+
fullName: string;
|
|
335
|
+
description?: string | null | undefined;
|
|
336
|
+
visibility?: string | null | undefined;
|
|
337
|
+
defaultBranch?: string | null | undefined;
|
|
338
|
+
lastObservedRevision?: string | null | undefined;
|
|
339
|
+
webUrl?: string | null | undefined;
|
|
340
|
+
cloneUrl?: string | null | undefined;
|
|
341
|
+
managementMode?: string | null | undefined;
|
|
342
|
+
status: string;
|
|
343
|
+
ownerTeamId?: string | null | undefined;
|
|
344
|
+
lastReconciledAt?: string | null | undefined;
|
|
345
|
+
version?: number | undefined;
|
|
346
|
+
repositoryId: string | undefined;
|
|
347
|
+
observedRevision: string | null | undefined;
|
|
348
|
+
} | null | undefined;
|
|
349
|
+
retryable: boolean;
|
|
350
|
+
errorCode?: string | null | undefined;
|
|
351
|
+
errorMessage?: string | null | undefined;
|
|
352
|
+
clientRequestId?: string | null | undefined;
|
|
353
|
+
createdAt?: string | null | undefined;
|
|
354
|
+
startedAt?: string | null | undefined;
|
|
355
|
+
updatedAt?: string | null | undefined;
|
|
356
|
+
finishedAt?: string | null | undefined;
|
|
357
|
+
completedAt?: string | null | undefined;
|
|
358
|
+
}>;
|
|
359
|
+
resolveRun(clientRequestId: string): Promise<{
|
|
360
|
+
runNo: string;
|
|
361
|
+
planNo: string;
|
|
362
|
+
state: string;
|
|
363
|
+
stepCode?: string | null | undefined;
|
|
364
|
+
repository?: {
|
|
365
|
+
repositoryKey: string;
|
|
366
|
+
id?: string | undefined;
|
|
367
|
+
connectionCode: string;
|
|
368
|
+
provider?: string | null | undefined;
|
|
369
|
+
externalId?: string | null | undefined;
|
|
370
|
+
namespaceExternalId?: string | null | undefined;
|
|
371
|
+
namespacePath?: string | null | undefined;
|
|
372
|
+
name?: string | null | undefined;
|
|
373
|
+
fullName: string;
|
|
374
|
+
description?: string | null | undefined;
|
|
375
|
+
visibility?: string | null | undefined;
|
|
376
|
+
defaultBranch?: string | null | undefined;
|
|
377
|
+
lastObservedRevision?: string | null | undefined;
|
|
378
|
+
webUrl?: string | null | undefined;
|
|
379
|
+
cloneUrl?: string | null | undefined;
|
|
380
|
+
managementMode?: string | null | undefined;
|
|
381
|
+
status: string;
|
|
382
|
+
ownerTeamId?: string | null | undefined;
|
|
383
|
+
lastReconciledAt?: string | null | undefined;
|
|
384
|
+
version?: number | undefined;
|
|
385
|
+
repositoryId: string | undefined;
|
|
386
|
+
observedRevision: string | null | undefined;
|
|
387
|
+
} | null | undefined;
|
|
388
|
+
retryable: boolean;
|
|
389
|
+
errorCode?: string | null | undefined;
|
|
390
|
+
errorMessage?: string | null | undefined;
|
|
391
|
+
clientRequestId?: string | null | undefined;
|
|
392
|
+
createdAt?: string | null | undefined;
|
|
393
|
+
startedAt?: string | null | undefined;
|
|
394
|
+
updatedAt?: string | null | undefined;
|
|
395
|
+
finishedAt?: string | null | undefined;
|
|
396
|
+
completedAt?: string | null | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
getEvents(runNo: string, afterSequence?: number): Promise<{
|
|
399
|
+
items: ({
|
|
400
|
+
sequence: number;
|
|
401
|
+
eventType?: string | undefined;
|
|
402
|
+
type?: string | undefined;
|
|
403
|
+
state?: string | null | undefined;
|
|
404
|
+
stepCode?: string | null | undefined;
|
|
405
|
+
message?: string | null | undefined;
|
|
406
|
+
createdAt: string;
|
|
407
|
+
details?: Record<string, unknown> | undefined;
|
|
408
|
+
} | {
|
|
409
|
+
sequenceNo: number;
|
|
410
|
+
eventType: string;
|
|
411
|
+
state?: string | null | undefined;
|
|
412
|
+
stepCode?: string | null | undefined;
|
|
413
|
+
message?: string | null | undefined;
|
|
414
|
+
errorCode?: string | null | undefined;
|
|
415
|
+
retryable?: boolean | undefined;
|
|
416
|
+
occurredAt?: string | null | undefined;
|
|
417
|
+
sequence: number;
|
|
418
|
+
type: undefined;
|
|
419
|
+
createdAt: string | null | undefined;
|
|
420
|
+
})[];
|
|
421
|
+
nextSequence: number | null;
|
|
422
|
+
}>;
|
|
423
|
+
retryRun(runNo: string): Promise<{
|
|
424
|
+
runNo: string;
|
|
425
|
+
planNo: string;
|
|
426
|
+
state: string;
|
|
427
|
+
stepCode?: string | null | undefined;
|
|
428
|
+
repository?: {
|
|
429
|
+
repositoryKey: string;
|
|
430
|
+
id?: string | undefined;
|
|
431
|
+
connectionCode: string;
|
|
432
|
+
provider?: string | null | undefined;
|
|
433
|
+
externalId?: string | null | undefined;
|
|
434
|
+
namespaceExternalId?: string | null | undefined;
|
|
435
|
+
namespacePath?: string | null | undefined;
|
|
436
|
+
name?: string | null | undefined;
|
|
437
|
+
fullName: string;
|
|
438
|
+
description?: string | null | undefined;
|
|
439
|
+
visibility?: string | null | undefined;
|
|
440
|
+
defaultBranch?: string | null | undefined;
|
|
441
|
+
lastObservedRevision?: string | null | undefined;
|
|
442
|
+
webUrl?: string | null | undefined;
|
|
443
|
+
cloneUrl?: string | null | undefined;
|
|
444
|
+
managementMode?: string | null | undefined;
|
|
445
|
+
status: string;
|
|
446
|
+
ownerTeamId?: string | null | undefined;
|
|
447
|
+
lastReconciledAt?: string | null | undefined;
|
|
448
|
+
version?: number | undefined;
|
|
449
|
+
repositoryId: string | undefined;
|
|
450
|
+
observedRevision: string | null | undefined;
|
|
451
|
+
} | null | undefined;
|
|
452
|
+
retryable: boolean;
|
|
453
|
+
errorCode?: string | null | undefined;
|
|
454
|
+
errorMessage?: string | null | undefined;
|
|
455
|
+
clientRequestId?: string | null | undefined;
|
|
456
|
+
createdAt?: string | null | undefined;
|
|
457
|
+
startedAt?: string | null | undefined;
|
|
458
|
+
updatedAt?: string | null | undefined;
|
|
459
|
+
finishedAt?: string | null | undefined;
|
|
460
|
+
completedAt?: string | null | undefined;
|
|
461
|
+
}>;
|
|
462
|
+
reconcileRun(runNo: string): Promise<{
|
|
463
|
+
runNo: string;
|
|
464
|
+
planNo: string;
|
|
465
|
+
state: string;
|
|
466
|
+
stepCode?: string | null | undefined;
|
|
467
|
+
repository?: {
|
|
468
|
+
repositoryKey: string;
|
|
469
|
+
id?: string | undefined;
|
|
470
|
+
connectionCode: string;
|
|
471
|
+
provider?: string | null | undefined;
|
|
472
|
+
externalId?: string | null | undefined;
|
|
473
|
+
namespaceExternalId?: string | null | undefined;
|
|
474
|
+
namespacePath?: string | null | undefined;
|
|
475
|
+
name?: string | null | undefined;
|
|
476
|
+
fullName: string;
|
|
477
|
+
description?: string | null | undefined;
|
|
478
|
+
visibility?: string | null | undefined;
|
|
479
|
+
defaultBranch?: string | null | undefined;
|
|
480
|
+
lastObservedRevision?: string | null | undefined;
|
|
481
|
+
webUrl?: string | null | undefined;
|
|
482
|
+
cloneUrl?: string | null | undefined;
|
|
483
|
+
managementMode?: string | null | undefined;
|
|
484
|
+
status: string;
|
|
485
|
+
ownerTeamId?: string | null | undefined;
|
|
486
|
+
lastReconciledAt?: string | null | undefined;
|
|
487
|
+
version?: number | undefined;
|
|
488
|
+
repositoryId: string | undefined;
|
|
489
|
+
observedRevision: string | null | undefined;
|
|
490
|
+
} | null | undefined;
|
|
491
|
+
retryable: boolean;
|
|
492
|
+
errorCode?: string | null | undefined;
|
|
493
|
+
errorMessage?: string | null | undefined;
|
|
494
|
+
clientRequestId?: string | null | undefined;
|
|
495
|
+
createdAt?: string | null | undefined;
|
|
496
|
+
startedAt?: string | null | undefined;
|
|
497
|
+
updatedAt?: string | null | undefined;
|
|
498
|
+
finishedAt?: string | null | undefined;
|
|
499
|
+
completedAt?: string | null | undefined;
|
|
500
|
+
}>;
|
|
501
|
+
reconcileRepository(repositoryKey: string, idempotencyKey: string): Promise<{
|
|
502
|
+
runNo: string;
|
|
503
|
+
planNo: string;
|
|
504
|
+
state: string;
|
|
505
|
+
stepCode?: string | null | undefined;
|
|
506
|
+
repository?: {
|
|
507
|
+
repositoryKey: string;
|
|
508
|
+
id?: string | undefined;
|
|
509
|
+
connectionCode: string;
|
|
510
|
+
provider?: string | null | undefined;
|
|
511
|
+
externalId?: string | null | undefined;
|
|
512
|
+
namespaceExternalId?: string | null | undefined;
|
|
513
|
+
namespacePath?: string | null | undefined;
|
|
514
|
+
name?: string | null | undefined;
|
|
515
|
+
fullName: string;
|
|
516
|
+
description?: string | null | undefined;
|
|
517
|
+
visibility?: string | null | undefined;
|
|
518
|
+
defaultBranch?: string | null | undefined;
|
|
519
|
+
lastObservedRevision?: string | null | undefined;
|
|
520
|
+
webUrl?: string | null | undefined;
|
|
521
|
+
cloneUrl?: string | null | undefined;
|
|
522
|
+
managementMode?: string | null | undefined;
|
|
523
|
+
status: string;
|
|
524
|
+
ownerTeamId?: string | null | undefined;
|
|
525
|
+
lastReconciledAt?: string | null | undefined;
|
|
526
|
+
version?: number | undefined;
|
|
527
|
+
repositoryId: string | undefined;
|
|
528
|
+
observedRevision: string | null | undefined;
|
|
529
|
+
} | null | undefined;
|
|
530
|
+
retryable: boolean;
|
|
531
|
+
errorCode?: string | null | undefined;
|
|
532
|
+
errorMessage?: string | null | undefined;
|
|
533
|
+
clientRequestId?: string | null | undefined;
|
|
534
|
+
createdAt?: string | null | undefined;
|
|
535
|
+
startedAt?: string | null | undefined;
|
|
536
|
+
updatedAt?: string | null | undefined;
|
|
537
|
+
finishedAt?: string | null | undefined;
|
|
538
|
+
completedAt?: string | null | undefined;
|
|
539
|
+
}>;
|
|
540
|
+
}
|