@fonoster/ctl 0.9.54 → 0.9.56

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.9.54 linux-x64 node-v20.19.0
26
+ @fonoster/ctl/0.9.56 linux-x64 node-v20.19.0
27
27
  $ fonoster --help [COMMAND]
28
28
  USAGE
29
29
  $ fonoster COMMAND
@@ -110,7 +110,7 @@ EXAMPLES
110
110
  $ fonoster apikeys:create
111
111
  ```
112
112
 
113
- _See code: [dist/commands/apikeys/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/apikeys/create.js)_
113
+ _See code: [dist/commands/apikeys/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/apikeys/create.js)_
114
114
 
115
115
  ## `fonoster apikeys:delete REF`
116
116
 
@@ -133,7 +133,7 @@ EXAMPLES
133
133
  $ fonoster apikeys:delete
134
134
  ```
135
135
 
136
- _See code: [dist/commands/apikeys/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/apikeys/delete.js)_
136
+ _See code: [dist/commands/apikeys/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/apikeys/delete.js)_
137
137
 
138
138
  ## `fonoster apikeys:list`
139
139
 
@@ -154,7 +154,7 @@ EXAMPLES
154
154
  $ fonoster apikeys:list
155
155
  ```
156
156
 
157
- _See code: [dist/commands/apikeys/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/apikeys/list.js)_
157
+ _See code: [dist/commands/apikeys/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/apikeys/list.js)_
158
158
 
159
159
  ## `fonoster apikeys:regenerate REF`
160
160
 
@@ -177,7 +177,7 @@ EXAMPLES
177
177
  $ fonoster apikeys:regenerate
178
178
  ```
179
179
 
180
- _See code: [dist/commands/apikeys/regenerate.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/apikeys/regenerate.js)_
180
+ _See code: [dist/commands/apikeys/regenerate.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/apikeys/regenerate.js)_
181
181
 
182
182
  ## `fonoster applications:create`
183
183
 
@@ -185,10 +185,11 @@ add a new Application to the active Workspace
185
185
 
186
186
  ```
187
187
  USAGE
188
- $ fonoster applications:create [-i]
188
+ $ fonoster applications:create [-i] [-f <value>]
189
189
 
190
190
  FLAGS
191
- -i, --insecure allow connections to a server with no TLS
191
+ -f, --from-file=<value> create Application from YAML or JSON file
192
+ -i, --insecure allow connections to a server with no TLS
192
193
 
193
194
  DESCRIPTION
194
195
  add a new Application to the active Workspace
@@ -197,7 +198,7 @@ EXAMPLES
197
198
  $ fonoster applications:create
198
199
  ```
199
200
 
200
- _See code: [dist/commands/applications/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/applications/create.js)_
201
+ _See code: [dist/commands/applications/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/applications/create.js)_
201
202
 
202
203
  ## `fonoster applications:delete REF`
203
204
 
@@ -220,7 +221,7 @@ EXAMPLES
220
221
  $ fonoster applications:delete
221
222
  ```
222
223
 
223
- _See code: [dist/commands/applications/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/applications/delete.js)_
224
+ _See code: [dist/commands/applications/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/applications/delete.js)_
224
225
 
225
226
  ## `fonoster applications:get REF`
226
227
 
@@ -243,7 +244,7 @@ EXAMPLES
243
244
  $ fonoster applications:get
244
245
  ```
245
246
 
246
- _See code: [dist/commands/applications/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/applications/get.js)_
247
+ _See code: [dist/commands/applications/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/applications/get.js)_
247
248
 
248
249
  ## `fonoster applications:list`
249
250
 
@@ -264,7 +265,7 @@ EXAMPLES
264
265
  $ fonoster applications:list
265
266
  ```
266
267
 
267
- _See code: [dist/commands/applications/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/applications/list.js)_
268
+ _See code: [dist/commands/applications/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/applications/list.js)_
268
269
 
269
270
  ## `fonoster applications:update REF`
270
271
 
@@ -272,13 +273,14 @@ modify the configuration of an Application
272
273
 
273
274
  ```
274
275
  USAGE
275
- $ fonoster applications:update REF [-i]
276
+ $ fonoster applications:update REF [-i] [-f <value>]
276
277
 
