@routr/ctl 2.6.4 → 2.7.2
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 +40 -40
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/commands/acl/create.d.ts +2 -2
- package/dist/commands/acl/create.js +1 -1
- package/dist/commands/acl/delete.js +1 -1
- package/dist/commands/acl/describe.js +1 -1
- package/dist/commands/acl/get.js +1 -1
- package/dist/commands/acl/update.d.ts +2 -2
- package/dist/commands/acl/update.js +1 -1
- package/dist/commands/agents/create.js +6 -1
- package/dist/commands/agents/delete.d.ts +2 -2
- package/dist/commands/agents/delete.js +1 -1
- package/dist/commands/agents/describe.d.ts +2 -2
- package/dist/commands/agents/describe.js +2 -1
- package/dist/commands/agents/get.d.ts +3 -3
- package/dist/commands/agents/get.js +7 -3
- package/dist/commands/agents/update.d.ts +3 -3
- package/dist/commands/agents/update.js +7 -1
- package/dist/commands/credentials/create.d.ts +2 -2
- package/dist/commands/credentials/create.js +1 -1
- package/dist/commands/credentials/delete.js +1 -1
- package/dist/commands/credentials/describe.d.ts +2 -2
- package/dist/commands/credentials/describe.js +1 -1
- package/dist/commands/credentials/get.d.ts +2 -2
- package/dist/commands/credentials/get.js +1 -1
- package/dist/commands/credentials/update.d.ts +3 -3
- package/dist/commands/credentials/update.js +1 -1
- package/dist/commands/domains/create.d.ts +2 -2
- package/dist/commands/domains/create.js +1 -1
- package/dist/commands/domains/delete.d.ts +2 -2
- package/dist/commands/domains/delete.js +1 -1
- package/dist/commands/domains/describe.d.ts +2 -2
- package/dist/commands/domains/describe.js +1 -1
- package/dist/commands/domains/get.d.ts +3 -3
- package/dist/commands/domains/get.js +1 -1
- package/dist/commands/domains/update.d.ts +3 -3
- package/dist/commands/domains/update.js +1 -1
- package/dist/commands/numbers/create.d.ts +2 -2
- package/dist/commands/numbers/create.js +1 -1
- package/dist/commands/numbers/delete.d.ts +2 -2
- package/dist/commands/numbers/delete.js +1 -1
- package/dist/commands/numbers/describe.d.ts +2 -2
- package/dist/commands/numbers/describe.js +1 -1
- package/dist/commands/numbers/get.d.ts +3 -3
- package/dist/commands/numbers/get.js +1 -1
- package/dist/commands/numbers/update.d.ts +3 -3
- package/dist/commands/numbers/update.js +1 -1
- package/dist/commands/peers/create.d.ts +2 -2
- package/dist/commands/peers/create.js +8 -5
- package/dist/commands/peers/delete.d.ts +2 -2
- package/dist/commands/peers/delete.js +1 -1
- package/dist/commands/peers/describe.d.ts +2 -2
- package/dist/commands/peers/describe.js +2 -1
- package/dist/commands/peers/get.d.ts +3 -3
- package/dist/commands/peers/get.js +7 -3
- package/dist/commands/peers/update.d.ts +3 -3
- package/dist/commands/peers/update.js +9 -5
- package/dist/commands/trunks/create.d.ts +2 -2
- package/dist/commands/trunks/create.js +1 -1
- package/dist/commands/trunks/delete.js +1 -1
- package/dist/commands/trunks/describe.js +1 -1
- package/dist/commands/trunks/get.d.ts +3 -3
- package/dist/commands/trunks/get.js +1 -1
- package/dist/commands/trunks/update.d.ts +3 -3
- package/dist/commands/trunks/update.js +1 -1
- package/dist/countries.js +1 -1
- package/dist/delete.d.ts +1 -1
- package/dist/delete.js +1 -1
- package/dist/help.js +20 -21
- package/dist/index.js +1 -1
- package/dist/validators.js +1 -1
- package/oclif.manifest.json +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ $ npm install -g @routr/ctl
|
|
|
19
19
|
$ rctl COMMAND
|
|
20
20
|
running command...
|
|
21
21
|
$ rctl (--version)
|
|
22
|
-
@routr/ctl/2.
|
|
22
|
+
@routr/ctl/2.7.2 linux-x64 node-v18.19.0
|
|
23
23
|
$ rctl --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ rctl COMMAND
|
|
@@ -95,7 +95,7 @@ EXAMPLES
|
|
|
95
95
|
Creating ACL US Eeast... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
_See code: [src/commands/acl/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
98
|
+
_See code: [src/commands/acl/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/acl/create.ts)_
|
|
99
99
|
|
|
100
100
|
## `rctl acl delete [REF]`
|
|
101
101
|
|
|
@@ -118,7 +118,7 @@ EXAMPLES
|
|
|
118
118
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
_See code: [src/commands/acl/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
121
|
+
_See code: [src/commands/acl/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/acl/delete.ts)_
|
|
122
122
|
|
|
123
123
|
## `rctl acl describe [REF]`
|
|
124
124
|
|
|
@@ -140,7 +140,7 @@ DESCRIPTION
|
|
|
140
140
|
shows details of an ACL
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
_See code: [src/commands/acl/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
143
|
+
_See code: [src/commands/acl/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/acl/describe.ts)_
|
|
144
144
|
|
|
145
145
|
## `rctl acl get [REF]`
|
|
146
146
|
|
|
@@ -169,7 +169,7 @@ EXAMPLES
|
|
|
169
169
|
9e7a88f0-8390-42f5-a2cb-689583ba9f4f Local Network ACL 0.0.0.0/0 10.0.0.28
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
_See code: [src/commands/acl/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
172
|
+
_See code: [src/commands/acl/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/acl/get.ts)_
|
|
173
173
|
|
|
174
174
|
## `rctl acl update REF`
|
|
175
175
|
|
|
@@ -195,7 +195,7 @@ EXAMPLES
|
|
|
195
195
|
Updating ACL US East... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
-
_See code: [src/commands/acl/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
198
|
+
_See code: [src/commands/acl/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/acl/update.ts)_
|
|
199
199
|
|
|
200
200
|
## `rctl agents create`
|
|
201
201
|
|
|
@@ -218,7 +218,7 @@ EXAMPLES
|
|
|
218
218
|
Creating Agent Jhon Doe... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
_See code: [src/commands/agents/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
221
|
+
_See code: [src/commands/agents/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/agents/create.ts)_
|
|
222
222
|
|
|
223
223
|
## `rctl agents delete [REF]`
|
|
224
224
|
|
|
@@ -241,7 +241,7 @@ EXAMPLES
|
|
|
241
241
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
_See code: [src/commands/agents/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
244
|
+
_See code: [src/commands/agents/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/agents/delete.ts)_
|
|
245
245
|
|
|
246
246
|
## `rctl agents describe [REF]`
|
|
247
247
|
|
|
@@ -263,7 +263,7 @@ DESCRIPTION
|
|
|
263
263
|
shows details of an Agent
|
|
264
264
|
```
|
|
265
265
|
|
|
266
|
-
_See code: [src/commands/agents/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
266
|
+
_See code: [src/commands/agents/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/agents/describe.ts)_
|
|
267
267
|
|
|
268
268
|
## `rctl agents get [REF]`
|
|
269
269
|
|
|
@@ -288,11 +288,11 @@ DESCRIPTION
|
|
|
288
288
|
|
|
289
289
|
EXAMPLES
|
|
290
290
|
$ rctl agents get
|
|
291
|
-
Ref Name Username Domain Privacy Enabled
|
|
292
|
-
d31f5fb8-e367-42f7-9884-1a7999f53fe8 John Doe jdoe sip.local PRIVATE Yes
|
|
291
|
+
Ref Name Username Domain Max Contacts Privacy Enabled
|
|
292
|
+
d31f5fb8-e367-42f7-9884-1a7999f53fe8 John Doe jdoe sip.local 1 PRIVATE Yes
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
-
_See code: [src/commands/agents/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
295
|
+
_See code: [src/commands/agents/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/agents/get.ts)_
|
|
296
296
|
|
|
297
297
|
## `rctl agents update REF`
|
|
298
298
|
|
|
@@ -318,7 +318,7 @@ EXAMPLES
|
|
|
318
318
|
Updating Agent John Doe... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
319
319
|
```
|
|
320
320
|
|
|
321
|
-
_See code: [src/commands/agents/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
321
|
+
_See code: [src/commands/agents/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/agents/update.ts)_
|
|
322
322
|
|
|
323
323
|
## `rctl autocomplete [SHELL]`
|
|
324
324
|
|
|
@@ -370,7 +370,7 @@ EXAMPLES
|
|
|
370
370
|
Creating Credentials JDoe Access... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
_See code: [src/commands/credentials/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
373
|
+
_See code: [src/commands/credentials/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/credentials/create.ts)_
|
|
374
374
|
|
|
375
375
|
## `rctl credentials delete [REF]`
|
|
376
376
|
|
|
@@ -393,7 +393,7 @@ EXAMPLES
|
|
|
393
393
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
394
394
|
```
|
|
395
395
|
|
|
396
|
-
_See code: [src/commands/credentials/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
396
|
+
_See code: [src/commands/credentials/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/credentials/delete.ts)_
|
|
397
397
|
|
|
398
398
|
## `rctl credentials describe [REF]`
|
|
399
399
|
|
|
@@ -415,7 +415,7 @@ DESCRIPTION
|
|
|
415
415
|
shows details for a set of Credentials
|
|
416
416
|
```
|
|
417
417
|
|
|
418
|
-
_See code: [src/commands/credentials/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
418
|
+
_See code: [src/commands/credentials/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/credentials/describe.ts)_
|
|
419
419
|
|
|
420
420
|
## `rctl credentials get [REF]`
|
|
421
421
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
80181ca6-d4aa-4575-9375-8f72b07d6666 Europe ACL 0.0.0.0/0 10.0.0.25
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/commands/credentials/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
447
|
+
_See code: [src/commands/credentials/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/credentials/get.ts)_
|
|
448
448
|
|
|
449
449
|
## `rctl credentials update REF`
|
|
450
450
|
|
|
@@ -470,7 +470,7 @@ EXAMPLES
|
|
|
470
470
|
Updating Credentials JDoe Credentials... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
-
_See code: [src/commands/credentials/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
473
|
+
_See code: [src/commands/credentials/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/credentials/update.ts)_
|
|
474
474
|
|
|
475
475
|
## `rctl domains create`
|
|
476
476
|
|
|
@@ -493,7 +493,7 @@ EXAMPLES
|
|
|
493
493
|
Creating Domain Local Domain... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
_See code: [src/commands/domains/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
496
|
+
_See code: [src/commands/domains/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/domains/create.ts)_
|
|
497
497
|
|
|
498
498
|
## `rctl domains delete [REF]`
|
|
499
499
|
|
|
@@ -516,7 +516,7 @@ EXAMPLES
|
|
|
516
516
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
517
517
|
```
|
|
518
518
|
|
|
519
|
-
_See code: [src/commands/domains/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
519
|
+
_See code: [src/commands/domains/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/domains/delete.ts)_
|
|
520
520
|
|
|
521
521
|
## `rctl domains describe [REF]`
|
|
522
522
|
|
|
@@ -538,7 +538,7 @@ DESCRIPTION
|
|
|
538
538
|
show details of a Domain
|
|
539
539
|
```
|
|
540
540
|
|
|
541
|
-
_See code: [src/commands/domains/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
541
|
+
_See code: [src/commands/domains/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/domains/describe.ts)_
|
|
542
542
|
|
|
543
543
|
## `rctl domains get [REF]`
|
|
544
544
|
|
|
@@ -567,7 +567,7 @@ EXAMPLES
|
|
|
567
567
|
ab2b6959-f497-4b14-903b-85a7c464b564 Local Domain sip.local
|
|
568
568
|
```
|
|
569
569
|
|
|
570
|
-
_See code: [src/commands/domains/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
570
|
+
_See code: [src/commands/domains/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/domains/get.ts)_
|
|
571
571
|
|
|
572
572
|
## `rctl domains update REF`
|
|
573
573
|
|
|
@@ -593,7 +593,7 @@ EXAMPLES
|
|
|
593
593
|
Updating Domain Local... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
594
594
|
```
|
|
595
595
|
|
|
596
|
-
_See code: [src/commands/domains/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
596
|
+
_See code: [src/commands/domains/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/domains/update.ts)_
|
|
597
597
|
|
|
598
598
|
## `rctl numbers create`
|
|
599
599
|
|
|
@@ -616,7 +616,7 @@ EXAMPLES
|
|
|
616
616
|
Creating Number (784) 317-8170... a134487f-a668-4509-9ddd-dcbc98175468
|
|
617
617
|
```
|
|
618
618
|
|
|
619
|
-
_See code: [src/commands/numbers/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
619
|
+
_See code: [src/commands/numbers/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/numbers/create.ts)_
|
|
620
620
|
|
|
621
621
|
## `rctl numbers delete [REF]`
|
|
622
622
|
|
|
@@ -639,7 +639,7 @@ EXAMPLES
|
|
|
639
639
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
640
640
|
```
|
|
641
641
|
|
|
642
|
-
_See code: [src/commands/numbers/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
642
|
+
_See code: [src/commands/numbers/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/numbers/delete.ts)_
|
|
643
643
|
|
|
644
644
|
## `rctl numbers describe [REF]`
|
|
645
645
|
|
|
@@ -661,7 +661,7 @@ DESCRIPTION
|
|
|
661
661
|
shows details for a Number
|
|
662
662
|
```
|
|
663
663
|
|
|
664
|
-
_See code: [src/commands/numbers/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
664
|
+
_See code: [src/commands/numbers/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/numbers/describe.ts)_
|
|
665
665
|
|
|
666
666
|
## `rctl numbers get [REF]`
|
|
667
667
|
|
|
@@ -690,7 +690,7 @@ EXAMPLES
|
|
|
690
690
|
a134487f-a668-4509-9ddd-dcbc98175468 (785) 317-8070 +17853178070 sip:1001@sip.local Cameron, USA (US)
|
|
691
691
|
```
|
|
692
692
|
|
|
693
|
-
_See code: [src/commands/numbers/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
693
|
+
_See code: [src/commands/numbers/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/numbers/get.ts)_
|
|
694
694
|
|
|
695
695
|
## `rctl numbers update REF`
|
|
696
696
|
|
|
@@ -716,7 +716,7 @@ EXAMPLES
|
|
|
716
716
|
Updating Number (785) 317-8070... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
717
717
|
```
|
|
718
718
|
|
|
719
|
-
_See code: [src/commands/numbers/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
719
|
+
_See code: [src/commands/numbers/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/numbers/update.ts)_
|
|
720
720
|
|
|
721
721
|
## `rctl peers create`
|
|
722
722
|
|
|
@@ -739,7 +739,7 @@ EXAMPLES
|
|
|
739
739
|
Creating Peer Asterisk Conference... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
740
740
|
```
|
|
741
741
|
|
|
742
|
-
_See code: [src/commands/peers/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
742
|
+
_See code: [src/commands/peers/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/peers/create.ts)_
|
|
743
743
|
|
|
744
744
|
## `rctl peers delete [REF]`
|
|
745
745
|
|
|
@@ -762,7 +762,7 @@ EXAMPLES
|
|
|
762
762
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
763
763
|
```
|
|
764
764
|
|
|
765
|
-
_See code: [src/commands/peers/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
765
|
+
_See code: [src/commands/peers/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/peers/delete.ts)_
|
|
766
766
|
|
|
767
767
|
## `rctl peers describe [REF]`
|
|
768
768
|
|
|
@@ -784,7 +784,7 @@ DESCRIPTION
|
|
|
784
784
|
shows details for a Peer
|
|
785
785
|
```
|
|
786
786
|
|
|
787
|
-
_See code: [src/commands/peers/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
787
|
+
_See code: [src/commands/peers/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/peers/describe.ts)_
|
|
788
788
|
|
|
789
789
|
## `rctl peers get [REF]`
|
|
790
790
|
|
|
@@ -809,11 +809,11 @@ DESCRIPTION
|
|
|
809
809
|
|
|
810
810
|
EXAMPLES
|
|
811
811
|
$ rctl peers get
|
|
812
|
-
Ref Name Username AOR
|
|
813
|
-
6f941c63-880c-419a-a72a-4a107cbaf5c5 Asterisk Conference conference
|
|
812
|
+
Ref Name Username AOR Max Contacts Balancing Algorithm Session Affinity
|
|
813
|
+
6f941c63-880c-419a-a72a-4a107cbaf5c5 Asterisk Conference conference sip:conference@sip.local 1 ROUND_ROBIN Yes
|
|
814
814
|
```
|
|
815
815
|
|
|
816
|
-
_See code: [src/commands/peers/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
816
|
+
_See code: [src/commands/peers/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/peers/get.ts)_
|
|
817
817
|
|
|
818
818
|
## `rctl peers update REF`
|
|
819
819
|
|
|
@@ -839,7 +839,7 @@ EXAMPLES
|
|
|
839
839
|
Updating Peer Asterisk Conf... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
840
840
|
```
|
|
841
841
|
|
|
842
|
-
_See code: [src/commands/peers/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
842
|
+
_See code: [src/commands/peers/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/peers/update.ts)_
|
|
843
843
|
|
|
844
844
|
## `rctl plugins`
|
|
845
845
|
|
|
@@ -1105,7 +1105,7 @@ EXAMPLES
|
|
|
1105
1105
|
Creating Trunk T01... b148b4b4-6884-4c06-bb7e-bd098f5fe793
|
|
1106
1106
|
```
|
|
1107
1107
|
|
|
1108
|
-
_See code: [src/commands/trunks/create.ts](https://github.com/fonoster/routr/blob/v2.
|
|
1108
|
+
_See code: [src/commands/trunks/create.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/trunks/create.ts)_
|
|
1109
1109
|
|
|
1110
1110
|
## `rctl trunks delete [REF]`
|
|
1111
1111
|
|
|
@@ -1128,7 +1128,7 @@ EXAMPLES
|
|
|
1128
1128
|
Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
|
|
1129
1129
|
```
|
|
1130
1130
|
|
|
1131
|
-
_See code: [src/commands/trunks/delete.ts](https://github.com/fonoster/routr/blob/v2.
|
|
1131
|
+
_See code: [src/commands/trunks/delete.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/trunks/delete.ts)_
|
|
1132
1132
|
|
|
1133
1133
|
## `rctl trunks describe [REF]`
|
|
1134
1134
|
|
|
@@ -1150,7 +1150,7 @@ DESCRIPTION
|
|
|
1150
1150
|
shows details for a Trunk
|
|
1151
1151
|
```
|
|
1152
1152
|
|
|
1153
|
-
_See code: [src/commands/trunks/describe.ts](https://github.com/fonoster/routr/blob/v2.
|
|
1153
|
+
_See code: [src/commands/trunks/describe.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/trunks/describe.ts)_
|
|
1154
1154
|
|
|
1155
1155
|
## `rctl trunks get [REF]`
|
|
1156
1156
|
|
|
@@ -1179,7 +1179,7 @@ EXAMPLES
|
|
|
1179
1179
|
8cde8ea9-3c58-4dbe-b2cf-23c4413dd4cc Local sip.t01.provider.net
|
|
1180
1180
|
```
|
|
1181
1181
|
|
|
1182
|
-
_See code: [src/commands/trunks/get.ts](https://github.com/fonoster/routr/blob/v2.
|
|
1182
|
+
_See code: [src/commands/trunks/get.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/trunks/get.ts)_
|
|
1183
1183
|
|
|
1184
1184
|
## `rctl trunks update REF`
|
|
1185
1185
|
|
|
@@ -1205,5 +1205,5 @@ EXAMPLES
|
|
|
1205
1205
|
Updating Trunk T01... 80181ca6-d4aa-4575-9375-8f72b07d5555
|
|
1206
1206
|
```
|
|
1207
1207
|
|
|
1208
|
-
_See code: [src/commands/trunks/update.ts](https://github.com/fonoster/routr/blob/v2.
|
|
1208
|
+
_See code: [src/commands/trunks/update.ts](https://github.com/fonoster/routr/blob/v2.7.2/mods/ctl/src/commands/trunks/update.ts)_
|
|
1209
1209
|
<!-- commandsstop -->
|
package/dist/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from "@oclif/core";
|
|
2
2
|
export declare abstract class BaseCommand extends Command {
|
|
3
|
-
static globalFlags: {
|
|
3
|
+
static readonly globalFlags: {
|
|
4
4
|
insecure: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
5
5
|
cacert: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
6
|
endpoint: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
package/dist/base.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseCommand = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class CreateCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static examples: string[];
|
|
3
|
+
static readonly description = "Creates a new ACL";
|
|
4
|
+
static readonly examples: string[];
|
|
5
5
|
run(): Promise<void>;
|
|
6
6
|
}
|
|
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
/*
|
|
30
|
-
* Copyright (C)
|
|
30
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
31
31
|
* http://github.com/fonoster
|
|
32
32
|
*
|
|
33
33
|
* This file is part of Routr.
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
package/dist/commands/acl/get.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
/*
|
|
27
|
-
* Copyright (C)
|
|
27
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
28
28
|
* http://github.com/fonoster
|
|
29
29
|
*
|
|
30
30
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class UpdateCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static examples: string[];
|
|
3
|
+
static readonly description = "Updates an existing ACL";
|
|
4
|
+
static readonly examples: string[];
|
|
5
5
|
static args: {
|
|
6
6
|
name: string;
|
|
7
7
|
required: boolean;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
/*
|
|
30
|
-
* Copyright (C)
|
|
30
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
31
31
|
* http://github.com/fonoster
|
|
32
32
|
*
|
|
33
33
|
* This file is part of Routr.
|
|
@@ -117,6 +117,11 @@ class CreateAgentCommand extends base_1.BaseCommand {
|
|
|
117
117
|
type: "list",
|
|
118
118
|
choices: [{ name: "None", value: undefined }, ...credentialsList]
|
|
119
119
|
},
|
|
120
|
+
{
|
|
121
|
+
name: "maxContacts",
|
|
122
|
+
message: "Max Contacts",
|
|
123
|
+
type: "input"
|
|
124
|
+
},
|
|
120
125
|
{
|
|
121
126
|
name: "privacy",
|
|
122
127
|
message: "Privacy",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import DeleteCommand from "../../delete";
|
|
2
2
|
export default class DeleteAgentCommand extends DeleteCommand {
|
|
3
|
-
static description
|
|
4
|
-
static examples: string[];
|
|
3
|
+
static readonly description = "Deletes an Agent";
|
|
4
|
+
static readonly examples: string[];
|
|
5
5
|
run(): Promise<void>;
|
|
6
6
|
}
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class DescribeCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static args: {
|
|
3
|
+
static readonly description = "shows details of an Agent";
|
|
4
|
+
static readonly args: {
|
|
5
5
|
name: string;
|
|
6
6
|
required: boolean;
|
|
7
7
|
description: string;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -42,6 +42,7 @@ class DescribeCommand extends base_1.BaseCommand {
|
|
|
42
42
|
Name: agent.name,
|
|
43
43
|
Username: agent.username,
|
|
44
44
|
Domain: ((_a = agent.domain) === null || _a === void 0 ? void 0 : _a.domainUri) || "None",
|
|
45
|
+
"Max Contacts": agent.maxContacts,
|
|
45
46
|
Privacy: (0, utils_1.capitalize)(agent.privacy),
|
|
46
47
|
Credentials: agent.credentials
|
|
47
48
|
? {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
import { CommandError } from "@oclif/core/lib/interfaces";
|
|
3
3
|
export default class GetAgentsCommand extends BaseCommand {
|
|
4
|
-
static description
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {
|
|
4
|
+
static readonly description = "Shows a list of paginated Agents or a single Agent if ref is provided";
|
|
5
|
+
static readonly examples: string[];
|
|
6
|
+
static readonly flags: {
|
|
7
7
|
size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
|
|
8
8
|
extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
};
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
/*
|
|
27
|
-
* Copyright (C)
|
|
27
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
28
28
|
* http://github.com/fonoster
|
|
29
29
|
*
|
|
30
30
|
* This file is part of Routr.
|
|
@@ -68,6 +68,10 @@ class GetAgentsCommand extends base_1.BaseCommand {
|
|
|
68
68
|
header: "Domain",
|
|
69
69
|
get: (row) => { var _a; return ((_a = row.domain) === null || _a === void 0 ? void 0 : _a.domainUri) || "None"; }
|
|
70
70
|
},
|
|
71
|
+
maxContacts: {
|
|
72
|
+
header: "Max Contacts",
|
|
73
|
+
get: (row) => row.maxContacts === -1 ? "" : row.maxContacts
|
|
74
|
+
},
|
|
71
75
|
privacy: {
|
|
72
76
|
header: "Privacy",
|
|
73
77
|
get: (row) => (0, utils_1.capitalize)(row.privacy)
|
|
@@ -103,8 +107,8 @@ exports.default = GetAgentsCommand;
|
|
|
103
107
|
GetAgentsCommand.description = "Shows a list of paginated Agents or a single Agent if ref is provided";
|
|
104
108
|
GetAgentsCommand.examples = [
|
|
105
109
|
`<%= config.bin %> <%= command.id %>
|
|
106
|
-
Ref Name Username Domain Privacy Enabled
|
|
107
|
-
d31f5fb8-e367-42f7-9884-1a7999f53fe8 John Doe jdoe sip.local PRIVATE Yes
|
|
110
|
+
Ref Name Username Domain Max Contacts Privacy Enabled
|
|
111
|
+
d31f5fb8-e367-42f7-9884-1a7999f53fe8 John Doe jdoe sip.local 1 PRIVATE Yes
|
|
108
112
|
`
|
|
109
113
|
];
|
|
110
114
|
GetAgentsCommand.flags = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class UpdateCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static examples: string[];
|
|
5
|
-
static args: {
|
|
3
|
+
static readonly description = "Updates an existing Agent";
|
|
4
|
+
static readonly examples: string[];
|
|
5
|
+
static readonly args: {
|
|
6
6
|
name: string;
|
|
7
7
|
required: boolean;
|
|
8
8
|
description: string;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -86,6 +86,12 @@ class UpdateCommand extends base_1.BaseCommand {
|
|
|
86
86
|
choices: [{ name: "None", value: undefined }, ...credentialsList],
|
|
87
87
|
default: agentFromDB.credentialsRef
|
|
88
88
|
},
|
|
89
|
+
{
|
|
90
|
+
name: "maxContacts",
|
|
91
|
+
message: "Max Contacts",
|
|
92
|
+
type: "input",
|
|
93
|
+
default: agentFromDB.maxContacts === -1 ? "" : agentFromDB.maxContacts
|
|
94
|
+
},
|
|
89
95
|
{
|
|
90
96
|
name: "privacy",
|
|
91
97
|
message: "Privacy",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class CreateCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static examples: string[];
|
|
3
|
+
static readonly description = "Creates a new set of Credentials";
|
|
4
|
+
static readonly examples: string[];
|
|
5
5
|
run(): Promise<void>;
|
|
6
6
|
}
|
|
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
/*
|
|
30
|
-
* Copyright (C)
|
|
30
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
31
31
|
* http://github.com/fonoster
|
|
32
32
|
*
|
|
33
33
|
* This file is part of Routr.
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
export default class DescribeCommand extends BaseCommand {
|
|
3
|
-
static description
|
|
4
|
-
static args: {
|
|
3
|
+
static readonly description = "shows details for a set of Credentials";
|
|
4
|
+
static readonly args: {
|
|
5
5
|
name: string;
|
|
6
6
|
required: boolean;
|
|
7
7
|
description: string;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/*
|
|
7
|
-
* Copyright (C)
|
|
7
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
8
8
|
* http://github.com/fonoster
|
|
9
9
|
*
|
|
10
10
|
* This file is part of Routr.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseCommand } from "../../base";
|
|
2
2
|
import { CommandError } from "@oclif/core/lib/interfaces";
|
|
3
3
|
export default class GetCommand extends BaseCommand {
|
|
4
|
-
static description
|
|
5
|
-
static examples: string[];
|
|
4
|
+
static readonly description = "Shows a list of paginated Credentials or a single set if ref is provided";
|
|
5
|
+
static readonly examples: string[];
|
|
6
6
|
static flags: {
|
|
7
7
|
size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
|
|
8
8
|
extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
/*
|
|
27
|
-
* Copyright (C)
|
|
27
|
+
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
28
28
|
* http://github.com/fonoster
|
|
29
29
|
*
|
|
30
30
|
* This file is part of Routr.
|