@inf-monkeys-tech/monkeys-cli 0.12.55 → 0.12.57

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.
@@ -0,0 +1,831 @@
1
+ import { DeclarativeClient } from './client.js';
2
+ export interface AddOptions {
3
+ subscription: string;
4
+ id: string;
5
+ page: string;
6
+ parent?: string;
7
+ publish?: boolean;
8
+ dryRun?: boolean;
9
+ yes?: boolean;
10
+ team?: string;
11
+ surface?: 'studio' | 'kernel';
12
+ environment?: string;
13
+ placement?: string;
14
+ waitSeconds?: number;
15
+ }
16
+ /**
17
+ * Adds one published Page to a Navigation draft as a target node. The node takes
18
+ * the released target's reference and access policy from the Server, so a Page
19
+ * without an active release on the surface is refused before anything is saved.
20
+ * Navigation keeps its own draft and release; --publish runs that release separately.
21
+ */
22
+ export declare function runNavigationAdd(options: AddOptions, suppliedClient?: DeclarativeClient): Promise<{
23
+ resourceKind: 'navigation';
24
+ resourceId: string;
25
+ page: string;
26
+ surface: "kernel" | "studio";
27
+ publication: unknown;
28
+ changed: boolean;
29
+ node: {
30
+ kind: "group";
31
+ label: {
32
+ defaultLocale: string;
33
+ values: Record<string, string>;
34
+ };
35
+ iconRef?: {
36
+ kind: string;
37
+ id: string;
38
+ ownerRepo: string;
39
+ visibility: "global" | "public" | "tenant";
40
+ tenantScope?: {
41
+ tenantRef: {
42
+ kind: string;
43
+ id: string;
44
+ ownerRepo: string;
45
+ };
46
+ dataSpaceRef: {
47
+ kind: string;
48
+ id: string;
49
+ ownerRepo: string;
50
+ };
51
+ teamRef?: {
52
+ kind: string;
53
+ id: string;
54
+ ownerRepo: string;
55
+ } | undefined;
56
+ } | undefined;
57
+ } | undefined;
58
+ collapsedByDefault: boolean;
59
+ audience: {
60
+ authenticated: boolean;
61
+ groupAllOf: {
62
+ kind: string;
63
+ id: string;
64
+ ownerRepo: string;
65
+ visibility: "global" | "public" | "tenant";
66
+ tenantScope?: {
67
+ tenantRef: {
68
+ kind: string;
69
+ id: string;
70
+ ownerRepo: string;
71
+ };
72
+ dataSpaceRef: {
73
+ kind: string;
74
+ id: string;
75
+ ownerRepo: string;
76
+ };
77
+ teamRef?: {
78
+ kind: string;
79
+ id: string;
80
+ ownerRepo: string;
81
+ } | undefined;
82
+ } | undefined;
83
+ }[];
84
+ groupAnyOf: {
85
+ kind: string;
86
+ id: string;
87
+ ownerRepo: string;
88
+ visibility: "global" | "public" | "tenant";
89
+ tenantScope?: {
90
+ tenantRef: {
91
+ kind: string;
92
+ id: string;
93
+ ownerRepo: string;
94
+ };
95
+ dataSpaceRef: {
96
+ kind: string;
97
+ id: string;
98
+ ownerRepo: string;
99
+ };
100
+ teamRef?: {
101
+ kind: string;
102
+ id: string;
103
+ ownerRepo: string;
104
+ } | undefined;
105
+ } | undefined;
106
+ }[];
107
+ permissionAllOf: string[];
108
+ permissionAnyOf: string[];
109
+ conditionAllOf: {
110
+ revision: number;
111
+ schemaVersion: number;
112
+ contentHash: string;
113
+ kind: string;
114
+ id: string;
115
+ ownerRepo: string;
116
+ visibility: "global" | "public" | "tenant";
117
+ tenantScope?: {
118
+ tenantRef: {
119
+ kind: string;
120
+ id: string;
121
+ ownerRepo: string;
122
+ };
123
+ dataSpaceRef: {
124
+ kind: string;
125
+ id: string;
126
+ ownerRepo: string;
127
+ };
128
+ teamRef?: {
129
+ kind: string;
130
+ id: string;
131
+ ownerRepo: string;
132
+ } | undefined;
133
+ } | undefined;
134
+ }[];
135
+ };
136
+ nodeId: string;
137
+ parentNodeId: string | null;
138
+ order: number;
139
+ disabled?: boolean | undefined;
140
+ } | {
141
+ kind: "target";
142
+ label: {
143
+ defaultLocale: string;
144
+ values: Record<string, string>;
145
+ };
146
+ iconRef?: {
147
+ kind: string;
148
+ id: string;
149
+ ownerRepo: string;
150
+ visibility: "global" | "public" | "tenant";
151
+ tenantScope?: {
152
+ tenantRef: {
153
+ kind: string;
154
+ id: string;
155
+ ownerRepo: string;
156
+ };
157
+ dataSpaceRef: {
158
+ kind: string;
159
+ id: string;
160
+ ownerRepo: string;
161
+ };
162
+ teamRef?: {
163
+ kind: string;
164
+ id: string;
165
+ ownerRepo: string;
166
+ } | undefined;
167
+ } | undefined;
168
+ } | undefined;
169
+ tone?: "danger" | "default" | undefined;
170
+ targetRef: {
171
+ kind: string;
172
+ id: string;
173
+ ownerRepo: string;
174
+ visibility: "global" | "public" | "tenant";
175
+ tenantScope?: {
176
+ tenantRef: {
177
+ kind: string;
178
+ id: string;
179
+ ownerRepo: string;
180
+ };
181
+ dataSpaceRef: {
182
+ kind: string;
183
+ id: string;
184
+ ownerRepo: string;
185
+ };
186
+ teamRef?: {
187
+ kind: string;
188
+ id: string;
189
+ ownerRepo: string;
190
+ } | undefined;
191
+ } | undefined;
192
+ };
193
+ parameterMapping: Record<string, {
194
+ kind: "scope-field";
195
+ path: string;
196
+ } | {
197
+ kind: "binding-field";
198
+ bindingId: string;
199
+ path: string;
200
+ } | {
201
+ kind: "constant";
202
+ value: string | number | boolean | null;
203
+ } | {
204
+ kind: "route-parameter";
205
+ name: string;
206
+ } | {
207
+ kind: "query-parameter";
208
+ name: string;
209
+ } | {
210
+ kind: "identity";
211
+ name: "teamId" | "tenantId" | "userId";
212
+ } | {
213
+ kind: "intent-field";
214
+ path: string;
215
+ } | {
216
+ kind: "page-state";
217
+ stateId: string;
218
+ }>;
219
+ audience: {
220
+ authenticated: boolean;
221
+ groupAllOf: {
222
+ kind: string;
223
+ id: string;
224
+ ownerRepo: string;
225
+ visibility: "global" | "public" | "tenant";
226
+ tenantScope?: {
227
+ tenantRef: {
228
+ kind: string;
229
+ id: string;
230
+ ownerRepo: string;
231
+ };
232
+ dataSpaceRef: {
233
+ kind: string;
234
+ id: string;
235
+ ownerRepo: string;
236
+ };
237
+ teamRef?: {
238
+ kind: string;
239
+ id: string;
240
+ ownerRepo: string;
241
+ } | undefined;
242
+ } | undefined;
243
+ }[];
244
+ groupAnyOf: {
245
+ kind: string;
246
+ id: string;
247
+ ownerRepo: string;
248
+ visibility: "global" | "public" | "tenant";
249
+ tenantScope?: {
250
+ tenantRef: {
251
+ kind: string;
252
+ id: string;
253
+ ownerRepo: string;
254
+ };
255
+ dataSpaceRef: {
256
+ kind: string;
257
+ id: string;
258
+ ownerRepo: string;
259
+ };
260
+ teamRef?: {
261
+ kind: string;
262
+ id: string;
263
+ ownerRepo: string;
264
+ } | undefined;
265
+ } | undefined;
266
+ }[];
267
+ permissionAllOf: string[];
268
+ permissionAnyOf: string[];
269
+ conditionAllOf: {
270
+ revision: number;
271
+ schemaVersion: number;
272
+ contentHash: string;
273
+ kind: string;
274
+ id: string;
275
+ ownerRepo: string;
276
+ visibility: "global" | "public" | "tenant";
277
+ tenantScope?: {
278
+ tenantRef: {
279
+ kind: string;
280
+ id: string;
281
+ ownerRepo: string;
282
+ };
283
+ dataSpaceRef: {
284
+ kind: string;
285
+ id: string;
286
+ ownerRepo: string;
287
+ };
288
+ teamRef?: {
289
+ kind: string;
290
+ id: string;
291
+ ownerRepo: string;
292
+ } | undefined;
293
+ } | undefined;
294
+ }[];
295
+ };
296
+ nodeId: string;
297
+ parentNodeId: string | null;
298
+ order: number;
299
+ disabled?: boolean | undefined;
300
+ } | {
301
+ kind: "separator";
302
+ nodeId: string;
303
+ parentNodeId: string | null;
304
+ order: number;
305
+ disabled?: boolean | undefined;
306
+ };
307
+ } | {
308
+ resourceKind: 'navigation';
309
+ resourceId: string;
310
+ page: string;
311
+ surface: "kernel" | "studio";
312
+ publication?: never;
313
+ changed: boolean;
314
+ node: {
315
+ kind: "group";
316
+ label: {
317
+ defaultLocale: string;
318
+ values: Record<string, string>;
319
+ };
320
+ iconRef?: {
321
+ kind: string;
322
+ id: string;
323
+ ownerRepo: string;
324
+ visibility: "global" | "public" | "tenant";
325
+ tenantScope?: {
326
+ tenantRef: {
327
+ kind: string;
328
+ id: string;
329
+ ownerRepo: string;
330
+ };
331
+ dataSpaceRef: {
332
+ kind: string;
333
+ id: string;
334
+ ownerRepo: string;
335
+ };
336
+ teamRef?: {
337
+ kind: string;
338
+ id: string;
339
+ ownerRepo: string;
340
+ } | undefined;
341
+ } | undefined;
342
+ } | undefined;
343
+ collapsedByDefault: boolean;
344
+ audience: {
345
+ authenticated: boolean;
346
+ groupAllOf: {
347
+ kind: string;
348
+ id: string;
349
+ ownerRepo: string;
350
+ visibility: "global" | "public" | "tenant";
351
+ tenantScope?: {
352
+ tenantRef: {
353
+ kind: string;
354
+ id: string;
355
+ ownerRepo: string;
356
+ };
357
+ dataSpaceRef: {
358
+ kind: string;
359
+ id: string;
360
+ ownerRepo: string;
361
+ };
362
+ teamRef?: {
363
+ kind: string;
364
+ id: string;
365
+ ownerRepo: string;
366
+ } | undefined;
367
+ } | undefined;
368
+ }[];
369
+ groupAnyOf: {
370
+ kind: string;
371
+ id: string;
372
+ ownerRepo: string;
373
+ visibility: "global" | "public" | "tenant";
374
+ tenantScope?: {
375
+ tenantRef: {
376
+ kind: string;
377
+ id: string;
378
+ ownerRepo: string;
379
+ };
380
+ dataSpaceRef: {
381
+ kind: string;
382
+ id: string;
383
+ ownerRepo: string;
384
+ };
385
+ teamRef?: {
386
+ kind: string;
387
+ id: string;
388
+ ownerRepo: string;
389
+ } | undefined;
390
+ } | undefined;
391
+ }[];
392
+ permissionAllOf: string[];
393
+ permissionAnyOf: string[];
394
+ conditionAllOf: {
395
+ revision: number;
396
+ schemaVersion: number;
397
+ contentHash: string;
398
+ kind: string;
399
+ id: string;
400
+ ownerRepo: string;
401
+ visibility: "global" | "public" | "tenant";
402
+ tenantScope?: {
403
+ tenantRef: {
404
+ kind: string;
405
+ id: string;
406
+ ownerRepo: string;
407
+ };
408
+ dataSpaceRef: {
409
+ kind: string;
410
+ id: string;
411
+ ownerRepo: string;
412
+ };
413
+ teamRef?: {
414
+ kind: string;
415
+ id: string;
416
+ ownerRepo: string;
417
+ } | undefined;
418
+ } | undefined;
419
+ }[];
420
+ };
421
+ nodeId: string;
422
+ parentNodeId: string | null;
423
+ order: number;
424
+ disabled?: boolean | undefined;
425
+ } | {
426
+ kind: "target";
427
+ label: {
428
+ defaultLocale: string;
429
+ values: Record<string, string>;
430
+ };
431
+ iconRef?: {
432
+ kind: string;
433
+ id: string;
434
+ ownerRepo: string;
435
+ visibility: "global" | "public" | "tenant";
436
+ tenantScope?: {
437
+ tenantRef: {
438
+ kind: string;
439
+ id: string;
440
+ ownerRepo: string;
441
+ };
442
+ dataSpaceRef: {
443
+ kind: string;
444
+ id: string;
445
+ ownerRepo: string;
446
+ };
447
+ teamRef?: {
448
+ kind: string;
449
+ id: string;
450
+ ownerRepo: string;
451
+ } | undefined;
452
+ } | undefined;
453
+ } | undefined;
454
+ tone?: "danger" | "default" | undefined;
455
+ targetRef: {
456
+ kind: string;
457
+ id: string;
458
+ ownerRepo: string;
459
+ visibility: "global" | "public" | "tenant";
460
+ tenantScope?: {
461
+ tenantRef: {
462
+ kind: string;
463
+ id: string;
464
+ ownerRepo: string;
465
+ };
466
+ dataSpaceRef: {
467
+ kind: string;
468
+ id: string;
469
+ ownerRepo: string;
470
+ };
471
+ teamRef?: {
472
+ kind: string;
473
+ id: string;
474
+ ownerRepo: string;
475
+ } | undefined;
476
+ } | undefined;
477
+ };
478
+ parameterMapping: Record<string, {
479
+ kind: "scope-field";
480
+ path: string;
481
+ } | {
482
+ kind: "binding-field";
483
+ bindingId: string;
484
+ path: string;
485
+ } | {
486
+ kind: "constant";
487
+ value: string | number | boolean | null;
488
+ } | {
489
+ kind: "route-parameter";
490
+ name: string;
491
+ } | {
492
+ kind: "query-parameter";
493
+ name: string;
494
+ } | {
495
+ kind: "identity";
496
+ name: "teamId" | "tenantId" | "userId";
497
+ } | {
498
+ kind: "intent-field";
499
+ path: string;
500
+ } | {
501
+ kind: "page-state";
502
+ stateId: string;
503
+ }>;
504
+ audience: {
505
+ authenticated: boolean;
506
+ groupAllOf: {
507
+ kind: string;
508
+ id: string;
509
+ ownerRepo: string;
510
+ visibility: "global" | "public" | "tenant";
511
+ tenantScope?: {
512
+ tenantRef: {
513
+ kind: string;
514
+ id: string;
515
+ ownerRepo: string;
516
+ };
517
+ dataSpaceRef: {
518
+ kind: string;
519
+ id: string;
520
+ ownerRepo: string;
521
+ };
522
+ teamRef?: {
523
+ kind: string;
524
+ id: string;
525
+ ownerRepo: string;
526
+ } | undefined;
527
+ } | undefined;
528
+ }[];
529
+ groupAnyOf: {
530
+ kind: string;
531
+ id: string;
532
+ ownerRepo: string;
533
+ visibility: "global" | "public" | "tenant";
534
+ tenantScope?: {
535
+ tenantRef: {
536
+ kind: string;
537
+ id: string;
538
+ ownerRepo: string;
539
+ };
540
+ dataSpaceRef: {
541
+ kind: string;
542
+ id: string;
543
+ ownerRepo: string;
544
+ };
545
+ teamRef?: {
546
+ kind: string;
547
+ id: string;
548
+ ownerRepo: string;
549
+ } | undefined;
550
+ } | undefined;
551
+ }[];
552
+ permissionAllOf: string[];
553
+ permissionAnyOf: string[];
554
+ conditionAllOf: {
555
+ revision: number;
556
+ schemaVersion: number;
557
+ contentHash: string;
558
+ kind: string;
559
+ id: string;
560
+ ownerRepo: string;
561
+ visibility: "global" | "public" | "tenant";
562
+ tenantScope?: {
563
+ tenantRef: {
564
+ kind: string;
565
+ id: string;
566
+ ownerRepo: string;
567
+ };
568
+ dataSpaceRef: {
569
+ kind: string;
570
+ id: string;
571
+ ownerRepo: string;
572
+ };
573
+ teamRef?: {
574
+ kind: string;
575
+ id: string;
576
+ ownerRepo: string;
577
+ } | undefined;
578
+ } | undefined;
579
+ }[];
580
+ };
581
+ nodeId: string;
582
+ parentNodeId: string | null;
583
+ order: number;
584
+ disabled?: boolean | undefined;
585
+ } | {
586
+ kind: "separator";
587
+ nodeId: string;
588
+ parentNodeId: string | null;
589
+ order: number;
590
+ disabled?: boolean | undefined;
591
+ };
592
+ } | {
593
+ resourceKind: 'navigation';
594
+ resourceId: string;
595
+ page: string;
596
+ surface: "kernel" | "studio";
597
+ publication: unknown;
598
+ changed: boolean;
599
+ node: {
600
+ nodeId: `${string}-${string}-${string}-${string}-${string}`;
601
+ parentNodeId: string | null;
602
+ order: number;
603
+ kind: 'target';
604
+ label: {
605
+ defaultLocale: string;
606
+ values: Record<string, string>;
607
+ };
608
+ targetRef: {
609
+ kind: string;
610
+ id: string;
611
+ ownerRepo: string;
612
+ visibility: "global" | "public" | "tenant";
613
+ tenantScope?: {
614
+ tenantRef: {
615
+ kind: string;
616
+ id: string;
617
+ ownerRepo: string;
618
+ };
619
+ dataSpaceRef: {
620
+ kind: string;
621
+ id: string;
622
+ ownerRepo: string;
623
+ };
624
+ teamRef?: {
625
+ kind: string;
626
+ id: string;
627
+ ownerRepo: string;
628
+ } | undefined;
629
+ } | undefined;
630
+ };
631
+ parameterMapping: {};
632
+ audience: {
633
+ authenticated: boolean;
634
+ groupAllOf: {
635
+ kind: string;
636
+ id: string;
637
+ ownerRepo: string;
638
+ visibility: "global" | "public" | "tenant";
639
+ tenantScope?: {
640
+ tenantRef: {
641
+ kind: string;
642
+ id: string;
643
+ ownerRepo: string;
644
+ };
645
+ dataSpaceRef: {
646
+ kind: string;
647
+ id: string;
648
+ ownerRepo: string;
649
+ };
650
+ teamRef?: {
651
+ kind: string;
652
+ id: string;
653
+ ownerRepo: string;
654
+ } | undefined;
655
+ } | undefined;
656
+ }[];
657
+ groupAnyOf: {
658
+ kind: string;
659
+ id: string;
660
+ ownerRepo: string;
661
+ visibility: "global" | "public" | "tenant";
662
+ tenantScope?: {
663
+ tenantRef: {
664
+ kind: string;
665
+ id: string;
666
+ ownerRepo: string;
667
+ };
668
+ dataSpaceRef: {
669
+ kind: string;
670
+ id: string;
671
+ ownerRepo: string;
672
+ };
673
+ teamRef?: {
674
+ kind: string;
675
+ id: string;
676
+ ownerRepo: string;
677
+ } | undefined;
678
+ } | undefined;
679
+ }[];
680
+ permissionAllOf: string[];
681
+ permissionAnyOf: string[];
682
+ conditionAllOf: {
683
+ revision: number;
684
+ schemaVersion: number;
685
+ contentHash: string;
686
+ kind: string;
687
+ id: string;
688
+ ownerRepo: string;
689
+ visibility: "global" | "public" | "tenant";
690
+ tenantScope?: {
691
+ tenantRef: {
692
+ kind: string;
693
+ id: string;
694
+ ownerRepo: string;
695
+ };
696
+ dataSpaceRef: {
697
+ kind: string;
698
+ id: string;
699
+ ownerRepo: string;
700
+ };
701
+ teamRef?: {
702
+ kind: string;
703
+ id: string;
704
+ ownerRepo: string;
705
+ } | undefined;
706
+ } | undefined;
707
+ }[];
708
+ };
709
+ };
710
+ draft: unknown;
711
+ } | {
712
+ resourceKind: 'navigation';
713
+ resourceId: string;
714
+ page: string;
715
+ surface: "kernel" | "studio";
716
+ publication?: never;
717
+ changed: boolean;
718
+ node: {
719
+ nodeId: `${string}-${string}-${string}-${string}-${string}`;
720
+ parentNodeId: string | null;
721
+ order: number;
722
+ kind: 'target';
723
+ label: {
724
+ defaultLocale: string;
725
+ values: Record<string, string>;
726
+ };
727
+ targetRef: {
728
+ kind: string;
729
+ id: string;
730
+ ownerRepo: string;
731
+ visibility: "global" | "public" | "tenant";
732
+ tenantScope?: {
733
+ tenantRef: {
734
+ kind: string;
735
+ id: string;
736
+ ownerRepo: string;
737
+ };
738
+ dataSpaceRef: {
739
+ kind: string;
740
+ id: string;
741
+ ownerRepo: string;
742
+ };
743
+ teamRef?: {
744
+ kind: string;
745
+ id: string;
746
+ ownerRepo: string;
747
+ } | undefined;
748
+ } | undefined;
749
+ };
750
+ parameterMapping: {};
751
+ audience: {
752
+ authenticated: boolean;
753
+ groupAllOf: {
754
+ kind: string;
755
+ id: string;
756
+ ownerRepo: string;
757
+ visibility: "global" | "public" | "tenant";
758
+ tenantScope?: {
759
+ tenantRef: {
760
+ kind: string;
761
+ id: string;
762
+ ownerRepo: string;
763
+ };
764
+ dataSpaceRef: {
765
+ kind: string;
766
+ id: string;
767
+ ownerRepo: string;
768
+ };
769
+ teamRef?: {
770
+ kind: string;
771
+ id: string;
772
+ ownerRepo: string;
773
+ } | undefined;
774
+ } | undefined;
775
+ }[];
776
+ groupAnyOf: {
777
+ kind: string;
778
+ id: string;
779
+ ownerRepo: string;
780
+ visibility: "global" | "public" | "tenant";
781
+ tenantScope?: {
782
+ tenantRef: {
783
+ kind: string;
784
+ id: string;
785
+ ownerRepo: string;
786
+ };
787
+ dataSpaceRef: {
788
+ kind: string;
789
+ id: string;
790
+ ownerRepo: string;
791
+ };
792
+ teamRef?: {
793
+ kind: string;
794
+ id: string;
795
+ ownerRepo: string;
796
+ } | undefined;
797
+ } | undefined;
798
+ }[];
799
+ permissionAllOf: string[];
800
+ permissionAnyOf: string[];
801
+ conditionAllOf: {
802
+ revision: number;
803
+ schemaVersion: number;
804
+ contentHash: string;
805
+ kind: string;
806
+ id: string;
807
+ ownerRepo: string;
808
+ visibility: "global" | "public" | "tenant";
809
+ tenantScope?: {
810
+ tenantRef: {
811
+ kind: string;
812
+ id: string;
813
+ ownerRepo: string;
814
+ };
815
+ dataSpaceRef: {
816
+ kind: string;
817
+ id: string;
818
+ ownerRepo: string;
819
+ };
820
+ teamRef?: {
821
+ kind: string;
822
+ id: string;
823
+ ownerRepo: string;
824
+ } | undefined;
825
+ } | undefined;
826
+ }[];
827
+ };
828
+ };
829
+ draft: unknown;
830
+ }>;
831
+ //# sourceMappingURL=add.d.ts.map