277
278
  ARGUMENTS
278
279
  REF the Application to update
279
280
 
280
281
  FLAGS
281
- -i, --insecure allow connections to a server with no TLS
282
+ -f, --from-file=<value> update Application from YAML or JSON file
283
+ -i, --insecure allow connections to a server with no TLS
282
284
 
283
285
  DESCRIPTION
284
286
  modify the configuration of an Application
@@ -287,7 +289,7 @@ EXAMPLES
287
289
  $ fonoster applications:update
288
290
  ```
289
291
 
290
- _See code: [dist/commands/applications/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/applications/update.js)_
292
+ _See code: [dist/commands/applications/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/applications/update.js)_
291
293
 
292
294
  ## `fonoster autopilot:testCases`
293
295
 
@@ -310,7 +312,7 @@ EXAMPLES
310
312
  $ fonoster autopilot:testCases -f assistant.yaml
311
313
  ```
312
314
 
313
- _See code: [dist/commands/autopilot/testCases.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/autopilot/testCases.js)_
315
+ _See code: [dist/commands/autopilot/testCases.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/autopilot/testCases.js)_
314
316
 
315
317
  ## `fonoster bug`
316
318
 
@@ -327,7 +329,7 @@ EXAMPLES
327
329
  $ fonoster bug
328
330
  ```
329
331
 
330
- _See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/bug.js)_
332
+ _See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/bug.js)_
331
333
 
332
334
  ## `fonoster feedback`
333
335
 
@@ -347,7 +349,7 @@ EXAMPLES
347
349
  $ fonoster feedback
348
350
  ```
349
351
 
350
- _See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/feedback.js)_
352
+ _See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/feedback.js)_
351
353
 
352
354
  ## `fonoster mcp:configure`
353
355
 
@@ -371,7 +373,7 @@ EXAMPLES
371
373
  $ fonoster mcp:configure --client claude --workspace my-workspace
372
374
  ```
373
375
 
374
- _See code: [dist/commands/mcp/configure.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/mcp/configure.js)_
376
+ _See code: [dist/commands/mcp/configure.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/mcp/configure.js)_
375
377
 
376
378
  ## `fonoster secrets:create`
377
379
 
@@ -391,7 +393,7 @@ EXAMPLES
391
393
  $ fonoster secrets:create
392
394
  ```
393
395
 
394
- _See code: [dist/commands/secrets/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/secrets/create.js)_
396
+ _See code: [dist/commands/secrets/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/secrets/create.js)_
395
397
 
396
398
  ## `fonoster secrets:delete REF`
397
399
 
@@ -414,7 +416,7 @@ EXAMPLES
414
416
  $ fonoster secrets:delete
415
417
  ```
416
418
 
417
- _See code: [dist/commands/secrets/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/secrets/delete.js)_
419
+ _See code: [dist/commands/secrets/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/secrets/delete.js)_
418
420
 
419
421
  ## `fonoster secrets:get REF`
420
422
 
@@ -437,7 +439,7 @@ EXAMPLES
437
439
  $ fonoster secrets:get
438
440
  ```
439
441
 
440
- _See code: [dist/commands/secrets/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/secrets/get.js)_
442
+ _See code: [dist/commands/secrets/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/secrets/get.js)_
441
443
 
442
444
  ## `fonoster secrets:list`
443
445
 
@@ -458,7 +460,7 @@ EXAMPLES
458
460
  $ fonoster secrets:list
459
461
  ```
460
462
 
461
- _See code: [dist/commands/secrets/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/secrets/list.js)_
463
+ _See code: [dist/commands/secrets/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/secrets/list.js)_
462
464
 
463
465
  ## `fonoster secrets:update REF`
464
466
 
@@ -481,7 +483,7 @@ EXAMPLES
481
483
  $ fonoster secrets:update
482
484
  ```
483
485
 
484
- _See code: [dist/commands/secrets/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/secrets/update.js)_
486
+ _See code: [dist/commands/secrets/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/secrets/update.js)_
485
487
 
486
488
  ## `fonoster sipnet:acls:create`
487
489
 
@@ -501,7 +503,7 @@ EXAMPLES
501
503
  $ fonoster sipnet:acls:create
