@inf-monkeys-tech/monkeys-cli 0.12.23 → 0.12.25

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