@fonoster/ctl 0.8.51 → 0.8.53
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
CHANGED
|
@@ -23,7 +23,7 @@ $ npm install -g @fonoster/ctl
|
|
|
23
23
|
$ fonoster COMMAND
|
|
24
24
|
running command...
|
|
25
25
|
$ fonoster (--version)
|
|
26
|
-
@fonoster/ctl/0.8.
|
|
26
|
+
@fonoster/ctl/0.8.53 darwin-arm64 node-v20.17.0
|
|
27
27
|
$ fonoster --help [COMMAND]
|
|
28
28
|
USAGE
|
|
29
29
|
$ fonoster COMMAND
|
|
@@ -82,7 +82,6 @@ USAGE
|
|
|
82
82
|
* [`fonoster sipnet:trunks:get REF`](#fonoster-sipnettrunksget-ref)
|
|
83
83
|
* [`fonoster sipnet:trunks:list`](#fonoster-sipnettrunkslist)
|
|
84
84
|
* [`fonoster sipnet:trunks:update REF`](#fonoster-sipnettrunksupdate-ref)
|
|
85
|
-
* [`fonoster utils:formatForJson`](#fonoster-utilsformatforjson)
|
|
86
85
|
* [`fonoster workspaces:active`](#fonoster-workspacesactive)
|
|
87
86
|
* [`fonoster workspaces:list`](#fonoster-workspaceslist)
|
|
88
87
|
* [`fonoster workspaces:login`](#fonoster-workspaceslogin)
|
|
@@ -109,7 +108,7 @@ EXAMPLES
|
|
|
109
108
|
$ fonoster apikeys:create
|
|
110
109
|
```
|
|
111
110
|
|
|
112
|
-
_See code: [dist/commands/apikeys/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
111
|
+
_See code: [dist/commands/apikeys/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/apikeys/create.js)_
|
|
113
112
|
|
|
114
113
|
## `fonoster apikeys:delete REF`
|
|
115
114
|
|
|
@@ -132,7 +131,7 @@ EXAMPLES
|
|
|
132
131
|
$ fonoster apikeys:delete
|
|
133
132
|
```
|
|
134
133
|
|
|
135
|
-
_See code: [dist/commands/apikeys/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
134
|
+
_See code: [dist/commands/apikeys/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/apikeys/delete.js)_
|
|
136
135
|
|
|
137
136
|
## `fonoster apikeys:list`
|
|
138
137
|
|
|
@@ -153,7 +152,7 @@ EXAMPLES
|
|
|
153
152
|
$ fonoster apikeys:list
|
|
154
153
|
```
|
|
155
154
|
|
|
156
|
-
_See code: [dist/commands/apikeys/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
155
|
+
_See code: [dist/commands/apikeys/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/apikeys/list.js)_
|
|
157
156
|
|
|
158
157
|
## `fonoster apikeys:regenerate REF`
|
|
159
158
|
|
|
@@ -176,7 +175,7 @@ EXAMPLES
|
|
|
176
175
|
$ fonoster apikeys:regenerate
|
|
177
176
|
```
|
|
178
177
|
|
|
179
|
-
_See code: [dist/commands/apikeys/regenerate.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
178
|
+
_See code: [dist/commands/apikeys/regenerate.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/apikeys/regenerate.js)_
|
|
180
179
|
|
|
181
180
|
## `fonoster applications:create`
|
|
182
181
|
|
|
@@ -196,7 +195,7 @@ EXAMPLES
|
|
|
196
195
|
$ fonoster applications:create
|
|
197
196
|
```
|
|
198
197
|
|
|
199
|
-
_See code: [dist/commands/applications/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
198
|
+
_See code: [dist/commands/applications/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/applications/create.js)_
|
|
200
199
|
|
|
201
200
|
## `fonoster applications:delete REF`
|
|
202
201
|
|
|
@@ -219,7 +218,7 @@ EXAMPLES
|
|
|
219
218
|
$ fonoster applications:delete
|
|
220
219
|
```
|
|
221
220
|
|
|
222
|
-
_See code: [dist/commands/applications/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
221
|
+
_See code: [dist/commands/applications/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/applications/delete.js)_
|
|
223
222
|
|
|
224
223
|
## `fonoster applications:get REF`
|
|
225
224
|
|
|
@@ -242,7 +241,7 @@ EXAMPLES
|
|
|
242
241
|
$ fonoster applications:get
|
|
243
242
|
```
|
|
244
243
|
|
|
245
|
-
_See code: [dist/commands/applications/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
244
|
+
_See code: [dist/commands/applications/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/applications/get.js)_
|
|
246
245
|
|
|
247
246
|
## `fonoster applications:list`
|
|
248
247
|
|
|
@@ -263,7 +262,7 @@ EXAMPLES
|
|
|
263
262
|
$ fonoster applications:list
|
|
264
263
|
```
|
|
265
264
|
|
|
266
|
-
_See code: [dist/commands/applications/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
265
|
+
_See code: [dist/commands/applications/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/applications/list.js)_
|
|
267
266
|
|
|
268
267
|
## `fonoster applications:update REF`
|
|
269
268
|
|
|
@@ -286,7 +285,7 @@ EXAMPLES
|
|
|
286
285
|
$ fonoster applications:update
|
|
287
286
|
```
|
|
288
287
|
|
|
289
|
-
_See code: [dist/commands/applications/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
288
|
+
_See code: [dist/commands/applications/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/applications/update.js)_
|
|
290
289
|
|
|
291
290
|
## `fonoster bug`
|
|
292
291
|
|
|
@@ -303,7 +302,7 @@ EXAMPLES
|
|
|
303
302
|
$ fonoster bug
|
|
304
303
|
```
|
|
305
304
|
|
|
306
|
-
_See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
305
|
+
_See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/bug.js)_
|
|
307
306
|
|
|
308
307
|
## `fonoster feedback`
|
|
309
308
|
|
|
@@ -323,7 +322,7 @@ EXAMPLES
|
|
|
323
322
|
$ fonoster feedback
|
|
324
323
|
```
|
|
325
324
|
|
|
326
|
-
_See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
325
|
+
_See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/feedback.js)_
|
|
327
326
|
|
|
328
327
|
## `fonoster secrets:create`
|
|
329
328
|
|
|
@@ -343,7 +342,7 @@ EXAMPLES
|
|
|
343
342
|
$ fonoster secrets:create
|
|
344
343
|
```
|
|
345
344
|
|
|
346
|
-
_See code: [dist/commands/secrets/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
345
|
+
_See code: [dist/commands/secrets/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/secrets/create.js)_
|
|
347
346
|
|
|
348
347
|
## `fonoster secrets:delete REF`
|
|
349
348
|
|
|
@@ -366,7 +365,7 @@ EXAMPLES
|
|
|
366
365
|
$ fonoster secrets:delete
|
|
367
366
|
```
|
|
368
367
|
|
|
369
|
-
_See code: [dist/commands/secrets/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
368
|
+
_See code: [dist/commands/secrets/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/secrets/delete.js)_
|
|
370
369
|
|
|
371
370
|
## `fonoster secrets:get REF`
|
|
372
371
|
|
|
@@ -389,7 +388,7 @@ EXAMPLES
|
|
|
389
388
|
$ fonoster secrets:get
|
|
390
389
|
```
|
|
391
390
|
|
|
392
|
-
_See code: [dist/commands/secrets/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
391
|
+
_See code: [dist/commands/secrets/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/secrets/get.js)_
|
|
393
392
|
|
|
394
393
|
## `fonoster secrets:list`
|
|
395
394
|
|
|
@@ -410,7 +409,7 @@ EXAMPLES
|
|
|
410
409
|
$ fonoster secrets:list
|
|
411
410
|
```
|
|
412
411
|
|
|
413
|
-
_See code: [dist/commands/secrets/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
412
|
+
_See code: [dist/commands/secrets/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/secrets/list.js)_
|
|
414
413
|
|
|
415
414
|
## `fonoster secrets:update REF`
|
|
416
415
|
|
|
@@ -433,7 +432,7 @@ EXAMPLES
|
|
|
433
432
|
$ fonoster secrets:update
|
|
434
433
|
```
|
|
435
434
|
|
|
436
|
-
_See code: [dist/commands/secrets/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
435
|
+
_See code: [dist/commands/secrets/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/secrets/update.js)_
|
|
437
436
|
|
|
438
437
|
## `fonoster sipnet:acls:create`
|
|
439
438
|
|
|
@@ -453,7 +452,7 @@ EXAMPLES
|
|
|
453
452
|
$ fonoster sipnet:acls:create
|
|
454
453
|
```
|
|
455
454
|
|
|
456
|
-
_See code: [dist/commands/sipnet/acls/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
455
|
+
_See code: [dist/commands/sipnet/acls/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/acls/create.js)_
|
|
457
456
|
|
|
458
457
|
## `fonoster sipnet:acls:delete REF`
|
|
459
458
|
|
|
@@ -476,7 +475,7 @@ EXAMPLES
|
|
|
476
475
|
$ fonoster sipnet:acls:delete
|
|
477
476
|
```
|
|
478
477
|
|
|
479
|
-
_See code: [dist/commands/sipnet/acls/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
478
|
+
_See code: [dist/commands/sipnet/acls/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/acls/delete.js)_
|
|
480
479
|
|
|
481
480
|
## `fonoster sipnet:acls:get REF`
|
|
482
481
|
|
|
@@ -499,7 +498,7 @@ EXAMPLES
|
|
|
499
498
|
$ fonoster sipnet:acls:get
|
|
500
499
|
```
|
|
501
500
|
|
|
502
|
-
_See code: [dist/commands/sipnet/acls/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
501
|
+
_See code: [dist/commands/sipnet/acls/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/acls/get.js)_
|
|
503
502
|
|
|
504
503
|
## `fonoster sipnet:acls:list`
|
|
505
504
|
|
|
@@ -520,7 +519,7 @@ EXAMPLES
|
|
|
520
519
|
$ fonoster sipnet:acls:list
|
|
521
520
|
```
|
|
522
521
|
|
|
523
|
-
_See code: [dist/commands/sipnet/acls/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
522
|
+
_See code: [dist/commands/sipnet/acls/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/acls/list.js)_
|
|
524
523
|
|
|
525
524
|
## `fonoster sipnet:acls:update REF`
|
|
526
525
|
|
|
@@ -543,7 +542,7 @@ EXAMPLES
|
|
|
543
542
|
$ fonoster sipnet:acls:update
|
|
544
543
|
```
|
|
545
544
|
|
|
546
|
-
_See code: [dist/commands/sipnet/acls/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
545
|
+
_See code: [dist/commands/sipnet/acls/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/acls/update.js)_
|
|
547
546
|
|
|
548
547
|
## `fonoster sipnet:agents:create`
|
|
549
548
|
|
|
@@ -563,7 +562,7 @@ EXAMPLES
|
|
|
563
562
|
$ fonoster sipnet:agents:create
|
|
564
563
|
```
|
|
565
564
|
|
|
566
|
-
_See code: [dist/commands/sipnet/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
565
|
+
_See code: [dist/commands/sipnet/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/agents/create.js)_
|
|
567
566
|
|
|
568
567
|
## `fonoster sipnet:agents:delete REF`
|
|
569
568
|
|
|
@@ -586,7 +585,7 @@ EXAMPLES
|
|
|
586
585
|
$ fonoster sipnet:agents:delete
|
|
587
586
|
```
|
|
588
587
|
|
|
589
|
-
_See code: [dist/commands/sipnet/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
588
|
+
_See code: [dist/commands/sipnet/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/agents/delete.js)_
|
|
590
589
|
|
|
591
590
|
## `fonoster sipnet:agents:get REF`
|
|
592
591
|
|
|
@@ -609,7 +608,7 @@ EXAMPLES
|
|
|
609
608
|
$ fonoster sipnet:agents:get
|
|
610
609
|
```
|
|
611
610
|
|
|
612
|
-
_See code: [dist/commands/sipnet/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
611
|
+
_See code: [dist/commands/sipnet/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/agents/get.js)_
|
|
613
612
|
|
|
614
613
|
## `fonoster sipnet:agents:list`
|
|
615
614
|
|
|
@@ -630,7 +629,7 @@ EXAMPLES
|
|
|
630
629
|
$ fonoster sipnet:agents:list
|
|
631
630
|
```
|
|
632
631
|
|
|
633
|
-
_See code: [dist/commands/sipnet/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
632
|
+
_See code: [dist/commands/sipnet/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/agents/list.js)_
|
|
634
633
|
|
|
635
634
|
## `fonoster sipnet:agents:update REF`
|
|
636
635
|
|
|
@@ -653,7 +652,7 @@ EXAMPLES
|
|
|
653
652
|
$ fonoster sipnet:agents:update
|
|
654
653
|
```
|
|
655
654
|
|
|
656
|
-
_See code: [dist/commands/sipnet/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
655
|
+
_See code: [dist/commands/sipnet/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/agents/update.js)_
|
|
657
656
|
|
|
658
657
|
## `fonoster sipnet:calls:create`
|
|
659
658
|
|
|
@@ -678,7 +677,7 @@ EXAMPLES
|
|
|
678
677
|
$ fonoster sipnet:calls:create
|
|
679
678
|
```
|
|
680
679
|
|
|
681
|
-
_See code: [dist/commands/sipnet/calls/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
680
|
+
_See code: [dist/commands/sipnet/calls/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/calls/create.js)_
|
|
682
681
|
|
|
683
682
|
## `fonoster sipnet:calls:get REF`
|
|
684
683
|
|
|
@@ -701,7 +700,7 @@ EXAMPLES
|
|
|
701
700
|
$ fonoster sipnet:calls:get
|
|
702
701
|
```
|
|
703
702
|
|
|
704
|
-
_See code: [dist/commands/sipnet/calls/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
703
|
+
_See code: [dist/commands/sipnet/calls/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/calls/get.js)_
|
|
705
704
|
|
|
706
705
|
## `fonoster sipnet:calls:list`
|
|
707
706
|
|
|
@@ -722,7 +721,7 @@ EXAMPLES
|
|
|
722
721
|
$ fonoster sipnet:calls:list
|
|
723
722
|
```
|
|
724
723
|
|
|
725
|
-
_See code: [dist/commands/sipnet/calls/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
724
|
+
_See code: [dist/commands/sipnet/calls/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/calls/list.js)_
|
|
726
725
|
|
|
727
726
|
## `fonoster sipnet:credentials:create`
|
|
728
727
|
|
|
@@ -742,7 +741,7 @@ EXAMPLES
|
|
|
742
741
|
$ fonoster sipnet:credentials:create
|
|
743
742
|
```
|
|
744
743
|
|
|
745
|
-
_See code: [dist/commands/sipnet/credentials/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
744
|
+
_See code: [dist/commands/sipnet/credentials/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/credentials/create.js)_
|
|
746
745
|
|
|
747
746
|
## `fonoster sipnet:credentials:delete REF`
|
|
748
747
|
|
|
@@ -765,7 +764,7 @@ EXAMPLES
|
|
|
765
764
|
$ fonoster sipnet:credentials:delete
|
|
766
765
|
```
|
|
767
766
|
|
|
768
|
-
_See code: [dist/commands/sipnet/credentials/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
767
|
+
_See code: [dist/commands/sipnet/credentials/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/credentials/delete.js)_
|
|
769
768
|
|
|
770
769
|
## `fonoster sipnet:credentials:get REF`
|
|
771
770
|
|
|
@@ -788,7 +787,7 @@ EXAMPLES
|
|
|
788
787
|
$ fonoster sipnet:credentials:get
|
|
789
788
|
```
|
|
790
789
|
|
|
791
|
-
_See code: [dist/commands/sipnet/credentials/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
790
|
+
_See code: [dist/commands/sipnet/credentials/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/credentials/get.js)_
|
|
792
791
|
|
|
793
792
|
## `fonoster sipnet:credentials:list`
|
|
794
793
|
|
|
@@ -809,7 +808,7 @@ EXAMPLES
|
|
|
809
808
|
$ fonoster sipnet:credentials:list
|
|
810
809
|
```
|
|
811
810
|
|
|
812
|
-
_See code: [dist/commands/sipnet/credentials/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
811
|
+
_See code: [dist/commands/sipnet/credentials/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/credentials/list.js)_
|
|
813
812
|
|
|
814
813
|
## `fonoster sipnet:credentials:update REF`
|
|
815
814
|
|
|
@@ -832,7 +831,7 @@ EXAMPLES
|
|
|
832
831
|
$ fonoster sipnet:credentials:update
|
|
833
832
|
```
|
|
834
833
|
|
|
835
|
-
_See code: [dist/commands/sipnet/credentials/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
834
|
+
_See code: [dist/commands/sipnet/credentials/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/credentials/update.js)_
|
|
836
835
|
|
|
837
836
|
## `fonoster sipnet:domains:create`
|
|
838
837
|
|
|
@@ -852,7 +851,7 @@ EXAMPLES
|
|
|
852
851
|
$ fonoster sipnet:domains:create
|
|
853
852
|
```
|
|
854
853
|
|
|
855
|
-
_See code: [dist/commands/sipnet/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
854
|
+
_See code: [dist/commands/sipnet/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/domains/create.js)_
|
|
856
855
|
|
|
857
856
|
## `fonoster sipnet:domains:delete REF`
|
|
858
857
|
|
|
@@ -875,7 +874,7 @@ EXAMPLES
|
|
|
875
874
|
$ fonoster sipnet:domains:delete
|
|
876
875
|
```
|
|
877
876
|
|
|
878
|
-
_See code: [dist/commands/sipnet/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
877
|
+
_See code: [dist/commands/sipnet/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/domains/delete.js)_
|
|
879
878
|
|
|
880
879
|
## `fonoster sipnet:domains:get REF`
|
|
881
880
|
|
|
@@ -898,7 +897,7 @@ EXAMPLES
|
|
|
898
897
|
$ fonoster sipnet:domains:get
|
|
899
898
|
```
|
|
900
899
|
|
|
901
|
-
_See code: [dist/commands/sipnet/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
900
|
+
_See code: [dist/commands/sipnet/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/domains/get.js)_
|
|
902
901
|
|
|
903
902
|
## `fonoster sipnet:domains:list`
|
|
904
903
|
|
|
@@ -919,7 +918,7 @@ EXAMPLES
|
|
|
919
918
|
$ fonoster sipnet:domains:list
|
|
920
919
|
```
|
|
921
920
|
|
|
922
|
-
_See code: [dist/commands/sipnet/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
921
|
+
_See code: [dist/commands/sipnet/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/domains/list.js)_
|
|
923
922
|
|
|
924
923
|
## `fonoster sipnet:domains:update REF`
|
|
925
924
|
|
|
@@ -942,7 +941,7 @@ EXAMPLES
|
|
|
942
941
|
$ fonoster sipnet:domains:update
|
|
943
942
|
```
|
|
944
943
|
|
|
945
|
-
_See code: [dist/commands/sipnet/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
944
|
+
_See code: [dist/commands/sipnet/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/domains/update.js)_
|
|
946
945
|
|
|
947
946
|
## `fonoster sipnet:numbers:create`
|
|
948
947
|
|
|
@@ -962,7 +961,7 @@ EXAMPLES
|
|
|
962
961
|
$ fonoster sipnet:numbers:create
|
|
963
962
|
```
|
|
964
963
|
|
|
965
|
-
_See code: [dist/commands/sipnet/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
964
|
+
_See code: [dist/commands/sipnet/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/create.js)_
|
|
966
965
|
|
|
967
966
|
## `fonoster sipnet:numbers:delete REF`
|
|
968
967
|
|
|
@@ -985,7 +984,7 @@ EXAMPLES
|
|
|
985
984
|
$ fonoster sipnet:numbers:delete
|
|
986
985
|
```
|
|
987
986
|
|
|
988
|
-
_See code: [dist/commands/sipnet/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
987
|
+
_See code: [dist/commands/sipnet/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/delete.js)_
|
|
989
988
|
|
|
990
989
|
## `fonoster sipnet:numbers:get REF`
|
|
991
990
|
|
|
@@ -1008,7 +1007,7 @@ EXAMPLES
|
|
|
1008
1007
|
$ fonoster sipnet:numbers:get
|
|
1009
1008
|
```
|
|
1010
1009
|
|
|
1011
|
-
_See code: [dist/commands/sipnet/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1010
|
+
_See code: [dist/commands/sipnet/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/get.js)_
|
|
1012
1011
|
|
|
1013
1012
|
## `fonoster sipnet:numbers:linkTwilioNumber`
|
|
1014
1013
|
|
|
@@ -1032,7 +1031,7 @@ EXAMPLES
|
|
|
1032
1031
|
$ fonoster sipnet:numbers:linkTwilioNumber
|
|
1033
1032
|
```
|
|
1034
1033
|
|
|
1035
|
-
_See code: [dist/commands/sipnet/numbers/linkTwilioNumber.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1034
|
+
_See code: [dist/commands/sipnet/numbers/linkTwilioNumber.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/linkTwilioNumber.js)_
|
|
1036
1035
|
|
|
1037
1036
|
## `fonoster sipnet:numbers:list`
|
|
1038
1037
|
|
|
@@ -1053,7 +1052,7 @@ EXAMPLES
|
|
|
1053
1052
|
$ fonoster sipnet:numbers:list
|
|
1054
1053
|
```
|
|
1055
1054
|
|
|
1056
|
-
_See code: [dist/commands/sipnet/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1055
|
+
_See code: [dist/commands/sipnet/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/list.js)_
|
|
1057
1056
|
|
|
1058
1057
|
## `fonoster sipnet:numbers:update REF`
|
|
1059
1058
|
|
|
@@ -1076,7 +1075,7 @@ EXAMPLES
|
|
|
1076
1075
|
$ fonoster sipnet:numbers:update
|
|
1077
1076
|
```
|
|
1078
1077
|
|
|
1079
|
-
_See code: [dist/commands/sipnet/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1078
|
+
_See code: [dist/commands/sipnet/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/numbers/update.js)_
|
|
1080
1079
|
|
|
1081
1080
|
## `fonoster sipnet:trunks:create`
|
|
1082
1081
|
|
|
@@ -1096,7 +1095,7 @@ EXAMPLES
|
|
|
1096
1095
|
$ fonoster sipnet:trunks:create
|
|
1097
1096
|
```
|
|
1098
1097
|
|
|
1099
|
-
_See code: [dist/commands/sipnet/trunks/create.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1098
|
+
_See code: [dist/commands/sipnet/trunks/create.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/trunks/create.js)_
|
|
1100
1099
|
|
|
1101
1100
|
## `fonoster sipnet:trunks:delete REF`
|
|
1102
1101
|
|
|
@@ -1119,7 +1118,7 @@ EXAMPLES
|
|
|
1119
1118
|
$ fonoster sipnet:trunks:delete
|
|
1120
1119
|
```
|
|
1121
1120
|
|
|
1122
|
-
_See code: [dist/commands/sipnet/trunks/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1121
|
+
_See code: [dist/commands/sipnet/trunks/delete.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/trunks/delete.js)_
|
|
1123
1122
|
|
|
1124
1123
|
## `fonoster sipnet:trunks:get REF`
|
|
1125
1124
|
|
|
@@ -1142,7 +1141,7 @@ EXAMPLES
|
|
|
1142
1141
|
$ fonoster sipnet:trunks:get
|
|
1143
1142
|
```
|
|
1144
1143
|
|
|
1145
|
-
_See code: [dist/commands/sipnet/trunks/get.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1144
|
+
_See code: [dist/commands/sipnet/trunks/get.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/trunks/get.js)_
|
|
1146
1145
|
|
|
1147
1146
|
## `fonoster sipnet:trunks:list`
|
|
1148
1147
|
|
|
@@ -1163,7 +1162,7 @@ EXAMPLES
|
|
|
1163
1162
|
$ fonoster sipnet:trunks:list
|
|
1164
1163
|
```
|
|
1165
1164
|
|
|
1166
|
-
_See code: [dist/commands/sipnet/trunks/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1165
|
+
_See code: [dist/commands/sipnet/trunks/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/trunks/list.js)_
|
|
1167
1166
|
|
|
1168
1167
|
## `fonoster sipnet:trunks:update REF`
|
|
1169
1168
|
|
|
@@ -1186,28 +1185,7 @@ EXAMPLES
|
|
|
1186
1185
|
$ fonoster sipnet:trunks:update
|
|
1187
1186
|
```
|
|
1188
1187
|
|
|
1189
|
-
_See code: [dist/commands/sipnet/trunks/update.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1190
|
-
|
|
1191
|
-
## `fonoster utils:formatForJson`
|
|
1192
|
-
|
|
1193
|
-
takes a text document and formats it for JSON output
|
|
1194
|
-
|
|
1195
|
-
```
|
|
1196
|
-
USAGE
|
|
1197
|
-
$ fonoster utils:formatForJson -i <value> [-o <value>]
|
|
1198
|
-
|
|
1199
|
-
FLAGS
|
|
1200
|
-
-i, --input=<value> (required) The input document
|
|
1201
|
-
-o, --output=<value> JSON output file
|
|
1202
|
-
|
|
1203
|
-
DESCRIPTION
|
|
1204
|
-
takes a text document and formats it for JSON output
|
|
1205
|
-
|
|
1206
|
-
EXAMPLES
|
|
1207
|
-
$ fonoster utils:formatForJson
|
|
1208
|
-
```
|
|
1209
|
-
|
|
1210
|
-
_See code: [dist/commands/utils/formatForJson.js](https://github.com/fonoster/fonoster/blob/v0.8.51/dist/commands/utils/formatForJson.js)_
|
|
1188
|
+
_See code: [dist/commands/sipnet/trunks/update.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/sipnet/trunks/update.js)_
|
|
1211
1189
|
|
|
1212
1190
|
## `fonoster workspaces:active`
|
|
1213
1191
|
|
|
@@ -1224,7 +1202,7 @@ EXAMPLES
|
|
|
1224
1202
|
$ fonoster workspaces:active
|
|
1225
1203
|
```
|
|
1226
1204
|
|
|
1227
|
-
_See code: [dist/commands/workspaces/active.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1205
|
+
_See code: [dist/commands/workspaces/active.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/workspaces/active.js)_
|
|
1228
1206
|
|
|
1229
1207
|
## `fonoster workspaces:list`
|
|
1230
1208
|
|
|
@@ -1241,7 +1219,7 @@ EXAMPLES
|
|
|
1241
1219
|
$ fonoster workspaces:list
|
|
1242
1220
|
```
|
|
1243
1221
|
|
|
1244
|
-
_See code: [dist/commands/workspaces/list.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1222
|
+
_See code: [dist/commands/workspaces/list.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/workspaces/list.js)_
|
|
1245
1223
|
|
|
1246
1224
|
## `fonoster workspaces:login`
|
|
1247
1225
|
|
|
@@ -1261,7 +1239,7 @@ EXAMPLES
|
|
|
1261
1239
|
$ fonoster workspaces:login
|
|
1262
1240
|
```
|
|
1263
1241
|
|
|
1264
|
-
_See code: [dist/commands/workspaces/login.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1242
|
+
_See code: [dist/commands/workspaces/login.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/workspaces/login.js)_
|
|
1265
1243
|
|
|
1266
1244
|
## `fonoster workspaces:logout REF`
|
|
1267
1245
|
|
|
@@ -1281,7 +1259,7 @@ EXAMPLES
|
|
|
1281
1259
|
$ fonoster workspaces:logout
|
|
1282
1260
|
```
|
|
1283
1261
|
|
|
1284
|
-
_See code: [dist/commands/workspaces/logout.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1262
|
+
_See code: [dist/commands/workspaces/logout.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/workspaces/logout.js)_
|
|
1285
1263
|
|
|
1286
1264
|
## `fonoster workspaces:use REF`
|
|
1287
1265
|
|
|
@@ -1301,5 +1279,5 @@ EXAMPLES
|
|
|
1301
1279
|
$ fonoster workspaces:use
|
|
1302
1280
|
```
|
|
1303
1281
|
|
|
1304
|
-
_See code: [dist/commands/workspaces/use.js](https://github.com/fonoster/fonoster/blob/v0.8.
|
|
1282
|
+
_See code: [dist/commands/workspaces/use.js](https://github.com/fonoster/fonoster/blob/v0.8.53/dist/commands/workspaces/use.js)_
|
|
1305
1283
|
<!-- commandsstop -->
|
|
@@ -100,7 +100,7 @@ function linkTwilioNumberToApplication(twilioClient, fonosterClient, params) {
|
|
|
100
100
|
host: `${resourceRef}.${constants_1.TWILIO_PSTN_URI_BASE}`,
|
|
101
101
|
port: 5060,
|
|
102
102
|
// TODO: This should be a parameter (e.g., a flag)
|
|
103
|
-
transport: "
|
|
103
|
+
transport: "UDP",
|
|
104
104
|
enabled: true,
|
|
105
105
|
weight: 10,
|
|
106
106
|
priority: 10
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/ctl",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.53",
|
|
4
4
|
"description": "Fonoster Control Tool",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"bugs": {
|
|
33
33
|
"url": "https://github.com/fonoster/fonoster/issues"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "471b2a1b922ed7cd0d5f6d79f95b890f07ec7880",
|
|
36
36
|
"bin": {
|
|
37
37
|
"fonoster": "./bin/run.js"
|
|
38
38
|
},
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@fonoster/sdk": "^0.8.
|
|
56
|
+
"@fonoster/sdk": "^0.8.52",
|
|
57
57
|
"@inquirer/prompts": "^7.1.0",
|
|
58
58
|
"@oclif/core": "^4.0.34",
|
|
59
59
|
"@oclif/plugin-warn-if-update-available": "^3.1.28",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from "@oclif/core";
|
|
2
|
-
export default class FormatForJson extends Command {
|
|
3
|
-
static readonly description = "takes a text document and formats it for JSON output";
|
|
4
|
-
static readonly examples: string[];
|
|
5
|
-
static readonly flags: {
|
|
6
|
-
input: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
-
output: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
-
};
|
|
9
|
-
run(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
/* eslint-disable import/no-unresolved */
|
|
49
|
-
/*
|
|
50
|
-
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
51
|
-
* http://github.com/fonoster/fonoster
|
|
52
|
-
*
|
|
53
|
-
* This file is part of Fonoster
|
|
54
|
-
*
|
|
55
|
-
* Licensed under the MIT License (the "License");
|
|
56
|
-
* you may not use this file except in compliance with
|
|
57
|
-
* the License. You may obtain a copy of the License at
|
|
58
|
-
*
|
|
59
|
-
* https://opensource.org/licenses/MIT
|
|
60
|
-
*
|
|
61
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
62
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
63
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
64
|
-
* See the License for the specific language governing permissions and
|
|
65
|
-
* limitations under the License.
|
|
66
|
-
*/
|
|
67
|
-
const errorHandler_1 = __importDefault(require("../../errorHandler"));
|
|
68
|
-
const core_1 = require("@oclif/core");
|
|
69
|
-
const fs = __importStar(require("fs"));
|
|
70
|
-
class FormatForJson extends core_1.Command {
|
|
71
|
-
run() {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
try {
|
|
74
|
-
const { flags } = yield this.parse(FormatForJson);
|
|
75
|
-
const inputPath = flags.input;
|
|
76
|
-
const outputPath = flags.output;
|
|
77
|
-
let document;
|
|
78
|
-
if (fs.existsSync(inputPath)) {
|
|
79
|
-
document = fs.readFileSync(inputPath, "utf8");
|
|
80
|
-
}
|
|
81
|
-
else if (fs.existsSync(process.cwd() + "/" + inputPath)) {
|
|
82
|
-
document = fs.readFileSync(process.cwd() + "/" + inputPath, "utf8");
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
this.error(`Document not found: ${inputPath}`);
|
|
86
|
-
}
|
|
87
|
-
const singleLineContent = document
|
|
88
|
-
.replace(/\r?\n/g, "\\n")
|
|
89
|
-
.replace(/"/g, "'");
|
|
90
|
-
if (outputPath) {
|
|
91
|
-
const jsonObject = {
|
|
92
|
-
content: singleLineContent.replaceAll("\\n", "\n")
|
|
93
|
-
};
|
|
94
|
-
fs.writeFileSync(outputPath, JSON.stringify(jsonObject, null, 2), "utf8");
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
this.log(`Single line content: ${singleLineContent}`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
catch (e) {
|
|
101
|
-
(0, errorHandler_1.default)(e, this.error.bind(this));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
FormatForJson.description = "takes a text document and formats it for JSON output";
|
|
107
|
-
FormatForJson.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
108
|
-
FormatForJson.flags = {
|
|
109
|
-
input: core_1.Flags.string({
|
|
110
|
-
char: "i",
|
|
111
|
-
description: "The input document",
|
|
112
|
-
required: true
|
|
113
|
-
}),
|
|
114
|
-
output: core_1.Flags.string({
|
|
115
|
-
char: "o",
|
|
116
|
-
description: "JSON output file",
|
|
117
|
-
required: false
|
|
118
|
-
})
|
|
119
|
-
};
|
|
120
|
-
exports.default = FormatForJson;
|