502
504
  ```
503
505
 
504
- _See code: [dist/commands/sipnet/acls/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/acls/create.js)_
506
+ _See code: [dist/commands/sipnet/acls/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/acls/create.js)_
505
507
 
506
508
  ## `fonoster sipnet:acls:delete REF`
507
509
 
@@ -524,7 +526,7 @@ EXAMPLES
524
526
  $ fonoster sipnet:acls:delete
525
527
  ```
526
528
 
527
- _See code: [dist/commands/sipnet/acls/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/acls/delete.js)_
529
+ _See code: [dist/commands/sipnet/acls/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/acls/delete.js)_
528
530
 
529
531
  ## `fonoster sipnet:acls:get REF`
530
532
 
@@ -547,7 +549,7 @@ EXAMPLES
547
549
  $ fonoster sipnet:acls:get
548
550
  ```
549
551
 
550
- _See code: [dist/commands/sipnet/acls/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/acls/get.js)_
552
+ _See code: [dist/commands/sipnet/acls/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/acls/get.js)_
551
553
 
552
554
  ## `fonoster sipnet:acls:list`
553
555
 
@@ -568,7 +570,7 @@ EXAMPLES
568
570
  $ fonoster sipnet:acls:list
569
571
  ```
570
572
 
571
- _See code: [dist/commands/sipnet/acls/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/acls/list.js)_
573
+ _See code: [dist/commands/sipnet/acls/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/acls/list.js)_
572
574
 
573
575
  ## `fonoster sipnet:acls:update REF`
574
576
 
@@ -591,7 +593,7 @@ EXAMPLES
591
593
  $ fonoster sipnet:acls:update
592
594
  ```
593
595
 
594
- _See code: [dist/commands/sipnet/acls/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/acls/update.js)_
596
+ _See code: [dist/commands/sipnet/acls/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/acls/update.js)_
595
597
 
596
598
  ## `fonoster sipnet:agents:create`
597
599
 
@@ -611,7 +613,7 @@ EXAMPLES
611
613
  $ fonoster sipnet:agents:create
612
614
  ```
613
615
 
614
- _See code: [dist/commands/sipnet/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/agents/create.js)_
616
+ _See code: [dist/commands/sipnet/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/agents/create.js)_
615
617
 
616
618
  ## `fonoster sipnet:agents:delete REF`
617
619
 
@@ -634,7 +636,7 @@ EXAMPLES
634
636
  $ fonoster sipnet:agents:delete
635
637
  ```
636
638
 
637
- _See code: [dist/commands/sipnet/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/agents/delete.js)_
639
+ _See code: [dist/commands/sipnet/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/agents/delete.js)_
638
640
 
639
641
  ## `fonoster sipnet:agents:get REF`
640
642
 
@@ -657,7 +659,7 @@ EXAMPLES
657
659
  $ fonoster sipnet:agents:get
658
660
  ```
659
661
 
660
- _See code: [dist/commands/sipnet/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/agents/get.js)_
662
+ _See code: [dist/commands/sipnet/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/agents/get.js)_
661
663
 
662
664
  ## `fonoster sipnet:agents:list`
663
665
 
@@ -678,7 +680,7 @@ EXAMPLES
678
680
  $ fonoster sipnet:agents:list
679
681
  ```
680
682
 
681
- _See code: [dist/commands/sipnet/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/agents/list.js)_
683
+ _See code: [dist/commands/sipnet/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/agents/list.js)_
682
684
 
683
685
  ## `fonoster sipnet:agents:update REF`
684
686
 
@@ -701,7 +703,7 @@ EXAMPLES
701
703
  $ fonoster sipnet:agents:update
702
704
  ```
703
705
 
704
- _See code: [dist/commands/sipnet/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/agents/update.js)_
706
+ _See code: [dist/commands/sipnet/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/agents/update.js)_
705
707
 
706
708
  ## `fonoster sipnet:calls:create`
707
709
 
@@ -727,7 +729,7 @@ EXAMPLES
727
729
  $ fonoster sipnet:calls:create
728
730
  ```
729
731
 
730
- _See code: [dist/commands/sipnet/calls/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/calls/create.js)_
732
+ _See code: [dist/commands/sipnet/calls/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/calls/create.js)_
731
733
 
732
734
  ## `fonoster sipnet:calls:get REF`
733
735
 
@@ -750,7 +752,7 @@ EXAMPLES
750
752
  $ fonoster sipnet:calls:get
751
753
  ```
