@numa-tech/numa 1.23.1 → 1.25.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.
Files changed (51) hide show
  1. package/README.md +4 -0
  2. package/dist/authorization/application-client.d.ts +608 -6
  3. package/dist/authorization/application-client.js +1 -1
  4. package/dist/authorization/application-client.js.map +1 -1
  5. package/dist/authorization/application-schemas.d.ts +171 -0
  6. package/dist/authorization/application-schemas.js +14 -1
  7. package/dist/authorization/application-schemas.js.map +1 -1
  8. package/dist/authorization/commands.d.ts +2 -1
  9. package/dist/authorization/commands.js +2 -0
  10. package/dist/authorization/commands.js.map +1 -1
  11. package/dist/authorization/managed-keycloak-client.d.ts +863 -0
  12. package/dist/authorization/managed-keycloak-client.js +182 -0
  13. package/dist/authorization/managed-keycloak-client.js.map +1 -0
  14. package/dist/authorization/managed-keycloak-commands.d.ts +10 -0
  15. package/dist/authorization/managed-keycloak-commands.js +113 -0
  16. package/dist/authorization/managed-keycloak-commands.js.map +1 -0
  17. package/dist/authorization/managed-keycloak-schemas.d.ts +178 -0
  18. package/dist/authorization/managed-keycloak-schemas.js +55 -0
  19. package/dist/authorization/managed-keycloak-schemas.js.map +1 -0
  20. package/dist/business-issuer.js +3 -5
  21. package/dist/business-issuer.js.map +1 -1
  22. package/dist/command-catalog.js +2 -0
  23. package/dist/command-catalog.js.map +1 -1
  24. package/dist/kb/client.js +10 -5
  25. package/dist/kb/client.js.map +1 -1
  26. package/dist/kb/commands.js +2 -2
  27. package/dist/kb/commands.js.map +1 -1
  28. package/dist/kb/config.d.ts +3 -3
  29. package/dist/kb/config.js +25 -20
  30. package/dist/kb/config.js.map +1 -1
  31. package/dist/login-recovery.js +2 -2
  32. package/dist/login-recovery.js.map +1 -1
  33. package/dist/mcp-gateway/profile.d.ts +4 -0
  34. package/dist/mcp-gateway/profile.js +6 -3
  35. package/dist/mcp-gateway/profile.js.map +1 -1
  36. package/dist/mcp-gateway/runtime.js +14 -0
  37. package/dist/mcp-gateway/runtime.js.map +1 -1
  38. package/docs/design/kb-cli.md +4 -4
  39. package/docs/kb-access.md +14 -7
  40. package/docs/keycloak-managed-import.md +41 -0
  41. package/examples/jev/README.md +65 -0
  42. package/examples/jev/platform-client.test.ts +136 -0
  43. package/examples/jev/platform-client.ts +122 -0
  44. package/package.json +6 -5
  45. package/skills/numa-jev/LICENSE +21 -0
  46. package/skills/numa-jev/SKILL.md +54 -0
  47. package/skills/numa-jev/assets/decision.json +37 -0
  48. package/skills/numa-jev/numa-skill.json +8 -0
  49. package/skills/numa-jev/references/application-integration.md +36 -0
  50. package/skills/numa-jev/references/mcp-usage.md +53 -0
  51. package/skills/numa-jev/references/upstream.md +13 -0