752
754
 
753
- _See code: [dist/commands/sipnet/calls/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/calls/get.js)_
755
+ _See code: [dist/commands/sipnet/calls/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/calls/get.js)_
754
756
 
755
757
  ## `fonoster sipnet:calls:list`
756
758
 
@@ -771,7 +773,7 @@ EXAMPLES
771
773
  $ fonoster sipnet:calls:list
772
774
  ```
773
775
 
774
- _See code: [dist/commands/sipnet/calls/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/calls/list.js)_
776
+ _See code: [dist/commands/sipnet/calls/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/calls/list.js)_
775
777
 
776
778
  ## `fonoster sipnet:credentials:create`
777
779
 
@@ -791,7 +793,7 @@ EXAMPLES
791
793
  $ fonoster sipnet:credentials:create
792
794
  ```
793
795
 
794
- _See code: [dist/commands/sipnet/credentials/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/credentials/create.js)_
796
+ _See code: [dist/commands/sipnet/credentials/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/credentials/create.js)_
795
797
 
796
798
  ## `fonoster sipnet:credentials:delete REF`
797
799
 
@@ -814,7 +816,7 @@ EXAMPLES
814
816
  $ fonoster sipnet:credentials:delete
815
817
  ```
816
818
 
817
- _See code: [dist/commands/sipnet/credentials/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/credentials/delete.js)_
819
+ _See code: [dist/commands/sipnet/credentials/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/credentials/delete.js)_
818
820
 
819
821
  ## `fonoster sipnet:credentials:get REF`
820
822
 
@@ -837,7 +839,7 @@ EXAMPLES
837
839
  $ fonoster sipnet:credentials:get
838
840
  ```
839
841
 
840
- _See code: [dist/commands/sipnet/credentials/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/credentials/get.js)_
842
+ _See code: [dist/commands/sipnet/credentials/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/credentials/get.js)_
841
843
 
842
844
  ## `fonoster sipnet:credentials:list`
843
845
 
@@ -858,7 +860,7 @@ EXAMPLES
858
860
  $ fonoster sipnet:credentials:list
859
861
  ```
860
862
 
861
- _See code: [dist/commands/sipnet/credentials/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/credentials/list.js)_
863
+ _See code: [dist/commands/sipnet/credentials/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/credentials/list.js)_
862
864
 
863
865
  ## `fonoster sipnet:credentials:update REF`
864
866
 
@@ -881,7 +883,7 @@ EXAMPLES
881
883
  $ fonoster sipnet:credentials:update
882
884
  ```
883
885
 
884
- _See code: [dist/commands/sipnet/credentials/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/credentials/update.js)_
886
+ _See code: [dist/commands/sipnet/credentials/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/credentials/update.js)_
885
887
 
886
888
  ## `fonoster sipnet:domains:create`
887
889
 
@@ -901,7 +903,7 @@ EXAMPLES
901
903
  $ fonoster sipnet:domains:create
902
904
  ```
903
905
 
904
- _See code: [dist/commands/sipnet/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/domains/create.js)_
906
+ _See code: [dist/commands/sipnet/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/domains/create.js)_
905
907
 
906
908
  ## `fonoster sipnet:domains:delete REF`
907
909
 
@@ -924,7 +926,7 @@ EXAMPLES
924
926
  $ fonoster sipnet:domains:delete
925
927
  ```
926
928
 
927
- _See code: [dist/commands/sipnet/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/domains/delete.js)_
929
+ _See code: [dist/commands/sipnet/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/domains/delete.js)_
928
930
 
929
931
  ## `fonoster sipnet:domains:get REF`
930
932
 
@@ -947,7 +949,7 @@ EXAMPLES
947
949
  $ fonoster sipnet:domains:get
948
950
  ```
949
951
 
950
- _See code: [dist/commands/sipnet/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/domains/get.js)_
952
+ _See code: [dist/commands/sipnet/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/domains/get.js)_
951
953
 
952
954
  ## `fonoster sipnet:domains:list`
953
955
 
@@ -968,7 +970,7 @@ EXAMPLES
968
970
  $ fonoster sipnet:domains:list
969
971
  ```
970
972
 
971
- _See code: [dist/commands/sipnet/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/domains/list.js)_
973
+ _See code: [dist/commands/sipnet/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/domains/list.js)_
972
974
 
973
975
  ## `fonoster sipnet:domains:update REF`
974
976
 
@@ -991,7 +993,7 @@ EXAMPLES
991
993
  $ fonoster sipnet:domains:update
992
994
  ```
993
995
 
994
- _See code: [dist/commands/sipnet/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/domains/update.js)_
996
+ _See code: [dist/commands/sipnet/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/domains/update.js)_
995
997
 
996
998
  ## `fonoster sipnet:numbers:create`
997
999
 
@@ -1011,7 +1013,7 @@ EXAMPLES
1011
1013
  $ fonoster sipnet:numbers:create
1012
1014
  ```
1013
1015
 
1014
- _See code: [dist/commands/sipnet/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/create.js)_
1016
+ _See code: [dist/commands/sipnet/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/create.js)_
1015
1017
 
1016
1018
  ## `fonoster sipnet:numbers:delete REF`
1017
1019
 
@@ -1034,7 +1036,7 @@ EXAMPLES
1034
1036
  $ fonoster sipnet:numbers:delete
1035
1037
  ```
1036
1038
 
1037
- _See code: [dist/commands/sipnet/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/delete.js)_
1039
+ _See code: [dist/commands/sipnet/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/delete.js)_
1038
1040
 
1039
1041
  ## `fonoster sipnet:numbers:get REF`
1040
1042
 
@@ -1057,7 +1059,7 @@ EXAMPLES
1057
1059
  $ fonoster sipnet:numbers:get
1058
1060
  ```
1059
1061
 
1060
- _See code: [dist/commands/sipnet/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/get.js)_
1062
+ _See code: [dist/commands/sipnet/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/get.js)_
1061
1063
 
1062
1064
  ## `fonoster sipnet:numbers:linkTwilioNumber`
1063
1065
 
@@ -1081,7 +1083,7 @@ EXAMPLES
1081
1083
  $ fonoster sipnet:numbers:linkTwilioNumber
1082
1084
  ```
1083
1085
 
1084
- _See code: [dist/commands/sipnet/numbers/linkTwilioNumber.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/linkTwilioNumber.js)_
1086
+ _See code: [dist/commands/sipnet/numbers/linkTwilioNumber.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/linkTwilioNumber.js)_
1085
1087
 
1086
1088
  ## `fonoster sipnet:numbers:list`
1087
1089
 
@@ -1102,7 +1104,7 @@ EXAMPLES
1102
1104
  $ fonoster sipnet:numbers:list
1103
1105
  ```
1104
1106
 
1105
- _See code: [dist/commands/sipnet/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/list.js)_
1107
+ _See code: [dist/commands/sipnet/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/list.js)_
1106
1108
 
1107
1109
  ## `fonoster sipnet:numbers:update REF`
1108
1110
 
@@ -1125,7 +1127,7 @@ EXAMPLES
1125
1127
  $ fonoster sipnet:numbers:update
1126
1128
  ```
1127
1129
 
1128
- _See code: [dist/commands/sipnet/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/numbers/update.js)_
1130
+ _See code: [dist/commands/sipnet/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/numbers/update.js)_
1129
1131
 
1130
1132
  ## `fonoster sipnet:trunks:create`
1131
1133
 
@@ -1145,7 +1147,7 @@ EXAMPLES
1145
1147
  $ fonoster sipnet:trunks:create
1146
1148
  ```
1147
1149
 
1148
- _See code: [dist/commands/sipnet/trunks/create.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/trunks/create.js)_
1150
+ _See code: [dist/commands/sipnet/trunks/create.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/trunks/create.js)_
1149
1151
 
1150
1152
  ## `fonoster sipnet:trunks:delete REF`
1151
1153
 
@@ -1168,7 +1170,7 @@ EXAMPLES
1168
1170
  $ fonoster sipnet:trunks:delete