@@ -0,0 +1,863 @@
1
+ import type { AuthConfig } from "../config.js";
2
+ import { type KeycloakTokenProvider } from "../oauth.js";
3
+ import * as s from "./managed-keycloak-schemas.js";
4
+ export interface ManagedKeycloakDependencies {
5
+ fetch?: typeof fetch;
6
+ tokenProvider?: KeycloakTokenProvider;
7
+ }
8
+ export declare class ManagedKeycloakClient {
9
+ private readonly config;
10
+ private readonly dependencies;
11
+ constructor(config: AuthConfig, dependencies?: ManagedKeycloakDependencies);
12
+ private request;
13
+ capabilities(issuerId: string): Promise<Record<string, unknown>>;
14
+ configuration(context: s.ManagedKeycloakContext, exchangeClientInstanceId?: string): Promise<{
15
+ [x: string]: unknown;
16
+ issuerId: string;
17
+ issuerVersion: number;
18
+ version: number;
19
+ intentVersion: number;
20
+ appliedVersion: number;
21
+ exchangeClientVersion?: number | null | undefined;
22
+ exchangeClientInstanceId?: string | null | undefined;
23
+ configuration: {
24
+ schemaVersion: "1";
25
+ kind: "KEYCLOAK_API_KEY_CONFIGURATION";
26
+ target: {
27
+ issuerId: string;
28
+ platformEnvironmentId: number;
29
+ applicationId: number;
30
+ };
31
+ realm: {
32
+ enabled: boolean;
33
+ adminRoleClientRef?: string | undefined;
34
+ };
35
+ protectedUserAttribute: {
36
+ name: "mci_api_keys";
37
+ multivalued: true;
38
+ permissions: {
39
+ view: ["admin"];
40
+ edit: ["admin"];
41
+ };
42
+ validations: {
43
+ length: {
44
+ max: 2048;
45
+ };
46
+ };
47
+ };
48
+ exchangeClient: {
49
+ clientInstanceId: string;
50
+ enabled: boolean;
51
+ };
52
+ managementRoles: {
53
+ ownerClientRef: string;
54
+ definitions: ("mci-devops-platform-api-key-user" | "mci-devops-platform-ops-admin")[];
55
+ };
56
+ clientConfigurationRefs: {
57
+ clientInstanceId: string;
58
+ applicationReferenceId: string;
59
+ }[];
60
+ authorization: {
61
+ mode: "PRESERVE";
62
+ } | {
63
+ mode: "APPLY_REFERENCED";
64
+ applicationEnvironmentId: string;
65
+ definitionVersion: number;
66
+ enableAuthorization: boolean;
67
+ };
68
+ } | null;
69
+ }>;
70
+ save(issuerId: string, input: unknown): Promise<{
71
+ [x: string]: unknown;
72
+ issuerId: string;
73
+ issuerVersion: number;
74
+ version: number;
75
+ intentVersion: number;
76
+ appliedVersion: number;
77
+ exchangeClientVersion?: number | null | undefined;
78
+ exchangeClientInstanceId?: string | null | undefined;
79
+ configuration: {
80
+ schemaVersion: "1";
81
+ kind: "KEYCLOAK_API_KEY_CONFIGURATION";
82
+ target: {
83
+ issuerId: string;
84
+ platformEnvironmentId: number;
85
+ applicationId: number;
86
+ };
87
+ realm: {
88
+ enabled: boolean;
89
+ adminRoleClientRef?: string | undefined;
90
+ };
91
+ protectedUserAttribute: {
92
+ name: "mci_api_keys";
93
+ multivalued: true;
94
+ permissions: {
95
+ view: ["admin"];
96
+ edit: ["admin"];
97
+ };
98
+ validations: {
99
+ length: {
100
+ max: 2048;
101
+ };
102
+ };
103
+ };
104
+ exchangeClient: {
105
+ clientInstanceId: string;
106
+ enabled: boolean;
107
+ };
108
+ managementRoles: {
109
+ ownerClientRef: string;
110
+ definitions: ("mci-devops-platform-api-key-user" | "mci-devops-platform-ops-admin")[];
111
+ };
112
+ clientConfigurationRefs: {
113
+ clientInstanceId: string;
114
+ applicationReferenceId: string;
115
+ }[];
116
+ authorization: {
117
+ mode: "PRESERVE";
118
+ } | {
119
+ mode: "APPLY_REFERENCED";
120
+ applicationEnvironmentId: string;
121
+ definitionVersion: number;
122
+ enableAuthorization: boolean;
123
+ };
124
+ } | null;
125
+ }>;
126
+ preview(applicationId: number, input: unknown): Promise<{
127
+ [x: string]: unknown;
128
+ id: string;
129
+ applicationId: number;
130
+ status: string;
131
+ version: number;
132
+ planDigest: string;
133
+ predecessorId: string | null;
134
+ createdAt: string;
135
+ updatedAt: string;
136
+ steps: {
137
+ [x: string]: unknown;
138
+ ordinal: number;
139
+ kind: string;
140
+ targetId: string;
141
+ status: string;
142
+ version: number;
143
+ stepDigest: string;
144
+ childEvidence?: Record<string, unknown> | null | undefined;
145
+ }[];
146
+ execution?: {
147
+ [x: string]: unknown;
148
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
149
+ currentStep?: number | null | undefined;
150
+ attempts?: number | undefined;
151
+ errorCode?: string | null | undefined;
152
+ errorDetails?: Record<string, unknown> | null | undefined;
153
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
154
+ verifiedAt?: string | null | undefined;
155
+ observedBundleDigest?: string | null | undefined;
156
+ } | undefined;
157
+ collaboration: {
158
+ [x: string]: unknown;
159
+ state: string;
160
+ allowedActions: string[];
161
+ };
162
+ operation: "MANAGED_KEYCLOAK_IMPORT";
163
+ plan: {
164
+ [x: string]: unknown;
165
+ applicationId: number;
166
+ configurationBundle: {
167
+ [x: string]: unknown;
168
+ status: "BLOCKED" | "READY";
169
+ bundleDigest: string;
170
+ javascriptPolicyDeletionRequired?: boolean | undefined;
171
+ objects: {
172
+ [x: string]: unknown;
173
+ key: string;
174
+ kind: string;
175
+ logicalId: string;
176
+ action: string;
177
+ dependencies: string[];
178
+ desired?: unknown;
179
+ observed?: unknown;
180
+ baseline?: unknown;
181
+ }[];
182
+ differences: {
183
+ [x: string]: unknown;
184
+ objectKey: string;
185
+ field: string;
186
+ action: string;
187
+ current?: unknown;
188
+ desired?: unknown;
189
+ baseline?: unknown;
190
+ }[];
191
+ blockers: {
192
+ [x: string]: unknown;
193
+ code: string;
194
+ objectKey?: string | undefined;
195
+ message?: string | undefined;
196
+ }[];
197
+ };
198
+ managedConfiguration: {
199
+ [x: string]: unknown;
200
+ configuration: {
201
+ [x: string]: unknown;
202
+ schemaVersion: "1";
203
+ kind: "KEYCLOAK_API_KEY_CONFIGURATION";
204
+ target: {
205
+ issuerId: string;
206
+ applicationId: number;
207
+ platformEnvironmentId: number;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ } | {
213
+ [x: string]: unknown;
214
+ id: string;
215
+ applicationId: number;
216
+ status: string;
217
+ version: number;
218
+ planDigest: string;
219
+ predecessorId: string | null;
220
+ steps: {
221
+ [x: string]: unknown;
222
+ ordinal: number;
223
+ kind: string;
224
+ targetId: string;
225
+ status: string;
226
+ version: number;
227
+ stepDigest: string;
228
+ childEvidence?: Record<string, unknown> | null | undefined;
229
+ }[];
230
+ collaboration: {
231
+ [x: string]: unknown;
232
+ state: string;
233
+ allowedActions: string[];
234
+ };
235
+ createdAt: string | number;
236
+ updatedAt: string | number;
237
+ execution?: {
238
+ [x: string]: unknown;
239
+ status: string;
240
+ } | undefined;
241
+ operation: "ENVIRONMENT_WITHDRAWAL";
242
+ plan: {
243
+ [x: string]: unknown;
244
+ applicationId: number;
245
+ operation: "ENVIRONMENT_WITHDRAWAL";
246
+ protocolVersion: 4;
247
+ };
248
+ } | {
249
+ [x: string]: unknown;
250
+ id: string;
251
+ applicationId: number;
252
+ status: string;
253
+ version: number;
254
+ planDigest: string;
255
+ predecessorId: string | null;
256
+ steps: {
257
+ [x: string]: unknown;
258
+ ordinal: number;
259
+ kind: string;
260
+ targetId: string;
261
+ status: string;
262
+ version: number;
263
+ stepDigest: string;
264
+ childEvidence?: Record<string, unknown> | null | undefined;
265
+ }[];
266
+ collaboration: {
267
+ [x: string]: unknown;
268
+ state: string;
269
+ allowedActions: string[];
270
+ };
271
+ createdAt: string | number;
272
+ updatedAt: string | number;
273
+ execution?: {
274
+ [x: string]: unknown;
275
+ status: string;
276
+ } | undefined;
277
+ operation: "GATEWAY_CONFIGURATION_DELIVERY";
278
+ plan: {
279
+ [x: string]: unknown;
280
+ applicationId: number;
281
+ operation: "GATEWAY_CONFIGURATION_DELIVERY";
282
+ protocolVersion: 5;
283
+ };
284
+ } | {
285
+ [x: string]: unknown;
286
+ id: string;
287
+ applicationId: number;
288
+ status: string;
289
+ version: number;
290
+ planDigest: string;
291
+ predecessorId: string | null;
292
+ createdAt: string;
293
+ updatedAt: string;
294
+ steps: {
295
+ [x: string]: unknown;
296
+ ordinal: number;
297
+ kind: string;
298
+ targetId: string;
299
+ status: string;
300
+ version: number;
301
+ stepDigest: string;
302
+ childEvidence?: Record<string, unknown> | null | undefined;
303
+ }[];
304
+ execution?: {
305
+ [x: string]: unknown;
306
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
307
+ currentStep?: number | null | undefined;
308
+ attempts?: number | undefined;
309
+ errorCode?: string | null | undefined;
310
+ errorDetails?: Record<string, unknown> | null | undefined;
311
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
312
+ verifiedAt?: string | null | undefined;
313
+ observedBundleDigest?: string | null | undefined;
314
+ } | undefined;
315
+ collaboration: {
316
+ [x: string]: unknown;
317
+ state: string;
318
+ allowedActions: string[];
319
+ };
320
+ operation: "IDENTITY_PUBLICATION";
321
+ plan: {
322
+ [x: string]: unknown;
323
+ applicationId: number;
324
+ definitionVersion: number;
325
+ definitionDigest: string;
326
+ protocolVersion?: 1 | 2 | 3 | undefined;
327
+ publicationInputs?: {
328
+ [x: string]: unknown;
329
+ schemaVersion: 1;
330
+ applicationId: number;
331
+ rows: Record<string, Record<string, unknown>[] | Record<string, unknown>>;
332
+ digest: string;
333
+ } | undefined;
334
+ environmentConfigurations?: {
335
+ [x: string]: unknown;
336
+ schemaVersion: 1;
337
+ applicationId: number;
338
+ digest: string;
339
+ configurations: {
340
+ [x: string]: unknown;
341
+ authEnvironmentId: string;
342
+ environmentId: number;
343
+ envCode: string;
344
+ slot: string;
345
+ bindingVersion: number;
346
+ configuration: Record<string, unknown>;
347
+ sourceRevisions: Record<string, unknown>;
348
+ digest: string;
349
+ }[];
350
+ resourceKeys: string[];
351
+ } | undefined;
352
+ nacosDistributions?: {
353
+ [x: string]: unknown;
354
+ itemId: string;
355
+ intentDigest: string;
356
+ resourceKey: string;
357
+ }[] | undefined;
358
+ distributionPreview?: {
359
+ [x: string]: unknown;
360
+ target: {
361
+ [x: string]: unknown;
362
+ environmentId: number;
363
+ applicationId: number;
364
+ group: string;
365
+ dataId: string;
366
+ };
367
+ }[] | undefined;
368
+ configurationBundle?: {
369
+ [x: string]: unknown;
370
+ status: "BLOCKED" | "READY";
371
+ bundleDigest: string;
372
+ javascriptPolicyDeletionRequired?: boolean | undefined;
373
+ objects: {
374
+ [x: string]: unknown;
375
+ key: string;
376
+ kind: string;
377
+ logicalId: string;
378
+ action: string;
379
+ dependencies: string[];
380
+ desired?: unknown;
381
+ observed?: unknown;
382
+ baseline?: unknown;
383
+ }[];
384
+ differences: {
385
+ [x: string]: unknown;
386
+ objectKey: string;
387
+ field: string;
388
+ action: string;
389
+ current?: unknown;
390
+ desired?: unknown;
391
+ baseline?: unknown;
392
+ }[];
393
+ blockers: {
394
+ [x: string]: unknown;
395
+ code: string;
396
+ objectKey?: string | undefined;
397
+ message?: string | undefined;
398
+ }[];
399
+ } | undefined;
400
+ targets: Record<string, unknown>[];
401
+ instances: Record<string, Record<string, unknown>>;
402
+ steps: Record<string, unknown>[];
403
+ };
404
+ } | {
405
+ [x: string]: unknown;
406
+ id: string;
407
+ applicationId: number;
408
+ status: string;
409
+ version: number;
410
+ planDigest: string;
411
+ predecessorId: string | null;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ steps: {
415
+ [x: string]: unknown;
416
+ ordinal: number;
417
+ kind: string;
418
+ targetId: string;
419
+ status: string;
420
+ version: number;
421
+ stepDigest: string;
422
+ childEvidence?: Record<string, unknown> | null | undefined;
423
+ }[];
424
+ execution?: {
425
+ [x: string]: unknown;
426
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
427
+ currentStep?: number | null | undefined;
428
+ attempts?: number | undefined;
429
+ errorCode?: string | null | undefined;
430
+ errorDetails?: Record<string, unknown> | null | undefined;
431
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
432
+ verifiedAt?: string | null | undefined;
433
+ observedBundleDigest?: string | null | undefined;
434
+ } | undefined;
435
+ collaboration: {
436
+ [x: string]: unknown;
437
+ state: string;
438
+ allowedActions: string[];
439
+ };
440
+ operation: "CREDENTIAL_ROTATION";
441
+ plan: {
442
+ [x: string]: unknown;
443
+ operation: "CREDENTIAL_ROTATION";
444
+ schemaVersion: 1;
445
+ applicationId: number;
446
+ credentialContext: {
447
+ [x: string]: unknown;
448
+ schemaVersion: 1;
449
+ applicationId: number;
450
+ environmentId: string;
451
+ referenceId: string;
452
+ definitionId: string;
453
+ instanceId: string;
454
+ identityKey: string;
455
+ issuerId: string | null;
456
+ issuerUrl: string;
457
+ issuerVersion: number;
458
+ environmentVersion: number;
459
+ gatewayId: string | null;
460
+ gatewayVersion: number | null;
461
+ gatewayBindingId: string | null;
462
+ gatewayBindingVersion: number | null;
463
+ referenceVersion: number;
464
+ targetVersion: number;
465
+ definitionVersion: number;
466
+ publishedRevision: number | null;
467
+ appliedRevision: number | null;
468
+ instanceVersion: number;
469
+ clientId: string;
470
+ remoteUuid: string | null;
471
+ credentialState: string;
472
+ publicClient: boolean;
473
+ enabled: boolean;
474
+ verified: boolean;
475
+ locked: boolean;
476
+ affectedApplications: {
477
+ [x: string]: unknown;
478
+ applicationId: number;
479
+ code: string;
480
+ name: string;
481
+ referenceId: string;
482
+ referenceVersion: number;
483
+ targetVersion: number;
484
+ }[];
485
+ };
486
+ steps: {
487
+ [x: string]: unknown;
488
+ kind: "CREDENTIAL_ROTATE";
489
+ targetId: string;
490
+ }[];
491
+ };
492
+ credentialOperation: Record<string, unknown>;
493
+ }>;
494
+ export(context: s.ManagedKeycloakContext, view: "current" | "observed"): Promise<unknown>;
495
+ restorePreview(applicationId: number, sourceJobId: string, input: unknown): Promise<{
496
+ [x: string]: unknown;
497
+ id: string;
498
+ applicationId: number;
499
+ status: string;
500
+ version: number;
501
+ planDigest: string;
502
+ predecessorId: string | null;
503
+ createdAt: string;
504
+ updatedAt: string;
505
+ steps: {
506
+ [x: string]: unknown;
507
+ ordinal: number;
508
+ kind: string;
509
+ targetId: string;
510
+ status: string;
511
+ version: number;
512
+ stepDigest: string;
513
+ childEvidence?: Record<string, unknown> | null | undefined;
514
+ }[];
515
+ execution?: {
516
+ [x: string]: unknown;
517
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
518
+ currentStep?: number | null | undefined;
519
+ attempts?: number | undefined;
520
+ errorCode?: string | null | undefined;
521
+ errorDetails?: Record<string, unknown> | null | undefined;
522
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
523
+ verifiedAt?: string | null | undefined;
524
+ observedBundleDigest?: string | null | undefined;
525
+ } | undefined;
526
+ collaboration: {
527
+ [x: string]: unknown;
528
+ state: string;
529
+ allowedActions: string[];
530
+ };
531
+ operation: "MANAGED_KEYCLOAK_IMPORT";
532
+ plan: {
533
+ [x: string]: unknown;
534
+ applicationId: number;
535
+ configurationBundle: {
536
+ [x: string]: unknown;
537
+ status: "BLOCKED" | "READY";
538
+ bundleDigest: string;
539
+ javascriptPolicyDeletionRequired?: boolean | undefined;
540
+ objects: {
541
+ [x: string]: unknown;
542
+ key: string;
543
+ kind: string;
544
+ logicalId: string;
545
+ action: string;
546
+ dependencies: string[];
547
+ desired?: unknown;
548
+ observed?: unknown;
549
+ baseline?: unknown;
550
+ }[];
551
+ differences: {
552
+ [x: string]: unknown;
553
+ objectKey: string;
554
+ field: string;
555
+ action: string;
556
+ current?: unknown;
557
+ desired?: unknown;
558
+ baseline?: unknown;
559
+ }[];
560
+ blockers: {
561
+ [x: string]: unknown;
562
+ code: string;
563
+ objectKey?: string | undefined;
564
+ message?: string | undefined;
565
+ }[];
566
+ };
567
+ managedConfiguration: {
568
+ [x: string]: unknown;
569
+ configuration: {
570
+ [x: string]: unknown;
571
+ schemaVersion: "1";
572
+ kind: "KEYCLOAK_API_KEY_CONFIGURATION";
573
+ target: {
574
+ issuerId: string;
575
+ applicationId: number;
576
+ platformEnvironmentId: number;
577
+ };
578
+ };
579
+ };
580
+ };
581
+ } | {
582
+ [x: string]: unknown;
583
+ id: string;
584
+ applicationId: number;
585
+ status: string;
586
+ version: number;
587
+ planDigest: string;
588
+ predecessorId: string | null;
589
+ steps: {
590
+ [x: string]: unknown;
591
+ ordinal: number;
592
+ kind: string;
593
+ targetId: string;
594
+ status: string;
595
+ version: number;
596
+ stepDigest: string;
597
+ childEvidence?: Record<string, unknown> | null | undefined;
598
+ }[];
599
+ collaboration: {
600
+ [x: string]: unknown;
601
+ state: string;
602
+ allowedActions: string[];
603
+ };
604
+ createdAt: string | number;
605
+ updatedAt: string | number;
606
+ execution?: {
607
+ [x: string]: unknown;
608
+ status: string;
609
+ } | undefined;
610
+ operation: "ENVIRONMENT_WITHDRAWAL";
611
+ plan: {
612
+ [x: string]: unknown;
613
+ applicationId: number;
614
+ operation: "ENVIRONMENT_WITHDRAWAL";
615
+ protocolVersion: 4;
616
+ };
617
+ } | {
618
+ [x: string]: unknown;
619
+ id: string;
620
+ applicationId: number;
621
+ status: string;
622
+ version: number;
623
+ planDigest: string;
624
+ predecessorId: string | null;
625
+ steps: {
626
+ [x: string]: unknown;
627
+ ordinal: number;
628
+ kind: string;
629
+ targetId: string;
630
+ status: string;
631
+ version: number;
632
+ stepDigest: string;
633
+ childEvidence?: Record<string, unknown> | null | undefined;
634
+ }[];
635
+ collaboration: {
636
+ [x: string]: unknown;
637
+ state: string;
638
+ allowedActions: string[];
639
+ };
640
+ createdAt: string | number;
641
+ updatedAt: string | number;
642
+ execution?: {
643
+ [x: string]: unknown;
644
+ status: string;
645
+ } | undefined;
646
+ operation: "GATEWAY_CONFIGURATION_DELIVERY";
647
+ plan: {
648
+ [x: string]: unknown;
649
+ applicationId: number;
650
+ operation: "GATEWAY_CONFIGURATION_DELIVERY";
651
+ protocolVersion: 5;
652
+ };
653
+ } | {
654
+ [x: string]: unknown;
655
+ id: string;
656
+ applicationId: number;
657
+ status: string;
658
+ version: number;
659
+ planDigest: string;
660
+ predecessorId: string | null;
661
+ createdAt: string;
662
+ updatedAt: string;
663
+ steps: {
664
+ [x: string]: unknown;
665
+ ordinal: number;
666
+ kind: string;
667
+ targetId: string;
668
+ status: string;
669
+ version: number;
670
+ stepDigest: string;
671
+ childEvidence?: Record<string, unknown> | null | undefined;
672
+ }[];
673
+ execution?: {
674
+ [x: string]: unknown;
675
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
676
+ currentStep?: number | null | undefined;
677
+ attempts?: number | undefined;
678
+ errorCode?: string | null | undefined;
679
+ errorDetails?: Record<string, unknown> | null | undefined;
680
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
681
+ verifiedAt?: string | null | undefined;
682
+ observedBundleDigest?: string | null | undefined;
683
+ } | undefined;
684
+ collaboration: {
685
+ [x: string]: unknown;
686
+ state: string;
687
+ allowedActions: string[];
688
+ };
689
+ operation: "IDENTITY_PUBLICATION";
690
+ plan: {
691
+ [x: string]: unknown;
692
+ applicationId: number;
693
+ definitionVersion: number;
694
+ definitionDigest: string;
695
+ protocolVersion?: 1 | 2 | 3 | undefined;
696
+ publicationInputs?: {
697
+ [x: string]: unknown;
698
+ schemaVersion: 1;
699
+ applicationId: number;
700
+ rows: Record<string, Record<string, unknown>[] | Record<string, unknown>>;
701
+ digest: string;
702
+ } | undefined;
703
+ environmentConfigurations?: {
704
+ [x: string]: unknown;
705
+ schemaVersion: 1;
706
+ applicationId: number;
707
+ digest: string;
708
+ configurations: {
709
+ [x: string]: unknown;
710
+ authEnvironmentId: string;
711
+ environmentId: number;
712
+ envCode: string;
713
+ slot: string;
714
+ bindingVersion: number;
715
+ configuration: Record<string, unknown>;
716
+ sourceRevisions: Record<string, unknown>;
717
+ digest: string;
718
+ }[];
719
+ resourceKeys: string[];
720
+ } | undefined;
721
+ nacosDistributions?: {
722
+ [x: string]: unknown;
723
+ itemId: string;
724
+ intentDigest: string;
725
+ resourceKey: string;
726
+ }[] | undefined;
727
+ distributionPreview?: {
728
+ [x: string]: unknown;
729
+ target: {
730
+ [x: string]: unknown;
731
+ environmentId: number;
732
+ applicationId: number;
733
+ group: string;
734
+ dataId: string;
735
+ };
736
+ }[] | undefined;
737
+ configurationBundle?: {
738
+ [x: string]: unknown;
739
+ status: "BLOCKED" | "READY";
740
+ bundleDigest: string;
741
+ javascriptPolicyDeletionRequired?: boolean | undefined;
742
+ objects: {
743
+ [x: string]: unknown;
744
+ key: string;
745
+ kind: string;
746
+ logicalId: string;
747
+ action: string;
748
+ dependencies: string[];
749
+ desired?: unknown;
750
+ observed?: unknown;
751
+ baseline?: unknown;
752
+ }[];
753
+ differences: {
754
+ [x: string]: unknown;
755
+ objectKey: string;
756
+ field: string;
757
+ action: string;
758
+ current?: unknown;
759
+ desired?: unknown;
760
+ baseline?: unknown;
761
+ }[];
762
+ blockers: {
763
+ [x: string]: unknown;
764
+ code: string;
765
+ objectKey?: string | undefined;
766
+ message?: string | undefined;
767
+ }[];
768
+ } | undefined;
769
+ targets: Record<string, unknown>[];
770
+ instances: Record<string, Record<string, unknown>>;
771
+ steps: Record<string, unknown>[];
772
+ };
773
+ } | {
774
+ [x: string]: unknown;
775
+ id: string;
776
+ applicationId: number;
777
+ status: string;
778
+ version: number;
779
+ planDigest: string;
780
+ predecessorId: string | null;
781
+ createdAt: string;
782
+ updatedAt: string;
783
+ steps: {
784
+ [x: string]: unknown;
785
+ ordinal: number;
786
+ kind: string;
787
+ targetId: string;
788
+ status: string;
789
+ version: number;
790
+ stepDigest: string;
791
+ childEvidence?: Record<string, unknown> | null | undefined;
792
+ }[];
793
+ execution?: {
794
+ [x: string]: unknown;
795
+ status: "QUEUED" | "RETRY_WAIT" | "RUNNING" | "SUCCEEDED" | "TERMINATED" | "WAITING_MANUAL";
796
+ currentStep?: number | null | undefined;
797
+ attempts?: number | undefined;
798
+ errorCode?: string | null | undefined;
799
+ errorDetails?: Record<string, unknown> | null | undefined;
800
+ javascriptPolicyDeletionConfirmed?: boolean | undefined;
801
+ verifiedAt?: string | null | undefined;
802
+ observedBundleDigest?: string | null | undefined;
803
+ } | undefined;
804
+ collaboration: {
805
+ [x: string]: unknown;
806
+ state: string;
807
+ allowedActions: string[];
808
+ };
809
+ operation: "CREDENTIAL_ROTATION";
810
+ plan: {
811
+ [x: string]: unknown;
812
+ operation: "CREDENTIAL_ROTATION";
813
+ schemaVersion: 1;
814
+ applicationId: number;
815
+ credentialContext: {
816
+ [x: string]: unknown;
817
+ schemaVersion: 1;
818
+ applicationId: number;
819
+ environmentId: string;
820
+ referenceId: string;
821
+ definitionId: string;
822
+ instanceId: string;
823
+ identityKey: string;
824
+ issuerId: string | null;
825
+ issuerUrl: string;
826
+ issuerVersion: number;
827
+ environmentVersion: number;
828
+ gatewayId: string | null;
829
+ gatewayVersion: number | null;
830
+ gatewayBindingId: string | null;
831
+ gatewayBindingVersion: number | null;
832
+ referenceVersion: number;
833
+ targetVersion: number;
834
+ definitionVersion: number;
835
+ publishedRevision: number | null;
836
+ appliedRevision: number | null;
837
+ instanceVersion: number;
838
+ clientId: string;
839
+ remoteUuid: string | null;
840
+ credentialState: string;
841
+ publicClient: boolean;
842
+ enabled: boolean;
843
+ verified: boolean;
844
+ locked: boolean;
845
+ affectedApplications: {
846
+ [x: string]: unknown;
847
+ applicationId: number;
848
+ code: string;
849
+ name: string;
850
+ referenceId: string;
851
+ referenceVersion: number;
852
+ targetVersion: number;
853
+ }[];
854
+ };
855
+ steps: {
856
+ [x: string]: unknown;
857
+ kind: "CREDENTIAL_ROTATE";
858
+ targetId: string;
859
+ }[];
860
+ };
861
+ credentialOperation: Record<string, unknown>;
862
+ }>;
863
+ }