1169
1171
  ```
1170
1172
 
1171
- _See code: [dist/commands/sipnet/trunks/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/trunks/delete.js)_
1173
+ _See code: [dist/commands/sipnet/trunks/delete.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/trunks/delete.js)_
1172
1174
 
1173
1175
  ## `fonoster sipnet:trunks:get REF`
1174
1176
 
@@ -1191,7 +1193,7 @@ EXAMPLES
1191
1193
  $ fonoster sipnet:trunks:get
1192
1194
  ```
1193
1195
 
1194
- _See code: [dist/commands/sipnet/trunks/get.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/trunks/get.js)_
1196
+ _See code: [dist/commands/sipnet/trunks/get.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/trunks/get.js)_
1195
1197
 
1196
1198
  ## `fonoster sipnet:trunks:list`
1197
1199
 
@@ -1212,7 +1214,7 @@ EXAMPLES
1212
1214
  $ fonoster sipnet:trunks:list
1213
1215
  ```
1214
1216
 
1215
- _See code: [dist/commands/sipnet/trunks/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/trunks/list.js)_
1217
+ _See code: [dist/commands/sipnet/trunks/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/trunks/list.js)_
1216
1218
 
1217
1219
  ## `fonoster sipnet:trunks:update REF`
1218
1220
 
@@ -1235,7 +1237,7 @@ EXAMPLES
1235
1237
  $ fonoster sipnet:trunks:update
1236
1238
  ```
1237
1239
 
1238
- _See code: [dist/commands/sipnet/trunks/update.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/sipnet/trunks/update.js)_
1240
+ _See code: [dist/commands/sipnet/trunks/update.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/sipnet/trunks/update.js)_
1239
1241
 
1240
1242
  ## `fonoster workspaces:active`
1241
1243
 
@@ -1252,7 +1254,7 @@ EXAMPLES
1252
1254
  $ fonoster workspaces:active
1253
1255
  ```
1254
1256
 
1255
- _See code: [dist/commands/workspaces/active.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/workspaces/active.js)_
1257
+ _See code: [dist/commands/workspaces/active.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/workspaces/active.js)_
1256
1258
 
1257
1259
  ## `fonoster workspaces:list`
1258
1260
 
@@ -1269,7 +1271,7 @@ EXAMPLES
1269
1271
  $ fonoster workspaces:list
1270
1272
  ```
1271
1273
 
1272
- _See code: [dist/commands/workspaces/list.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/workspaces/list.js)_
1274
+ _See code: [dist/commands/workspaces/list.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/workspaces/list.js)_
1273
1275
 
1274
1276
  ## `fonoster workspaces:login`
1275
1277
 
@@ -1289,7 +1291,7 @@ EXAMPLES
1289
1291
  $ fonoster workspaces:login
1290
1292
  ```
1291
1293
 
1292
- _See code: [dist/commands/workspaces/login.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/workspaces/login.js)_
1294
+ _See code: [dist/commands/workspaces/login.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/workspaces/login.js)_
1293
1295
 
1294
1296
  ## `fonoster workspaces:logout REF`
1295
1297
 
@@ -1309,7 +1311,7 @@ EXAMPLES
1309
1311
  $ fonoster workspaces:logout
1310
1312
  ```
1311
1313
 
1312
- _See code: [dist/commands/workspaces/logout.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/workspaces/logout.js)_
1314
+ _See code: [dist/commands/workspaces/logout.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/workspaces/logout.js)_
1313
1315
 
1314
1316
  ## `fonoster workspaces:use REF`
1315
1317
 
@@ -1329,5 +1331,5 @@ EXAMPLES
1329
1331
  $ fonoster workspaces:use
1330
1332
  ```
1331
1333
 
1332
- _See code: [dist/commands/workspaces/use.js](https://github.com/fonoster/fonoster/blob/v0.9.54/dist/commands/workspaces/use.js)_
1334
+ _See code: [dist/commands/workspaces/use.js](https://github.com/fonoster/fonoster/blob/v0.9.56/dist/commands/workspaces/use.js)_
1333
1335
  <!-- commandsstop -->
@@ -2,5 +2,8 @@ import { AuthenticatedCommand } from "../../AuthenticatedCommand";
2
2
  export default class Create extends AuthenticatedCommand<typeof Create> {
3
3
  static readonly description = "add a new Application to the active Workspace";
4
4
  static readonly examples: string[];
5
+ static readonly flags: {
6
+ "from-file": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ };
5
8
  run(): Promise<void>;
6
9
  }
@@ -66,11 +66,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
66
66
  const common_1 = require("@fonoster/common");
67
67
  const SDK = __importStar(require("@fonoster/sdk"));
68
68
  const prompts_1 = require("@inquirer/prompts");
69
+ const core_1 = require("@oclif/core");
69
70
  const AuthenticatedCommand_1 = require("../../AuthenticatedCommand");
70
71
  const errorHandler_1 = __importDefault(require("../../errorHandler"));
72
+ const createOrUpdateApplication_1 = require("../../utils/createOrUpdateApplication");
71
73
  class Create extends AuthenticatedCommand_1.AuthenticatedCommand {
72
74
  run() {
73
75
  return __awaiter(this, void 0, void 0, function* () {
76
+ const { flags } = yield this.parse(Create);
77
+ const client = yield this.createSdkClient();
78
+ if (flags["from-file"]) {
79
+ try {
80
+ yield (0, createOrUpdateApplication_1.createOrUpdateApplication)(client, flags["from-file"]);
81
+ this.log("Done!");
82
+ return;
83
+ }
84
+ catch (e) {
85
+ (0, errorHandler_1.default)(e, this.error.bind(this));
86
+ return;
87
+ }
88
+ }
74
89
  this.log("This utility will help you create an Application.");
75
90
  this.log("Press ^C at any time to quit.");
76
91
  const answers = {
@@ -167,7 +182,6 @@ class Create extends AuthenticatedCommand_1.AuthenticatedCommand {
167
182
  }
168
183
  answers.textToSpeech.config = Object.assign(Object.assign({}, answers.textToSpeech.config), answersPartTwo.textToSpeech.config);
169
184
  try {
170
- const client = yield this.createSdkClient();
171
185
  const applications = new SDK.Applications(client);
172
186
  yield applications.createApplication(answers);
173
187
  this.log("Done!");
@@ -180,4 +194,10 @@ class Create extends AuthenticatedCommand_1.AuthenticatedCommand {
180
194
  }
181
195
  Create.description = "add a new Application to the active Workspace";
182
196
  Create.examples = ["<%= config.bin %> <%= command.id %>"];
197
+ Create.flags = {
198
+ "from-file": core_1.Flags.string({
199
+ char: "f",
200
+ description: "create Application from YAML or JSON file"
201
+ })
202
+ };
183
203
  exports.default = Create;
@@ -5,5 +5,8 @@ export default class Update extends AuthenticatedCommand<typeof Update> {
5
5
  static readonly args: {
6
6
  ref: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
+ static readonly flags: {
9
+ "from-file": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ };
8
11
  run(): Promise<void>;
9
12
  }
@@ -68,12 +68,25 @@ const prompts_1 = require("@inquirer/prompts");
68
68
  const core_1 = require("@oclif/core");
69
69
  const AuthenticatedCommand_1 = require("../../AuthenticatedCommand");
70
70
  const errorHandler_1 = __importDefault(require("../../errorHandler"));
71
+ const createOrUpdateApplication_1 = require("../../utils/createOrUpdateApplication");
71
72
  class Update extends AuthenticatedCommand_1.AuthenticatedCommand {
72
73
  run() {
73
74
  return __awaiter(this, void 0, void 0, function* () {
74
75
  var _a, _b, _c, _d, _e, _f, _g, _h;
75
- const { args } = yield this.parse(Update);
76
+ const { args, flags } = yield this.parse(Update);
76
77
  const { ref } = args;
78
+ if (flags["from-file"]) {
79
+ try {
80
+ const client = yield this.createSdkClient();
81
+ yield (0, createOrUpdateApplication_1.createOrUpdateApplication)(client, flags["from-file"], ref);
82
+ this.log("Done!");
83
+ return;
84
+ }
85
+ catch (e) {
86
+ (0, errorHandler_1.default)(e, this.error.bind(this));
87
+ return;
88
+ }
89
+ }
77
90
  const client = yield this.createSdkClient();
78
91
  const applications = new SDK.Applications(client);
79
92
  const applicationFromDB = yield applications.getApplication(args.ref);
@@ -199,4 +212,10 @@ Update.args = {
199
212
  required: true
200
213
  })
201
214
  };
215
+ Update.flags = {
216
+ "from-file": core_1.Flags.string({
217
+ char: "f",
218
+ description: "update Application from YAML or JSON file"
219
+ })
220
+ };
202
221
  exports.default = Update;
@@ -0,0 +1,2 @@
1
+ import * as SDK from "@fonoster/sdk";
2
+ export declare function createOrUpdateApplication(client: SDK.Client, filePath: string, appRef?: string): Promise<import("@fonoster/types").BaseApiObject>;
@@ -0,0 +1,97 @@
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
+ exports.createOrUpdateApplication = createOrUpdateApplication;
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 fs_1 = require("fs");
68
+ const path_1 = __importDefault(require("path"));
69
+ const SDK = __importStar(require("@fonoster/sdk"));
70
+ const js_yaml_1 = require("js-yaml");
71
+ function createOrUpdateApplication(client, filePath, appRef) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ var _a, _b, _c;
74
+ const fileContent = (0, fs_1.readFileSync)(filePath, "utf8");
75
+ const fileExt = path_1.default.extname(filePath).toLowerCase();
76
+ let config;
77
+ if (fileExt === ".yaml" || fileExt === ".yml") {
78
+ config = (0, js_yaml_1.load)(fileContent);
79
+ }
80
+ else if (fileExt === ".json") {
81
+ config = JSON.parse(fileContent);
82
+ }
83
+ else {
84
+ throw new Error("Unsupported file format. Please use YAML or JSON files.");
85
+ }
86
+ const applications = new SDK.Applications(client);
87
+ delete config.testCases;
88
+ (_c = (_b = (_a = config.intelligence) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.languageModel) === null || _c === void 0 ? true : delete _c.apiKey;
89
+ if (appRef) {
90
+ const updateConfig = Object.assign({ ref: appRef }, config);
91
+ return applications.updateApplication(updateConfig);
92
+ }
93
+ else {
94
+ return applications.createApplication(config);
95
+ }
96
+ });
97
+ }
@@ -25,3 +25,4 @@ export * from "./getTwilioNumber";
25
25
  export * from "./getTwilioTrunk";
26
26
  export * from "./linkTwilioNumberToApplication";
27
27
  export * from "./types";
28
+ export * from "./createOrUpdateApplication";
@@ -41,3 +41,4 @@ __exportStar(require("./getTwilioNumber"), exports);
41
41
  __exportStar(require("./getTwilioTrunk"), exports);
42
42
  __exportStar(require("./linkTwilioNumberToApplication"), exports);
43
43
  __exportStar(require("./types"), exports);
44
+ __exportStar(require("./createOrUpdateApplication"), exports);
@@ -29,4 +29,14 @@ type TwilioTrunkParams = {
29
29
  originationUriBase: string;
30
30
  aclEntries: string[];
31
31
  };
32
- export { LinkTwilioNumberToApplicationParams, TwilioTrunkParams };
32
+ type AppConfig = {
33
+ testCases?: unknown;
34
+ intelligence: {
35
+ config: {
36
+ languageModel: {
37
+ apiKey?: string;
38
+ };
39
+ };
40
+ };
41
+ };
42
+ export { LinkTwilioNumberToApplicationParams, TwilioTrunkParams, AppConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/ctl",
3
- "version": "0.9.54",
3
+ "version": "0.9.56",
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": "5272372951df997cb17d49f9cda6fc9816e304c9",
35
+ "gitHead": "fa32573d8af9093bcac42ad2ebedd70d2b6da573",
36
36
  "bin": {
37
37
  "fonoster": "./bin/run.js"
38
38
  },
@@ -53,8 +53,8 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@fonoster/autopilot": "^0.9.54",
57
- "@fonoster/sdk": "^0.9.54",
56
+ "@fonoster/autopilot": "^0.9.56",
57
+ "@fonoster/sdk": "^0.9.56",
58
58
  "@inquirer/prompts": "^7.1.0",
59
59
  "@oclif/core": "^4.0.34",
60
60
  "@oclif/plugin-warn-if-update-available": "^3.1.28",