@w6w/cli 0.9.9 → 0.9.12

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.
Files changed (46) hide show
  1. package/dist/mod.d.ts.map +1 -1
  2. package/dist/mod.js +1 -1
  3. package/dist/mod.js.map +1 -1
  4. package/dist/src/commands/apps.d.ts +12 -0
  5. package/dist/src/commands/apps.d.ts.map +1 -0
  6. package/dist/src/commands/apps.js +26 -0
  7. package/dist/src/commands/apps.js.map +1 -0
  8. package/dist/src/commands/connections.d.ts +9 -5
  9. package/dist/src/commands/connections.d.ts.map +1 -1
  10. package/dist/src/commands/connections.js +29 -6
  11. package/dist/src/commands/connections.js.map +1 -1
  12. package/dist/src/commands/dashboard.d.ts +11 -0
  13. package/dist/src/commands/dashboard.d.ts.map +1 -0
  14. package/dist/src/commands/dashboard.js +34 -0
  15. package/dist/src/commands/dashboard.js.map +1 -0
  16. package/dist/src/commands/functions.d.ts +6 -3
  17. package/dist/src/commands/functions.d.ts.map +1 -1
  18. package/dist/src/commands/functions.js +46 -4
  19. package/dist/src/commands/functions.js.map +1 -1
  20. package/dist/src/commands/index.d.ts +4 -0
  21. package/dist/src/commands/index.d.ts.map +1 -1
  22. package/dist/src/commands/index.js +12 -0
  23. package/dist/src/commands/index.js.map +1 -1
  24. package/dist/src/commands/named-run.d.ts.map +1 -1
  25. package/dist/src/commands/named-run.js +5 -1
  26. package/dist/src/commands/named-run.js.map +1 -1
  27. package/dist/src/commands/projects.d.ts +12 -0
  28. package/dist/src/commands/projects.d.ts.map +1 -0
  29. package/dist/src/commands/projects.js +24 -0
  30. package/dist/src/commands/projects.js.map +1 -0
  31. package/dist/src/commands/reliability.d.ts +14 -0
  32. package/dist/src/commands/reliability.d.ts.map +1 -0
  33. package/dist/src/commands/reliability.js +69 -0
  34. package/dist/src/commands/reliability.js.map +1 -0
  35. package/dist/src/commands/versions.d.ts +30 -0
  36. package/dist/src/commands/versions.d.ts.map +1 -0
  37. package/dist/src/commands/versions.js +100 -0
  38. package/dist/src/commands/versions.js.map +1 -0
  39. package/dist/src/commands/workflows.d.ts +2 -1
  40. package/dist/src/commands/workflows.d.ts.map +1 -1
  41. package/dist/src/commands/workflows.js +29 -2
  42. package/dist/src/commands/workflows.js.map +1 -1
  43. package/dist/src/help.generated.d.ts.map +1 -1
  44. package/dist/src/help.generated.js +1571 -472
  45. package/dist/src/help.generated.js.map +1 -1
  46. package/package.json +3 -2
@@ -17,7 +17,7 @@
17
17
  /** The command tree, generated from the shared wrapper surface contract. */
18
18
  export const HELP_TREE = {
19
19
  "binary": "w6w",
20
- "contractVersion": "0.6.0",
20
+ "contractVersion": "0.7.0",
21
21
  "tagline": "command-line client for the w6w workflow platform",
22
22
  "usage": "w6w <command> [options]",
23
23
  "docsUrl": "https://w6w.dev/docs/cli",
@@ -111,8 +111,8 @@ export const HELP_TREE = {
111
111
  "groups": [
112
112
  {
113
113
  "name": "connections",
114
- "summary": "Inspect connections",
115
- "headline": "inspect connections",
114
+ "summary": "List, inspect and delete connections",
115
+ "headline": "list, inspect and delete connections",
116
116
  "usage": "w6w connections <command> [options]",
117
117
  "commands": [
118
118
  {
@@ -144,6 +144,77 @@ export const HELP_TREE = {
144
144
  ],
145
145
  "notes": [],
146
146
  },
147
+ {
148
+ "operation": "connections.get",
149
+ "path": [
150
+ "connections",
151
+ "get",
152
+ ],
153
+ "name": "get",
154
+ "aliases": [],
155
+ "summary": "Fetch one connection (credentials redacted).",
156
+ "short": "Fetch one connection (credentials redacted)",
157
+ "headline": "fetch one connection (credentials redacted)",
158
+ "usage": "w6w connections get <id> [options]",
159
+ "naming": "w6w connections get <id>",
160
+ "status": "required",
161
+ "params": [
162
+ {
163
+ "name": "id",
164
+ "kind": "argument",
165
+ "display": "<id>",
166
+ "description": "Connection id (see: w6w connections list)",
167
+ "required": true,
168
+ },
169
+ {
170
+ "name": "json",
171
+ "kind": "flag",
172
+ "display": "--json",
173
+ "description": "Output raw JSON instead of a table",
174
+ "required": false,
175
+ },
176
+ ],
177
+ "examples": [
178
+ "w6w connections get conn_01HQ8N",
179
+ "w6w connections get conn_01HQ8N --json",
180
+ ],
181
+ "notes": [],
182
+ },
183
+ {
184
+ "operation": "connections.delete",
185
+ "path": [
186
+ "connections",
187
+ "delete",
188
+ ],
189
+ "name": "delete",
190
+ "aliases": [],
191
+ "summary": "Delete a connection.",
192
+ "short": "Delete a connection",
193
+ "headline": "delete a connection",
194
+ "usage": "w6w connections delete <id> [options]",
195
+ "naming": "w6w connections delete <id>",
196
+ "status": "required",
197
+ "params": [
198
+ {
199
+ "name": "id",
200
+ "kind": "argument",
201
+ "display": "<id>",
202
+ "description": "Connection id (see: w6w connections list)",
203
+ "required": true,
204
+ },
205
+ {
206
+ "name": "json",
207
+ "kind": "flag",
208
+ "display": "--json",
209
+ "description": "Output raw JSON instead of a table",
210
+ "required": false,
211
+ },
212
+ ],
213
+ "examples": [
214
+ "w6w connections delete conn_01HQ8N",
215
+ ],
216
+ "notes": [],
217
+ },
147
218
  ],
148
219
  "options": [],
149
220
  "examples": [
@@ -242,6 +313,13 @@ export const HELP_TREE = {
242
313
  "description": "Run input, as a JSON string",
243
314
  "required": false,
244
315
  },
316
+ {
317
+ "name": "allowUnpublished",
318
+ "kind": "flag",
319
+ "display": "--allow-unpublished",
320
+ "description": "Run the saved draft even if it was never published (sent only when given)",
321
+ "required": false,
322
+ },
245
323
  {
246
324
  "name": "json",
247
325
  "kind": "flag",
@@ -252,12 +330,14 @@ export const HELP_TREE = {
252
330
  ],
253
331
  "examples": [
254
332
  "w6w workflows run wf_01HQ8N --var email=a@b.com",
333
+ "w6w workflows run wf_01HQ8N --allow-unpublished --wait",
255
334
  "w6w workflows run wf_01HQ8N --wait --json",
256
335
  'w6w workflows run wf_01HQ8N --input \'{"email":"a@b.com"}\'',
257
336
  ],
258
337
  "notes": [
259
338
  'Without --wait the run is queued and the command returns immediately with a run id and status "queued". With --wait the CLI returns when the run finishes or the server\'s wait window expires — a run still in progress is reported as "running", which is not an error.',
260
339
  'A run that finished with status "failed" exits 3, so --wait is usable in CI without parsing stdout.',
340
+ "--allow-unpublished runs the STORED draft even if it was never published (a disabled workflow is still refused). It runs the row as last saved, never a definition you pass here, so save first. It is sent only when given.",
261
341
  ],
262
342
  },
263
343
  {
@@ -502,40 +582,27 @@ export const HELP_TREE = {
502
582
  ],
503
583
  "notes": [],
504
584
  },
505
- ],
506
- "options": [],
507
- "examples": [
508
- "w6w workflows list",
509
- "w6w workflows run wf_01HQ8N --wait",
510
- ],
511
- },
512
- {
513
- "name": "documents",
514
- "summary": "Create, read, update and delete documents",
515
- "headline": "create, read, update and delete documents",
516
- "usage": "w6w documents <command> [options]",
517
- "commands": [
518
585
  {
519
- "operation": "documents.list",
586
+ "operation": "workflows.listVersions",
520
587
  "path": [
521
- "documents",
522
- "list",
588
+ "workflows",
589
+ "versions",
523
590
  ],
524
- "name": "list",
591
+ "name": "versions",
525
592
  "aliases": [],
526
- "summary": "List the caller's documents in a project.",
527
- "short": "List the caller's documents in a project",
528
- "headline": "list the caller's documents in a project",
529
- "usage": "w6w documents list [options]",
530
- "naming": "w6w documents list [--project <id>]",
593
+ "summary": "List a workflow's published versions.",
594
+ "short": "List a workflow's published versions",
595
+ "headline": "list a workflow's published versions",
596
+ "usage": "w6w workflows versions <id> [options]",
597
+ "naming": "w6w workflows versions <id>",
531
598
  "status": "required",
532
599
  "params": [
533
600
  {
534
- "name": "project",
535
- "kind": "flag",
536
- "display": "--project <id>",
537
- "description": "Project to scope to (default: the account's default project)",
538
- "required": false,
601
+ "name": "id",
602
+ "kind": "argument",
603
+ "display": "<id>",
604
+ "description": "Workflow id (see: w6w workflows list)",
605
+ "required": true,
539
606
  },
540
607
  {
541
608
  "name": "json",
@@ -546,39 +613,39 @@ export const HELP_TREE = {
546
613
  },
547
614
  ],
548
615
  "examples": [
549
- "w6w documents list",
550
- "w6w documents list --project prj_01HQ8N",
616
+ "w6w workflows versions wf_01HQ8N",
617
+ "w6w workflows versions wf_01HQ8N --json",
551
618
  ],
552
619
  "notes": [],
553
620
  },
554
621
  {
555
- "operation": "documents.get",
622
+ "operation": "workflows.getVersion",
556
623
  "path": [
557
- "documents",
558
- "get",
624
+ "workflows",
625
+ "version",
559
626
  ],
560
- "name": "get",
627
+ "name": "version",
561
628
  "aliases": [],
562
- "summary": "Fetch one document by its `doc_…` id.",
563
- "short": "Fetch one document by its `doc_…` id",
564
- "headline": "fetch one document by its `doc_…` id",
565
- "usage": "w6w documents get <id> [options]",
566
- "naming": "w6w documents get <id> [--project <id>]",
629
+ "summary": "Read one published version of a workflow, with its definition.",
630
+ "short": "Read one published version of a workflow, with its definition",
631
+ "headline": "read one published version of a workflow, with its definition",
632
+ "usage": "w6w workflows version <id> <n> [options]",
633
+ "naming": "w6w workflows version <id> <n>",
567
634
  "status": "required",
568
635
  "params": [
569
636
  {
570
637
  "name": "id",
571
638
  "kind": "argument",
572
639
  "display": "<id>",
573
- "description": "Document id (see: w6w documents list)",
640
+ "description": "Workflow id (see: w6w workflows list)",
574
641
  "required": true,
575
642
  },
576
643
  {
577
- "name": "project",
578
- "kind": "flag",
579
- "display": "--project <id>",
580
- "description": "Project to scope to (default: the account's default project)",
581
- "required": false,
644
+ "name": "n",
645
+ "kind": "argument",
646
+ "display": "<n>",
647
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
648
+ "required": true,
582
649
  },
583
650
  {
584
651
  "name": "json",
@@ -589,39 +656,33 @@ export const HELP_TREE = {
589
656
  },
590
657
  ],
591
658
  "examples": [
592
- "w6w documents get doc_01HQ8N",
659
+ "w6w workflows version wf_01HQ8N 3",
660
+ "w6w workflows version wf_01HQ8N 3 --json",
593
661
  ],
594
662
  "notes": [],
595
663
  },
596
664
  {
597
- "operation": "documents.getByKey",
665
+ "operation": "workflows.publish",
598
666
  "path": [
599
- "documents",
600
- "get-by-key",
667
+ "workflows",
668
+ "publish",
601
669
  ],
602
- "name": "get-by-key",
670
+ "name": "publish",
603
671
  "aliases": [],
604
- "summary": "Fetch one document by its human-chosen `key`.",
605
- "short": "Fetch one document by its human-chosen `key`",
606
- "headline": "fetch one document by its human-chosen `key`",
607
- "usage": "w6w documents get-by-key <key> [options]",
608
- "naming": "w6w documents get-by-key <key> [--project <id>]",
672
+ "summary": "Publish the workflow's stored definition as a new immutable version.",
673
+ "short": "Publish the workflow's stored definition as a new immutable version",
674
+ "headline": "publish the workflow's stored definition as a new immutable version",
675
+ "usage": "w6w workflows publish <id> [options]",
676
+ "naming": "w6w workflows publish <id>",
609
677
  "status": "required",
610
678
  "params": [
611
679
  {
612
- "name": "key",
680
+ "name": "id",
613
681
  "kind": "argument",
614
- "display": "<key>",
615
- "description": "Document key, as chosen at creation",
682
+ "display": "<id>",
683
+ "description": "Workflow id (see: w6w workflows list)",
616
684
  "required": true,
617
685
  },
618
- {
619
- "name": "project",
620
- "kind": "flag",
621
- "display": "--project <id>",
622
- "description": "Project to scope to (default: the account's default project)",
623
- "required": false,
624
- },
625
686
  {
626
687
  "name": "json",
627
688
  "kind": "flag",
@@ -631,60 +692,41 @@ export const HELP_TREE = {
631
692
  },
632
693
  ],
633
694
  "examples": [
634
- "w6w documents get-by-key onboarding-email",
695
+ "w6w workflows publish wf_01HQ8N",
696
+ ],
697
+ "notes": [
698
+ "Publishes the workflow as saved: snapshots the stored row into a new numbered version. Save any pending edit first.",
635
699
  ],
636
- "notes": [],
637
700
  },
638
701
  {
639
- "operation": "documents.create",
702
+ "operation": "workflows.revert",
640
703
  "path": [
641
- "documents",
642
- "create",
704
+ "workflows",
705
+ "revert",
643
706
  ],
644
- "name": "create",
707
+ "name": "revert",
645
708
  "aliases": [],
646
- "summary": "Create a document under a caller-chosen `key`.",
647
- "short": "Create a document under a caller-chosen `key`",
648
- "headline": "create a document under a caller-chosen `key`",
649
- "usage": "w6w documents create <key> --content <text> [options]",
650
- "naming": "w6w documents create <key> --content <text> [--format <f>] [--description <d>] [--project <id>]",
709
+ "summary": "Rewrite the live workflow from a published version.",
710
+ "short": "Rewrite the live workflow from a published version",
711
+ "headline": "rewrite the live workflow from a published version",
712
+ "usage": "w6w workflows revert <id> <n> [options]",
713
+ "naming": "w6w workflows revert <id> <n>",
651
714
  "status": "required",
652
715
  "params": [
653
716
  {
654
- "name": "key",
717
+ "name": "id",
655
718
  "kind": "argument",
656
- "display": "<key>",
657
- "description": "Document key to create (unique per project)",
719
+ "display": "<id>",
720
+ "description": "Workflow id (see: w6w workflows list)",
658
721
  "required": true,
659
722
  },
660
723
  {
661
- "name": "content",
662
- "kind": "flag",
663
- "display": "--content <text>",
664
- "description": "Document content, as raw text",
724
+ "name": "n",
725
+ "kind": "argument",
726
+ "display": "<n>",
727
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
665
728
  "required": true,
666
729
  },
667
- {
668
- "name": "format",
669
- "kind": "flag",
670
- "display": "--format <f>",
671
- "description": "Content format hint: text|markdown|yaml|html|json (default: text)",
672
- "required": false,
673
- },
674
- {
675
- "name": "description",
676
- "kind": "flag",
677
- "display": "--description <d>",
678
- "description": "Human-readable description",
679
- "required": false,
680
- },
681
- {
682
- "name": "project",
683
- "kind": "flag",
684
- "display": "--project <id>",
685
- "description": "Project to scope to (default: the account's default project)",
686
- "required": false,
687
- },
688
730
  {
689
731
  "name": "json",
690
732
  "kind": "flag",
@@ -694,60 +736,32 @@ export const HELP_TREE = {
694
736
  },
695
737
  ],
696
738
  "examples": [
697
- 'w6w documents create onboarding-email --content "Welcome aboard!" --format markdown',
739
+ "w6w workflows revert wf_01HQ8N 2",
698
740
  ],
699
741
  "notes": [],
700
742
  },
701
743
  {
702
- "operation": "documents.update",
744
+ "operation": "workflows.enable",
703
745
  "path": [
704
- "documents",
705
- "update",
746
+ "workflows",
747
+ "enable",
706
748
  ],
707
- "name": "update",
749
+ "name": "enable",
708
750
  "aliases": [],
709
- "summary": "Patch a document's content, format or description.",
710
- "short": "Patch a document's content, format or description",
711
- "headline": "patch a document's content, format or description",
712
- "usage": "w6w documents update <id> [options]",
713
- "naming": "w6w documents update <id> [--content <text>] [--format <f>] [--description <d>] [--project <id>]",
751
+ "summary": "Enable the workflow's invocability.",
752
+ "short": "Enable the workflow's invocability",
753
+ "headline": "enable the workflow's invocability",
754
+ "usage": "w6w workflows enable <id> [options]",
755
+ "naming": "w6w workflows enable <id>",
714
756
  "status": "required",
715
757
  "params": [
716
758
  {
717
759
  "name": "id",
718
760
  "kind": "argument",
719
761
  "display": "<id>",
720
- "description": "Document id (see: w6w documents list)",
762
+ "description": "Workflow id (see: w6w workflows list)",
721
763
  "required": true,
722
764
  },
723
- {
724
- "name": "content",
725
- "kind": "flag",
726
- "display": "--content <text>",
727
- "description": "Document content, as raw text",
728
- "required": false,
729
- },
730
- {
731
- "name": "format",
732
- "kind": "flag",
733
- "display": "--format <f>",
734
- "description": "Content format hint: text|markdown|yaml|html|json (default: text)",
735
- "required": false,
736
- },
737
- {
738
- "name": "description",
739
- "kind": "flag",
740
- "display": "--description <d>",
741
- "description": "Human-readable description",
742
- "required": false,
743
- },
744
- {
745
- "name": "project",
746
- "kind": "flag",
747
- "display": "--project <id>",
748
- "description": "Project to scope to (default: the account's default project)",
749
- "required": false,
750
- },
751
765
  {
752
766
  "name": "json",
753
767
  "kind": "flag",
@@ -757,39 +771,32 @@ export const HELP_TREE = {
757
771
  },
758
772
  ],
759
773
  "examples": [
760
- 'w6w documents update doc_01HQ8N --content "Welcome aboard!"',
774
+ "w6w workflows enable wf_01HQ8N",
761
775
  ],
762
776
  "notes": [],
763
777
  },
764
778
  {
765
- "operation": "documents.delete",
779
+ "operation": "workflows.disable",
766
780
  "path": [
767
- "documents",
768
- "delete",
781
+ "workflows",
782
+ "disable",
769
783
  ],
770
- "name": "delete",
784
+ "name": "disable",
771
785
  "aliases": [],
772
- "summary": "Delete a document.",
773
- "short": "Delete a document",
774
- "headline": "delete a document",
775
- "usage": "w6w documents delete <id> [options]",
776
- "naming": "w6w documents delete <id> [--project <id>]",
786
+ "summary": "Disable the workflow's invocability.",
787
+ "short": "Disable the workflow's invocability",
788
+ "headline": "disable the workflow's invocability",
789
+ "usage": "w6w workflows disable <id> [options]",
790
+ "naming": "w6w workflows disable <id>",
777
791
  "status": "required",
778
792
  "params": [
779
793
  {
780
794
  "name": "id",
781
795
  "kind": "argument",
782
796
  "display": "<id>",
783
- "description": "Document id (see: w6w documents list)",
797
+ "description": "Workflow id (see: w6w workflows list)",
784
798
  "required": true,
785
799
  },
786
- {
787
- "name": "project",
788
- "kind": "flag",
789
- "display": "--project <id>",
790
- "description": "Project to scope to (default: the account's default project)",
791
- "required": false,
792
- },
793
800
  {
794
801
  "name": "json",
795
802
  "kind": "flag",
@@ -799,46 +806,118 @@ export const HELP_TREE = {
799
806
  },
800
807
  ],
801
808
  "examples": [
802
- "w6w documents delete doc_01HQ8N",
809
+ "w6w workflows disable wf_01HQ8N",
803
810
  ],
804
811
  "notes": [],
805
812
  },
806
- ],
807
- "options": [
808
813
  {
809
- "name": "project",
810
- "kind": "flag",
811
- "display": "--project <id>",
812
- "description": "Project to scope to (default: the account's default project)",
813
- "required": false,
814
- },
815
- ],
816
- "examples": [
817
- "w6w documents list",
818
- "w6w documents get doc_01HQ8N",
814
+ "operation": "workflows.runVersion",
815
+ "path": [
816
+ "workflows",
817
+ "run-version",
818
+ ],
819
+ "name": "run-version",
820
+ "aliases": [],
821
+ "summary": "Run one published version of a workflow.",
822
+ "short": "Run one published version of a workflow",
823
+ "headline": "run one published version of a workflow",
824
+ "usage": "w6w workflows run-version <id> <n> [options]",
825
+ "naming": "w6w workflows run-version <id> <n> [--wait] [--input <json>]",
826
+ "status": "required",
827
+ "params": [
828
+ {
829
+ "name": "id",
830
+ "kind": "argument",
831
+ "display": "<id>",
832
+ "description": "Workflow id (see: w6w workflows list)",
833
+ "required": true,
834
+ },
835
+ {
836
+ "name": "n",
837
+ "kind": "argument",
838
+ "display": "<n>",
839
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
840
+ "required": true,
841
+ },
842
+ {
843
+ "name": "wait",
844
+ "kind": "flag",
845
+ "display": "--wait",
846
+ "description": "Wait for the run to reach a terminal state",
847
+ "required": false,
848
+ },
849
+ {
850
+ "name": "variables",
851
+ "kind": "flag",
852
+ "display": "--variables <value>",
853
+ "description": "Set a run variable (repeatable)",
854
+ "required": false,
855
+ },
856
+ {
857
+ "name": "trigger",
858
+ "kind": "flag",
859
+ "display": "--trigger <value>",
860
+ "description": "Trigger payload, as a JSON string",
861
+ "required": false,
862
+ },
863
+ {
864
+ "name": "input",
865
+ "kind": "flag",
866
+ "display": "--input <json>",
867
+ "description": "Run input, as a JSON string",
868
+ "required": false,
869
+ },
870
+ {
871
+ "name": "json",
872
+ "kind": "flag",
873
+ "display": "--json",
874
+ "description": "Output raw JSON instead of a table",
875
+ "required": false,
876
+ },
877
+ ],
878
+ "examples": [
879
+ "w6w workflows run-version wf_01HQ8N 3 --wait",
880
+ 'w6w workflows run-version wf_01HQ8N 3 --input \'{"email":"a@b.com"}\'',
881
+ ],
882
+ "notes": [
883
+ 'Runs the published snapshot numbered <n>, never the saved draft. --wait and the exit code behave as in `w6w workflows run`: a finished run with status "failed" exits 3.',
884
+ ],
885
+ },
886
+ ],
887
+ "options": [],
888
+ "examples": [
889
+ "w6w workflows list",
890
+ "w6w workflows run wf_01HQ8N --wait",
819
891
  ],
820
892
  },
821
893
  {
822
- "name": "vars",
823
- "summary": "Create, read, update and delete variables",
824
- "headline": "create, read, update and delete variables",
825
- "usage": "w6w vars <command> [options]",
894
+ "name": "documents",
895
+ "summary": "Create, read, update and delete documents",
896
+ "headline": "create, read, update and delete documents",
897
+ "usage": "w6w documents <command> [options]",
826
898
  "commands": [
827
899
  {
828
- "operation": "vars.list",
900
+ "operation": "documents.list",
829
901
  "path": [
830
- "vars",
902
+ "documents",
831
903
  "list",
832
904
  ],
833
905
  "name": "list",
834
906
  "aliases": [],
835
- "summary": "List the caller's typed variables.",
836
- "short": "List the caller's typed variables",
837
- "headline": "list the caller's typed variables",
838
- "usage": "w6w vars list [options]",
839
- "naming": "w6w vars list",
907
+ "summary": "List the caller's documents in a project.",
908
+ "short": "List the caller's documents in a project",
909
+ "headline": "list the caller's documents in a project",
910
+ "usage": "w6w documents list [options]",
911
+ "naming": "w6w documents list [--project <id>]",
840
912
  "status": "required",
841
913
  "params": [
914
+ {
915
+ "name": "project",
916
+ "kind": "flag",
917
+ "display": "--project <id>",
918
+ "description": "Project to scope to (default: the account's default project)",
919
+ "required": false,
920
+ },
842
921
  {
843
922
  "name": "json",
844
923
  "kind": "flag",
@@ -848,32 +927,40 @@ export const HELP_TREE = {
848
927
  },
849
928
  ],
850
929
  "examples": [
851
- "w6w vars list",
930
+ "w6w documents list",
931
+ "w6w documents list --project prj_01HQ8N",
852
932
  ],
853
933
  "notes": [],
854
934
  },
855
935
  {
856
- "operation": "vars.get",
936
+ "operation": "documents.get",
857
937
  "path": [
858
- "vars",
938
+ "documents",
859
939
  "get",
860
940
  ],
861
941
  "name": "get",
862
942
  "aliases": [],
863
- "summary": "Fetch one variable by its `var_…` id.",
864
- "short": "Fetch one variable by its `var_…` id",
865
- "headline": "fetch one variable by its `var_…` id",
866
- "usage": "w6w vars get <id> [options]",
867
- "naming": "w6w vars get <id>",
943
+ "summary": "Fetch one document by its `doc_…` id.",
944
+ "short": "Fetch one document by its `doc_…` id",
945
+ "headline": "fetch one document by its `doc_…` id",
946
+ "usage": "w6w documents get <id> [options]",
947
+ "naming": "w6w documents get <id> [--project <id>]",
868
948
  "status": "required",
869
949
  "params": [
870
950
  {
871
951
  "name": "id",
872
952
  "kind": "argument",
873
953
  "display": "<id>",
874
- "description": "Variable id (see: w6w vars list)",
954
+ "description": "Document id (see: w6w documents list)",
875
955
  "required": true,
876
956
  },
957
+ {
958
+ "name": "project",
959
+ "kind": "flag",
960
+ "display": "--project <id>",
961
+ "description": "Project to scope to (default: the account's default project)",
962
+ "required": false,
963
+ },
877
964
  {
878
965
  "name": "json",
879
966
  "kind": "flag",
@@ -883,32 +970,39 @@ export const HELP_TREE = {
883
970
  },
884
971
  ],
885
972
  "examples": [
886
- "w6w vars get var_01HQ8N",
973
+ "w6w documents get doc_01HQ8N",
887
974
  ],
888
975
  "notes": [],
889
976
  },
890
977
  {
891
- "operation": "vars.getByName",
978
+ "operation": "documents.getByKey",
892
979
  "path": [
893
- "vars",
894
- "get-by-name",
980
+ "documents",
981
+ "get-by-key",
895
982
  ],
896
- "name": "get-by-name",
983
+ "name": "get-by-key",
897
984
  "aliases": [],
898
- "summary": "Fetch one variable by its human-chosen `name`.",
899
- "short": "Fetch one variable by its human-chosen `name`",
900
- "headline": "fetch one variable by its human-chosen `name`",
901
- "usage": "w6w vars get-by-name <name> [options]",
902
- "naming": "w6w vars get-by-name <name>",
985
+ "summary": "Fetch one document by its human-chosen `key`.",
986
+ "short": "Fetch one document by its human-chosen `key`",
987
+ "headline": "fetch one document by its human-chosen `key`",
988
+ "usage": "w6w documents get-by-key <key> [options]",
989
+ "naming": "w6w documents get-by-key <key> [--project <id>]",
903
990
  "status": "required",
904
991
  "params": [
905
992
  {
906
- "name": "name",
993
+ "name": "key",
907
994
  "kind": "argument",
908
- "display": "<name>",
909
- "description": "Variable name, as chosen at creation",
995
+ "display": "<key>",
996
+ "description": "Document key, as chosen at creation",
910
997
  "required": true,
911
998
  },
999
+ {
1000
+ "name": "project",
1001
+ "kind": "flag",
1002
+ "display": "--project <id>",
1003
+ "description": "Project to scope to (default: the account's default project)",
1004
+ "required": false,
1005
+ },
912
1006
  {
913
1007
  "name": "json",
914
1008
  "kind": "flag",
@@ -918,45 +1012,45 @@ export const HELP_TREE = {
918
1012
  },
919
1013
  ],
920
1014
  "examples": [
921
- "w6w vars get-by-name greeting",
1015
+ "w6w documents get-by-key onboarding-email",
922
1016
  ],
923
1017
  "notes": [],
924
1018
  },
925
1019
  {
926
- "operation": "vars.create",
1020
+ "operation": "documents.create",
927
1021
  "path": [
928
- "vars",
1022
+ "documents",
929
1023
  "create",
930
1024
  ],
931
1025
  "name": "create",
932
1026
  "aliases": [],
933
- "summary": "Create a typed variable under a caller-chosen `name`.",
934
- "short": "Create a typed variable under a caller-chosen `name`",
935
- "headline": "create a typed variable under a caller-chosen `name`",
936
- "usage": "w6w vars create <name> --type <t> --value <v> [options]",
937
- "naming": "w6w vars create <name> --type <t> --value <v> [--description <d>]",
1027
+ "summary": "Create a document under a caller-chosen `key`.",
1028
+ "short": "Create a document under a caller-chosen `key`",
1029
+ "headline": "create a document under a caller-chosen `key`",
1030
+ "usage": "w6w documents create <key> --content <text> [options]",
1031
+ "naming": "w6w documents create <key> --content <text> [--format <f>] [--description <d>] [--project <id>]",
938
1032
  "status": "required",
939
1033
  "params": [
940
1034
  {
941
- "name": "name",
1035
+ "name": "key",
942
1036
  "kind": "argument",
943
- "display": "<name>",
944
- "description": "Variable name to create (must match ^[a-z_][a-z0-9_]*$)",
1037
+ "display": "<key>",
1038
+ "description": "Document key to create (unique per project)",
945
1039
  "required": true,
946
1040
  },
947
1041
  {
948
- "name": "type",
1042
+ "name": "content",
949
1043
  "kind": "flag",
950
- "display": "--type <t>",
951
- "description": "Value type: string|number|boolean|json",
1044
+ "display": "--content <text>",
1045
+ "description": "Document content, as raw text",
952
1046
  "required": true,
953
1047
  },
954
1048
  {
955
- "name": "value",
1049
+ "name": "format",
956
1050
  "kind": "flag",
957
- "display": "--value <v>",
958
- "description": "Value, validated against the variable's type",
959
- "required": true,
1051
+ "display": "--format <f>",
1052
+ "description": "Content format hint: text|markdown|yaml|html|json (default: text)",
1053
+ "required": false,
960
1054
  },
961
1055
  {
962
1056
  "name": "description",
@@ -965,6 +1059,13 @@ export const HELP_TREE = {
965
1059
  "description": "Human-readable description",
966
1060
  "required": false,
967
1061
  },
1062
+ {
1063
+ "name": "project",
1064
+ "kind": "flag",
1065
+ "display": "--project <id>",
1066
+ "description": "Project to scope to (default: the account's default project)",
1067
+ "required": false,
1068
+ },
968
1069
  {
969
1070
  "name": "json",
970
1071
  "kind": "flag",
@@ -974,44 +1075,44 @@ export const HELP_TREE = {
974
1075
  },
975
1076
  ],
976
1077
  "examples": [
977
- "w6w vars create greeting --type string --value hello",
1078
+ 'w6w documents create onboarding-email --content "Welcome aboard!" --format markdown',
978
1079
  ],
979
1080
  "notes": [],
980
1081
  },
981
1082
  {
982
- "operation": "vars.update",
1083
+ "operation": "documents.update",
983
1084
  "path": [
984
- "vars",
1085
+ "documents",
985
1086
  "update",
986
1087
  ],
987
1088
  "name": "update",
988
1089
  "aliases": [],
989
- "summary": "Patch a variable's type, value or description.",
990
- "short": "Patch a variable's type, value or description",
991
- "headline": "patch a variable's type, value or description",
992
- "usage": "w6w vars update <id> [options]",
993
- "naming": "w6w vars update <id> [--type <t>] [--value <v>] [--description <d>]",
1090
+ "summary": "Patch a document's content, format or description.",
1091
+ "short": "Patch a document's content, format or description",
1092
+ "headline": "patch a document's content, format or description",
1093
+ "usage": "w6w documents update <id> [options]",
1094
+ "naming": "w6w documents update <id> [--content <text>] [--format <f>] [--description <d>] [--project <id>]",
994
1095
  "status": "required",
995
1096
  "params": [
996
1097
  {
997
1098
  "name": "id",
998
1099
  "kind": "argument",
999
1100
  "display": "<id>",
1000
- "description": "Variable id (see: w6w vars list)",
1101
+ "description": "Document id (see: w6w documents list)",
1001
1102
  "required": true,
1002
1103
  },
1003
1104
  {
1004
- "name": "type",
1105
+ "name": "content",
1005
1106
  "kind": "flag",
1006
- "display": "--type <t>",
1007
- "description": "Value type: string|number|boolean|json",
1107
+ "display": "--content <text>",
1108
+ "description": "Document content, as raw text",
1008
1109
  "required": false,
1009
1110
  },
1010
1111
  {
1011
- "name": "value",
1112
+ "name": "format",
1012
1113
  "kind": "flag",
1013
- "display": "--value <v>",
1014
- "description": "Value, validated against the variable's type",
1114
+ "display": "--format <f>",
1115
+ "description": "Content format hint: text|markdown|yaml|html|json (default: text)",
1015
1116
  "required": false,
1016
1117
  },
1017
1118
  {
@@ -1021,6 +1122,13 @@ export const HELP_TREE = {
1021
1122
  "description": "Human-readable description",
1022
1123
  "required": false,
1023
1124
  },
1125
+ {
1126
+ "name": "project",
1127
+ "kind": "flag",
1128
+ "display": "--project <id>",
1129
+ "description": "Project to scope to (default: the account's default project)",
1130
+ "required": false,
1131
+ },
1024
1132
  {
1025
1133
  "name": "json",
1026
1134
  "kind": "flag",
@@ -1030,32 +1138,39 @@ export const HELP_TREE = {
1030
1138
  },
1031
1139
  ],
1032
1140
  "examples": [
1033
- "w6w vars update var_01HQ8N --value goodbye",
1141
+ 'w6w documents update doc_01HQ8N --content "Welcome aboard!"',
1034
1142
  ],
1035
1143
  "notes": [],
1036
1144
  },
1037
1145
  {
1038
- "operation": "vars.delete",
1146
+ "operation": "documents.delete",
1039
1147
  "path": [
1040
- "vars",
1148
+ "documents",
1041
1149
  "delete",
1042
1150
  ],
1043
1151
  "name": "delete",
1044
1152
  "aliases": [],
1045
- "summary": "Delete a variable.",
1046
- "short": "Delete a variable",
1047
- "headline": "delete a variable",
1048
- "usage": "w6w vars delete <id> [options]",
1049
- "naming": "w6w vars delete <id>",
1153
+ "summary": "Delete a document.",
1154
+ "short": "Delete a document",
1155
+ "headline": "delete a document",
1156
+ "usage": "w6w documents delete <id> [options]",
1157
+ "naming": "w6w documents delete <id> [--project <id>]",
1050
1158
  "status": "required",
1051
1159
  "params": [
1052
1160
  {
1053
1161
  "name": "id",
1054
1162
  "kind": "argument",
1055
1163
  "display": "<id>",
1056
- "description": "Variable id (see: w6w vars list)",
1164
+ "description": "Document id (see: w6w documents list)",
1057
1165
  "required": true,
1058
1166
  },
1167
+ {
1168
+ "name": "project",
1169
+ "kind": "flag",
1170
+ "display": "--project <id>",
1171
+ "description": "Project to scope to (default: the account's default project)",
1172
+ "required": false,
1173
+ },
1059
1174
  {
1060
1175
  "name": "json",
1061
1176
  "kind": "flag",
@@ -1065,52 +1180,46 @@ export const HELP_TREE = {
1065
1180
  },
1066
1181
  ],
1067
1182
  "examples": [
1068
- "w6w vars delete var_01HQ8N",
1183
+ "w6w documents delete doc_01HQ8N",
1069
1184
  ],
1070
1185
  "notes": [],
1071
1186
  },
1072
1187
  ],
1073
- "options": [],
1188
+ "options": [
1189
+ {
1190
+ "name": "project",
1191
+ "kind": "flag",
1192
+ "display": "--project <id>",
1193
+ "description": "Project to scope to (default: the account's default project)",
1194
+ "required": false,
1195
+ },
1196
+ ],
1074
1197
  "examples": [
1075
- "w6w vars list",
1076
- "w6w vars create greeting --type string --value hello",
1198
+ "w6w documents list",
1199
+ "w6w documents get doc_01HQ8N",
1077
1200
  ],
1078
1201
  },
1079
1202
  {
1080
- "name": "functions",
1081
- "summary": "Run and edit functions",
1082
- "headline": "run and edit functions",
1083
- "usage": "w6w functions <command> [options]",
1203
+ "name": "vars",
1204
+ "summary": "Create, read, update and delete variables",
1205
+ "headline": "create, read, update and delete variables",
1206
+ "usage": "w6w vars <command> [options]",
1084
1207
  "commands": [
1085
1208
  {
1086
- "operation": "functions.run",
1209
+ "operation": "vars.list",
1087
1210
  "path": [
1088
- "functions",
1089
- "run",
1211
+ "vars",
1212
+ "list",
1090
1213
  ],
1091
- "name": "run",
1214
+ "name": "list",
1092
1215
  "aliases": [],
1093
- "summary": "Run one Function by its key (or id) and return its output.",
1094
- "short": "Run one Function by its key (or id) and return its output",
1095
- "headline": "run one Function by its key (or id) and return its output",
1096
- "usage": "w6w functions run --id-or-key <value> [options]",
1097
- "naming": "w6w functions run <name> [--payload <json>]",
1216
+ "summary": "List the caller's typed variables.",
1217
+ "short": "List the caller's typed variables",
1218
+ "headline": "list the caller's typed variables",
1219
+ "usage": "w6w vars list [options]",
1220
+ "naming": "w6w vars list",
1098
1221
  "status": "required",
1099
1222
  "params": [
1100
- {
1101
- "name": "idOrKey",
1102
- "kind": "flag",
1103
- "display": "--id-or-key <value>",
1104
- "description": "Function key or id (e.g. send-email)",
1105
- "required": true,
1106
- },
1107
- {
1108
- "name": "inputs",
1109
- "kind": "flag",
1110
- "display": "--inputs <value>",
1111
- "description": "The Function's inputs, as a JSON object",
1112
- "required": false,
1113
- },
1114
1223
  {
1115
1224
  "name": "json",
1116
1225
  "kind": "flag",
@@ -1120,27 +1229,32 @@ export const HELP_TREE = {
1120
1229
  },
1121
1230
  ],
1122
1231
  "examples": [
1123
- "w6w functions run send-email",
1124
- 'w6w functions run send-email --payload \'{"to":"a@b.com"}\'',
1125
- "w6w functions run fn_01HQ8N --json",
1232
+ "w6w vars list",
1126
1233
  ],
1127
1234
  "notes": [],
1128
1235
  },
1129
1236
  {
1130
- "operation": "functions.list",
1237
+ "operation": "vars.get",
1131
1238
  "path": [
1132
- "functions",
1133
- "list",
1239
+ "vars",
1240
+ "get",
1134
1241
  ],
1135
- "name": "list",
1242
+ "name": "get",
1136
1243
  "aliases": [],
1137
- "summary": "List the caller's Function definitions.",
1138
- "short": "List the caller's Function definitions",
1139
- "headline": "list the caller's Function definitions",
1140
- "usage": "w6w functions list [options]",
1141
- "naming": "w6w functions list",
1244
+ "summary": "Fetch one variable by its `var_…` id.",
1245
+ "short": "Fetch one variable by its `var_…` id",
1246
+ "headline": "fetch one variable by its `var_…` id",
1247
+ "usage": "w6w vars get <id> [options]",
1248
+ "naming": "w6w vars get <id>",
1142
1249
  "status": "required",
1143
1250
  "params": [
1251
+ {
1252
+ "name": "id",
1253
+ "kind": "argument",
1254
+ "display": "<id>",
1255
+ "description": "Variable id (see: w6w vars list)",
1256
+ "required": true,
1257
+ },
1144
1258
  {
1145
1259
  "name": "json",
1146
1260
  "kind": "flag",
@@ -1150,31 +1264,30 @@ export const HELP_TREE = {
1150
1264
  },
1151
1265
  ],
1152
1266
  "examples": [
1153
- "w6w functions list",
1154
- "w6w functions list --json",
1267
+ "w6w vars get var_01HQ8N",
1155
1268
  ],
1156
1269
  "notes": [],
1157
1270
  },
1158
1271
  {
1159
- "operation": "functions.get",
1272
+ "operation": "vars.getByName",
1160
1273
  "path": [
1161
- "functions",
1162
- "get",
1274
+ "vars",
1275
+ "get-by-name",
1163
1276
  ],
1164
- "name": "get",
1277
+ "name": "get-by-name",
1165
1278
  "aliases": [],
1166
- "summary": "Fetch one Function's stored definition.",
1167
- "short": "Fetch one Function's stored definition",
1168
- "headline": "fetch one Function's stored definition",
1169
- "usage": "w6w functions get <id> [options]",
1170
- "naming": "w6w functions get <id>",
1279
+ "summary": "Fetch one variable by its human-chosen `name`.",
1280
+ "short": "Fetch one variable by its human-chosen `name`",
1281
+ "headline": "fetch one variable by its human-chosen `name`",
1282
+ "usage": "w6w vars get-by-name <name> [options]",
1283
+ "naming": "w6w vars get-by-name <name>",
1171
1284
  "status": "required",
1172
1285
  "params": [
1173
1286
  {
1174
- "name": "id",
1287
+ "name": "name",
1175
1288
  "kind": "argument",
1176
- "display": "<id>",
1177
- "description": "Function id or key (see: w6w functions list)",
1289
+ "display": "<name>",
1290
+ "description": "Variable name, as chosen at creation",
1178
1291
  "required": true,
1179
1292
  },
1180
1293
  {
@@ -1186,33 +1299,53 @@ export const HELP_TREE = {
1186
1299
  },
1187
1300
  ],
1188
1301
  "examples": [
1189
- "w6w functions get send-email",
1190
- "w6w functions get fn_01HQ8N --json",
1302
+ "w6w vars get-by-name greeting",
1191
1303
  ],
1192
1304
  "notes": [],
1193
1305
  },
1194
1306
  {
1195
- "operation": "functions.create",
1307
+ "operation": "vars.create",
1196
1308
  "path": [
1197
- "functions",
1309
+ "vars",
1198
1310
  "create",
1199
1311
  ],
1200
1312
  "name": "create",
1201
1313
  "aliases": [],
1202
- "summary": "Create a Function definition.",
1203
- "short": "Create a Function definition",
1204
- "headline": "create a Function definition",
1205
- "usage": "w6w functions create --definition <json> [options]",
1206
- "naming": "w6w functions create --definition <json>",
1314
+ "summary": "Create a typed variable under a caller-chosen `name`.",
1315
+ "short": "Create a typed variable under a caller-chosen `name`",
1316
+ "headline": "create a typed variable under a caller-chosen `name`",
1317
+ "usage": "w6w vars create <name> --type <t> --value <v> [options]",
1318
+ "naming": "w6w vars create <name> --type <t> --value <v> [--description <d>]",
1207
1319
  "status": "required",
1208
1320
  "params": [
1209
1321
  {
1210
- "name": "definition",
1322
+ "name": "name",
1323
+ "kind": "argument",
1324
+ "display": "<name>",
1325
+ "description": "Variable name to create (must match ^[a-z_][a-z0-9_]*$)",
1326
+ "required": true,
1327
+ },
1328
+ {
1329
+ "name": "type",
1211
1330
  "kind": "flag",
1212
- "display": "--definition <json>",
1213
- "description": "The whole definition, as a JSON object",
1331
+ "display": "--type <t>",
1332
+ "description": "Value type: string|number|boolean|json",
1333
+ "required": true,
1334
+ },
1335
+ {
1336
+ "name": "value",
1337
+ "kind": "flag",
1338
+ "display": "--value <v>",
1339
+ "description": "Value, validated against the variable's type",
1214
1340
  "required": true,
1215
1341
  },
1342
+ {
1343
+ "name": "description",
1344
+ "kind": "flag",
1345
+ "display": "--description <d>",
1346
+ "description": "Human-readable description",
1347
+ "required": false,
1348
+ },
1216
1349
  {
1217
1350
  "name": "json",
1218
1351
  "kind": "flag",
@@ -1222,39 +1355,52 @@ export const HELP_TREE = {
1222
1355
  },
1223
1356
  ],
1224
1357
  "examples": [
1225
- 'w6w functions create --definition \'{"manifestVersion":"1","key":"send-email","inputs":[]}\'',
1226
- 'w6w functions create --definition "$(cat function.json)"',
1358
+ "w6w vars create greeting --type string --value hello",
1227
1359
  ],
1228
1360
  "notes": [],
1229
1361
  },
1230
1362
  {
1231
- "operation": "functions.update",
1363
+ "operation": "vars.update",
1232
1364
  "path": [
1233
- "functions",
1365
+ "vars",
1234
1366
  "update",
1235
1367
  ],
1236
1368
  "name": "update",
1237
1369
  "aliases": [],
1238
- "summary": "Overwrite a Function definition.",
1239
- "short": "Overwrite a Function definition",
1240
- "headline": "overwrite a Function definition",
1241
- "usage": "w6w functions update <id> --definition <json> [options]",
1242
- "naming": "w6w functions update <id> --definition <json>",
1370
+ "summary": "Patch a variable's type, value or description.",
1371
+ "short": "Patch a variable's type, value or description",
1372
+ "headline": "patch a variable's type, value or description",
1373
+ "usage": "w6w vars update <id> [options]",
1374
+ "naming": "w6w vars update <id> [--type <t>] [--value <v>] [--description <d>]",
1243
1375
  "status": "required",
1244
1376
  "params": [
1245
1377
  {
1246
1378
  "name": "id",
1247
1379
  "kind": "argument",
1248
1380
  "display": "<id>",
1249
- "description": "Function id or key (see: w6w functions list)",
1381
+ "description": "Variable id (see: w6w vars list)",
1250
1382
  "required": true,
1251
1383
  },
1252
1384
  {
1253
- "name": "definition",
1385
+ "name": "type",
1254
1386
  "kind": "flag",
1255
- "display": "--definition <json>",
1256
- "description": "The whole definition, as a JSON object",
1257
- "required": true,
1387
+ "display": "--type <t>",
1388
+ "description": "Value type: string|number|boolean|json",
1389
+ "required": false,
1390
+ },
1391
+ {
1392
+ "name": "value",
1393
+ "kind": "flag",
1394
+ "display": "--value <v>",
1395
+ "description": "Value, validated against the variable's type",
1396
+ "required": false,
1397
+ },
1398
+ {
1399
+ "name": "description",
1400
+ "kind": "flag",
1401
+ "display": "--description <d>",
1402
+ "description": "Human-readable description",
1403
+ "required": false,
1258
1404
  },
1259
1405
  {
1260
1406
  "name": "json",
@@ -1265,30 +1411,30 @@ export const HELP_TREE = {
1265
1411
  },
1266
1412
  ],
1267
1413
  "examples": [
1268
- 'w6w functions update fn_01HQ8N --definition "$(cat function.json)"',
1414
+ "w6w vars update var_01HQ8N --value goodbye",
1269
1415
  ],
1270
1416
  "notes": [],
1271
1417
  },
1272
1418
  {
1273
- "operation": "functions.delete",
1419
+ "operation": "vars.delete",
1274
1420
  "path": [
1275
- "functions",
1421
+ "vars",
1276
1422
  "delete",
1277
1423
  ],
1278
1424
  "name": "delete",
1279
1425
  "aliases": [],
1280
- "summary": "Delete a Function.",
1281
- "short": "Delete a Function",
1282
- "headline": "delete a Function",
1283
- "usage": "w6w functions delete <id> [options]",
1284
- "naming": "w6w functions delete <id>",
1426
+ "summary": "Delete a variable.",
1427
+ "short": "Delete a variable",
1428
+ "headline": "delete a variable",
1429
+ "usage": "w6w vars delete <id> [options]",
1430
+ "naming": "w6w vars delete <id>",
1285
1431
  "status": "required",
1286
1432
  "params": [
1287
1433
  {
1288
1434
  "name": "id",
1289
1435
  "kind": "argument",
1290
1436
  "display": "<id>",
1291
- "description": "Function id or key (see: w6w functions list)",
1437
+ "description": "Variable id (see: w6w vars list)",
1292
1438
  "required": true,
1293
1439
  },
1294
1440
  {
@@ -1300,49 +1446,57 @@ export const HELP_TREE = {
1300
1446
  },
1301
1447
  ],
1302
1448
  "examples": [
1303
- "w6w functions delete fn_01HQ8N",
1449
+ "w6w vars delete var_01HQ8N",
1304
1450
  ],
1305
1451
  "notes": [],
1306
1452
  },
1307
1453
  ],
1308
1454
  "options": [],
1309
1455
  "examples": [
1310
- "w6w functions run send-email",
1456
+ "w6w vars list",
1457
+ "w6w vars create greeting --type string --value hello",
1311
1458
  ],
1312
1459
  },
1313
1460
  {
1314
- "name": "endpoints",
1315
- "summary": "Run endpoints by key or id",
1316
- "headline": "run endpoints by key or id",
1317
- "usage": "w6w endpoints <command> [options]",
1461
+ "name": "functions",
1462
+ "summary": "Run and edit functions",
1463
+ "headline": "run and edit functions",
1464
+ "usage": "w6w functions <command> [options]",
1318
1465
  "commands": [
1319
1466
  {
1320
- "operation": "endpoints.run",
1467
+ "operation": "functions.run",
1321
1468
  "path": [
1322
- "endpoints",
1469
+ "functions",
1323
1470
  "run",
1324
1471
  ],
1325
1472
  "name": "run",
1326
1473
  "aliases": [],
1327
- "summary": "Run one Endpoint by its key (or id); the envelope's kind says which arm answered.",
1328
- "short": "Run one Endpoint by its key (or id); the envelope's kind says which arm answered",
1329
- "headline": "run one Endpoint by its key (or id); the envelope's kind says which arm answered",
1330
- "usage": "w6w endpoints run --id-or-key <value> [options]",
1331
- "naming": "w6w endpoints run <name> [--payload <json>]",
1474
+ "summary": "Run one Function by its key (or id) and return its output.",
1475
+ "short": "Run one Function by its key (or id) and return its output",
1476
+ "headline": "run one Function by its key (or id) and return its output",
1477
+ "usage": "w6w functions run --id-or-key <value> [options]",
1478
+ "naming": "w6w functions run <name> [--payload <json>]",
1332
1479
  "status": "required",
1333
1480
  "params": [
1334
1481
  {
1335
1482
  "name": "idOrKey",
1336
1483
  "kind": "flag",
1337
1484
  "display": "--id-or-key <value>",
1338
- "description": "Endpoint key or id (e.g. send-email)",
1485
+ "description": "Function key or id (e.g. send-email)",
1339
1486
  "required": true,
1340
1487
  },
1341
1488
  {
1342
- "name": "input",
1489
+ "name": "inputs",
1343
1490
  "kind": "flag",
1344
- "display": "--input <value>",
1345
- "description": "The Endpoint's input, as a JSON object",
1491
+ "display": "--inputs <value>",
1492
+ "description": "The Function's inputs, as a JSON object",
1493
+ "required": false,
1494
+ },
1495
+ {
1496
+ "name": "allowUnpublished",
1497
+ "kind": "flag",
1498
+ "display": "--allow-unpublished",
1499
+ "description": "Run the saved draft even if it was never published (sent only when given)",
1346
1500
  "required": false,
1347
1501
  },
1348
1502
  {
@@ -1354,10 +1508,563 @@ export const HELP_TREE = {
1354
1508
  },
1355
1509
  ],
1356
1510
  "examples": [
1357
- "w6w endpoints run send-email",
1358
- 'w6w endpoints run send-email --payload \'{"to":"a@b.com"}\'',
1359
- ],
1360
- "notes": [],
1511
+ "w6w functions run send-email",
1512
+ 'w6w functions run send-email --payload \'{"to":"a@b.com"}\'',
1513
+ "w6w functions run fn_01HQ8N --json",
1514
+ "w6w functions run send-email --allow-unpublished",
1515
+ ],
1516
+ "notes": [
1517
+ "--allow-unpublished runs the STORED draft even if it was never published (a disabled Function is still refused). It is sent only when given.",
1518
+ ],
1519
+ },
1520
+ {
1521
+ "operation": "functions.list",
1522
+ "path": [
1523
+ "functions",
1524
+ "list",
1525
+ ],
1526
+ "name": "list",
1527
+ "aliases": [],
1528
+ "summary": "List the caller's Function definitions.",
1529
+ "short": "List the caller's Function definitions",
1530
+ "headline": "list the caller's Function definitions",
1531
+ "usage": "w6w functions list [options]",
1532
+ "naming": "w6w functions list",
1533
+ "status": "required",
1534
+ "params": [
1535
+ {
1536
+ "name": "json",
1537
+ "kind": "flag",
1538
+ "display": "--json",
1539
+ "description": "Output raw JSON instead of a table",
1540
+ "required": false,
1541
+ },
1542
+ ],
1543
+ "examples": [
1544
+ "w6w functions list",
1545
+ "w6w functions list --json",
1546
+ ],
1547
+ "notes": [],
1548
+ },
1549
+ {
1550
+ "operation": "functions.get",
1551
+ "path": [
1552
+ "functions",
1553
+ "get",
1554
+ ],
1555
+ "name": "get",
1556
+ "aliases": [],
1557
+ "summary": "Fetch one Function's stored definition.",
1558
+ "short": "Fetch one Function's stored definition",
1559
+ "headline": "fetch one Function's stored definition",
1560
+ "usage": "w6w functions get <id> [options]",
1561
+ "naming": "w6w functions get <id>",
1562
+ "status": "required",
1563
+ "params": [
1564
+ {
1565
+ "name": "id",
1566
+ "kind": "argument",
1567
+ "display": "<id>",
1568
+ "description": "Function id or key (see: w6w functions list)",
1569
+ "required": true,
1570
+ },
1571
+ {
1572
+ "name": "json",
1573
+ "kind": "flag",
1574
+ "display": "--json",
1575
+ "description": "Output raw JSON instead of a table",
1576
+ "required": false,
1577
+ },
1578
+ ],
1579
+ "examples": [
1580
+ "w6w functions get send-email",
1581
+ "w6w functions get fn_01HQ8N --json",
1582
+ ],
1583
+ "notes": [],
1584
+ },
1585
+ {
1586
+ "operation": "functions.create",
1587
+ "path": [
1588
+ "functions",
1589
+ "create",
1590
+ ],
1591
+ "name": "create",
1592
+ "aliases": [],
1593
+ "summary": "Create a Function definition.",
1594
+ "short": "Create a Function definition",
1595
+ "headline": "create a Function definition",
1596
+ "usage": "w6w functions create --definition <json> [options]",
1597
+ "naming": "w6w functions create --definition <json>",
1598
+ "status": "required",
1599
+ "params": [
1600
+ {
1601
+ "name": "definition",
1602
+ "kind": "flag",
1603
+ "display": "--definition <json>",
1604
+ "description": "The whole definition, as a JSON object",
1605
+ "required": true,
1606
+ },
1607
+ {
1608
+ "name": "json",
1609
+ "kind": "flag",
1610
+ "display": "--json",
1611
+ "description": "Output raw JSON instead of a table",
1612
+ "required": false,
1613
+ },
1614
+ ],
1615
+ "examples": [
1616
+ 'w6w functions create --definition \'{"manifestVersion":"1","key":"send-email","inputs":[]}\'',
1617
+ 'w6w functions create --definition "$(cat function.json)"',
1618
+ ],
1619
+ "notes": [],
1620
+ },
1621
+ {
1622
+ "operation": "functions.update",
1623
+ "path": [
1624
+ "functions",
1625
+ "update",
1626
+ ],
1627
+ "name": "update",
1628
+ "aliases": [],
1629
+ "summary": "Overwrite a Function definition.",
1630
+ "short": "Overwrite a Function definition",
1631
+ "headline": "overwrite a Function definition",
1632
+ "usage": "w6w functions update <id> --definition <json> [options]",
1633
+ "naming": "w6w functions update <id> --definition <json>",
1634
+ "status": "required",
1635
+ "params": [
1636
+ {
1637
+ "name": "id",
1638
+ "kind": "argument",
1639
+ "display": "<id>",
1640
+ "description": "Function id or key (see: w6w functions list)",
1641
+ "required": true,
1642
+ },
1643
+ {
1644
+ "name": "definition",
1645
+ "kind": "flag",
1646
+ "display": "--definition <json>",
1647
+ "description": "The whole definition, as a JSON object",
1648
+ "required": true,
1649
+ },
1650
+ {
1651
+ "name": "json",
1652
+ "kind": "flag",
1653
+ "display": "--json",
1654
+ "description": "Output raw JSON instead of a table",
1655
+ "required": false,
1656
+ },
1657
+ ],
1658
+ "examples": [
1659
+ 'w6w functions update fn_01HQ8N --definition "$(cat function.json)"',
1660
+ ],
1661
+ "notes": [],
1662
+ },
1663
+ {
1664
+ "operation": "functions.delete",
1665
+ "path": [
1666
+ "functions",
1667
+ "delete",
1668
+ ],
1669
+ "name": "delete",
1670
+ "aliases": [],
1671
+ "summary": "Delete a Function.",
1672
+ "short": "Delete a Function",
1673
+ "headline": "delete a Function",
1674
+ "usage": "w6w functions delete <id> [options]",
1675
+ "naming": "w6w functions delete <id>",
1676
+ "status": "required",
1677
+ "params": [
1678
+ {
1679
+ "name": "id",
1680
+ "kind": "argument",
1681
+ "display": "<id>",
1682
+ "description": "Function id or key (see: w6w functions list)",
1683
+ "required": true,
1684
+ },
1685
+ {
1686
+ "name": "json",
1687
+ "kind": "flag",
1688
+ "display": "--json",
1689
+ "description": "Output raw JSON instead of a table",
1690
+ "required": false,
1691
+ },
1692
+ ],
1693
+ "examples": [
1694
+ "w6w functions delete fn_01HQ8N",
1695
+ ],
1696
+ "notes": [],
1697
+ },
1698
+ {
1699
+ "operation": "functions.archive",
1700
+ "path": [
1701
+ "functions",
1702
+ "archive",
1703
+ ],
1704
+ "name": "archive",
1705
+ "aliases": [],
1706
+ "summary": "Archive a Function — the required step before deleting it.",
1707
+ "short": "Archive a Function",
1708
+ "headline": "archive a Function — the required step before deleting it",
1709
+ "usage": "w6w functions archive <id> [options]",
1710
+ "naming": "w6w functions archive <id>",
1711
+ "status": "required",
1712
+ "params": [
1713
+ {
1714
+ "name": "id",
1715
+ "kind": "argument",
1716
+ "display": "<id>",
1717
+ "description": "Function id or key (see: w6w functions list)",
1718
+ "required": true,
1719
+ },
1720
+ {
1721
+ "name": "json",
1722
+ "kind": "flag",
1723
+ "display": "--json",
1724
+ "description": "Output raw JSON instead of a table",
1725
+ "required": false,
1726
+ },
1727
+ ],
1728
+ "examples": [
1729
+ "w6w functions archive fn_01HQ8N",
1730
+ "w6w functions delete fn_01HQ8N",
1731
+ ],
1732
+ "notes": [],
1733
+ },
1734
+ {
1735
+ "operation": "functions.listVersions",
1736
+ "path": [
1737
+ "functions",
1738
+ "versions",
1739
+ ],
1740
+ "name": "versions",
1741
+ "aliases": [],
1742
+ "summary": "List a function's published versions.",
1743
+ "short": "List a function's published versions",
1744
+ "headline": "list a function's published versions",
1745
+ "usage": "w6w functions versions <id> [options]",
1746
+ "naming": "w6w functions versions <id>",
1747
+ "status": "required",
1748
+ "params": [
1749
+ {
1750
+ "name": "id",
1751
+ "kind": "argument",
1752
+ "display": "<id>",
1753
+ "description": "Function id or key (see: w6w functions list)",
1754
+ "required": true,
1755
+ },
1756
+ {
1757
+ "name": "json",
1758
+ "kind": "flag",
1759
+ "display": "--json",
1760
+ "description": "Output raw JSON instead of a table",
1761
+ "required": false,
1762
+ },
1763
+ ],
1764
+ "examples": [
1765
+ "w6w functions versions fn_01HQ8N",
1766
+ "w6w functions versions fn_01HQ8N --json",
1767
+ ],
1768
+ "notes": [],
1769
+ },
1770
+ {
1771
+ "operation": "functions.getVersion",
1772
+ "path": [
1773
+ "functions",
1774
+ "version",
1775
+ ],
1776
+ "name": "version",
1777
+ "aliases": [],
1778
+ "summary": "Read one published version of a function, with its definition.",
1779
+ "short": "Read one published version of a function, with its definition",
1780
+ "headline": "read one published version of a function, with its definition",
1781
+ "usage": "w6w functions version <id> <n> [options]",
1782
+ "naming": "w6w functions version <id> <n>",
1783
+ "status": "required",
1784
+ "params": [
1785
+ {
1786
+ "name": "id",
1787
+ "kind": "argument",
1788
+ "display": "<id>",
1789
+ "description": "Function id or key (see: w6w functions list)",
1790
+ "required": true,
1791
+ },
1792
+ {
1793
+ "name": "n",
1794
+ "kind": "argument",
1795
+ "display": "<n>",
1796
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
1797
+ "required": true,
1798
+ },
1799
+ {
1800
+ "name": "json",
1801
+ "kind": "flag",
1802
+ "display": "--json",
1803
+ "description": "Output raw JSON instead of a table",
1804
+ "required": false,
1805
+ },
1806
+ ],
1807
+ "examples": [
1808
+ "w6w functions version fn_01HQ8N 3",
1809
+ "w6w functions version fn_01HQ8N 3 --json",
1810
+ ],
1811
+ "notes": [],
1812
+ },
1813
+ {
1814
+ "operation": "functions.publish",
1815
+ "path": [
1816
+ "functions",
1817
+ "publish",
1818
+ ],
1819
+ "name": "publish",
1820
+ "aliases": [],
1821
+ "summary": "Publish the function's stored definition as a new immutable version.",
1822
+ "short": "Publish the function's stored definition as a new immutable version",
1823
+ "headline": "publish the function's stored definition as a new immutable version",
1824
+ "usage": "w6w functions publish <id> [options]",
1825
+ "naming": "w6w functions publish <id>",
1826
+ "status": "required",
1827
+ "params": [
1828
+ {
1829
+ "name": "id",
1830
+ "kind": "argument",
1831
+ "display": "<id>",
1832
+ "description": "Function id or key (see: w6w functions list)",
1833
+ "required": true,
1834
+ },
1835
+ {
1836
+ "name": "json",
1837
+ "kind": "flag",
1838
+ "display": "--json",
1839
+ "description": "Output raw JSON instead of a table",
1840
+ "required": false,
1841
+ },
1842
+ ],
1843
+ "examples": [
1844
+ "w6w functions publish fn_01HQ8N",
1845
+ ],
1846
+ "notes": [
1847
+ "Publishes the Function as saved: snapshots the stored row into a new numbered version. Save any pending edit first.",
1848
+ ],
1849
+ },
1850
+ {
1851
+ "operation": "functions.revert",
1852
+ "path": [
1853
+ "functions",
1854
+ "revert",
1855
+ ],
1856
+ "name": "revert",
1857
+ "aliases": [],
1858
+ "summary": "Rewrite the live function from a published version.",
1859
+ "short": "Rewrite the live function from a published version",
1860
+ "headline": "rewrite the live function from a published version",
1861
+ "usage": "w6w functions revert <id> <n> [options]",
1862
+ "naming": "w6w functions revert <id> <n>",
1863
+ "status": "required",
1864
+ "params": [
1865
+ {
1866
+ "name": "id",
1867
+ "kind": "argument",
1868
+ "display": "<id>",
1869
+ "description": "Function id or key (see: w6w functions list)",
1870
+ "required": true,
1871
+ },
1872
+ {
1873
+ "name": "n",
1874
+ "kind": "argument",
1875
+ "display": "<n>",
1876
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
1877
+ "required": true,
1878
+ },
1879
+ {
1880
+ "name": "json",
1881
+ "kind": "flag",
1882
+ "display": "--json",
1883
+ "description": "Output raw JSON instead of a table",
1884
+ "required": false,
1885
+ },
1886
+ ],
1887
+ "examples": [
1888
+ "w6w functions revert fn_01HQ8N 2",
1889
+ ],
1890
+ "notes": [],
1891
+ },
1892
+ {
1893
+ "operation": "functions.enable",
1894
+ "path": [
1895
+ "functions",
1896
+ "enable",
1897
+ ],
1898
+ "name": "enable",
1899
+ "aliases": [],
1900
+ "summary": "Enable the function's invocability.",
1901
+ "short": "Enable the function's invocability",
1902
+ "headline": "enable the function's invocability",
1903
+ "usage": "w6w functions enable <id> [options]",
1904
+ "naming": "w6w functions enable <id>",
1905
+ "status": "required",
1906
+ "params": [
1907
+ {
1908
+ "name": "id",
1909
+ "kind": "argument",
1910
+ "display": "<id>",
1911
+ "description": "Function id or key (see: w6w functions list)",
1912
+ "required": true,
1913
+ },
1914
+ {
1915
+ "name": "json",
1916
+ "kind": "flag",
1917
+ "display": "--json",
1918
+ "description": "Output raw JSON instead of a table",
1919
+ "required": false,
1920
+ },
1921
+ ],
1922
+ "examples": [
1923
+ "w6w functions enable fn_01HQ8N",
1924
+ ],
1925
+ "notes": [],
1926
+ },
1927
+ {
1928
+ "operation": "functions.disable",
1929
+ "path": [
1930
+ "functions",
1931
+ "disable",
1932
+ ],
1933
+ "name": "disable",
1934
+ "aliases": [],
1935
+ "summary": "Disable the function's invocability.",
1936
+ "short": "Disable the function's invocability",
1937
+ "headline": "disable the function's invocability",
1938
+ "usage": "w6w functions disable <id> [options]",
1939
+ "naming": "w6w functions disable <id>",
1940
+ "status": "required",
1941
+ "params": [
1942
+ {
1943
+ "name": "id",
1944
+ "kind": "argument",
1945
+ "display": "<id>",
1946
+ "description": "Function id or key (see: w6w functions list)",
1947
+ "required": true,
1948
+ },
1949
+ {
1950
+ "name": "json",
1951
+ "kind": "flag",
1952
+ "display": "--json",
1953
+ "description": "Output raw JSON instead of a table",
1954
+ "required": false,
1955
+ },
1956
+ ],
1957
+ "examples": [
1958
+ "w6w functions disable fn_01HQ8N",
1959
+ ],
1960
+ "notes": [],
1961
+ },
1962
+ {
1963
+ "operation": "functions.runVersion",
1964
+ "path": [
1965
+ "functions",
1966
+ "run-version",
1967
+ ],
1968
+ "name": "run-version",
1969
+ "aliases": [],
1970
+ "summary": "Run one published version of a Function and return its output.",
1971
+ "short": "Run one published version of a Function and return its output",
1972
+ "headline": "run one published version of a Function and return its output",
1973
+ "usage": "w6w functions run-version <id> <n> [options]",
1974
+ "naming": "w6w functions run-version <id> <n> [--payload <json>]",
1975
+ "status": "required",
1976
+ "params": [
1977
+ {
1978
+ "name": "id",
1979
+ "kind": "argument",
1980
+ "display": "<id>",
1981
+ "description": "Function id or key (see: w6w functions list)",
1982
+ "required": true,
1983
+ },
1984
+ {
1985
+ "name": "n",
1986
+ "kind": "argument",
1987
+ "display": "<n>",
1988
+ "description": "Version number (see: w6w <workflows|functions> versions <id>)",
1989
+ "required": true,
1990
+ },
1991
+ {
1992
+ "name": "inputs",
1993
+ "kind": "flag",
1994
+ "display": "--payload <json>",
1995
+ "description": "The Function's inputs, as a JSON object",
1996
+ "required": false,
1997
+ },
1998
+ {
1999
+ "name": "json",
2000
+ "kind": "flag",
2001
+ "display": "--json",
2002
+ "description": "Output raw JSON instead of a table",
2003
+ "required": false,
2004
+ },
2005
+ ],
2006
+ "examples": [
2007
+ "w6w functions run-version send-email 3",
2008
+ 'w6w functions run-version fn_01HQ8N 3 --payload \'{"to":"a@b.com"}\'',
2009
+ ],
2010
+ "notes": [
2011
+ "Runs the published snapshot numbered <n> and prints the Function's output, as `w6w functions run` does.",
2012
+ ],
2013
+ },
2014
+ ],
2015
+ "options": [],
2016
+ "examples": [
2017
+ "w6w functions run send-email",
2018
+ ],
2019
+ },
2020
+ {
2021
+ "name": "endpoints",
2022
+ "summary": "Run endpoints by key or id",
2023
+ "headline": "run endpoints by key or id",
2024
+ "usage": "w6w endpoints <command> [options]",
2025
+ "commands": [
2026
+ {
2027
+ "operation": "endpoints.run",
2028
+ "path": [
2029
+ "endpoints",
2030
+ "run",
2031
+ ],
2032
+ "name": "run",
2033
+ "aliases": [],
2034
+ "summary": "Run one Endpoint by its key (or id); the envelope's kind says which arm answered.",
2035
+ "short": "Run one Endpoint by its key (or id); the envelope's kind says which arm answered",
2036
+ "headline": "run one Endpoint by its key (or id); the envelope's kind says which arm answered",
2037
+ "usage": "w6w endpoints run --id-or-key <value> [options]",
2038
+ "naming": "w6w endpoints run <name> [--payload <json>]",
2039
+ "status": "required",
2040
+ "params": [
2041
+ {
2042
+ "name": "idOrKey",
2043
+ "kind": "flag",
2044
+ "display": "--id-or-key <value>",
2045
+ "description": "Endpoint key or id (e.g. send-email)",
2046
+ "required": true,
2047
+ },
2048
+ {
2049
+ "name": "input",
2050
+ "kind": "flag",
2051
+ "display": "--input <value>",
2052
+ "description": "The Endpoint's input, as a JSON object",
2053
+ "required": false,
2054
+ },
2055
+ {
2056
+ "name": "json",
2057
+ "kind": "flag",
2058
+ "display": "--json",
2059
+ "description": "Output raw JSON instead of a table",
2060
+ "required": false,
2061
+ },
2062
+ ],
2063
+ "examples": [
2064
+ "w6w endpoints run send-email",
2065
+ 'w6w endpoints run send-email --payload \'{"to":"a@b.com"}\'',
2066
+ ],
2067
+ "notes": [],
1361
2068
  },
1362
2069
  ],
1363
2070
  "options": [
@@ -1377,30 +2084,261 @@ export const HELP_TREE = {
1377
2084
  },
1378
2085
  ],
1379
2086
  "examples": [
1380
- "w6w endpoints run send-email",
2087
+ "w6w endpoints run send-email",
2088
+ ],
2089
+ },
2090
+ {
2091
+ "name": "team",
2092
+ "summary": "Invite, list and manage your account's team",
2093
+ "headline": "invite, list and manage your account's team",
2094
+ "usage": "w6w team <command> [options]",
2095
+ "commands": [
2096
+ {
2097
+ "operation": "team.members.list",
2098
+ "path": [
2099
+ "team",
2100
+ "members",
2101
+ ],
2102
+ "name": "members",
2103
+ "aliases": [],
2104
+ "summary": "List the caller's account team: every active member and their role.",
2105
+ "short": "List the caller's account team: every active member and their role",
2106
+ "headline": "list the caller's account team: every active member and their role",
2107
+ "usage": "w6w team members [options]",
2108
+ "naming": "w6w team members",
2109
+ "status": "required",
2110
+ "params": [
2111
+ {
2112
+ "name": "json",
2113
+ "kind": "flag",
2114
+ "display": "--json",
2115
+ "description": "Output raw JSON instead of a table",
2116
+ "required": false,
2117
+ },
2118
+ ],
2119
+ "examples": [
2120
+ "w6w team members",
2121
+ ],
2122
+ "notes": [],
2123
+ },
2124
+ {
2125
+ "operation": "team.invites.create",
2126
+ "path": [
2127
+ "team",
2128
+ "invite",
2129
+ ],
2130
+ "name": "invite",
2131
+ "aliases": [],
2132
+ "summary": "Invite someone to the caller's account, or mint an open, shareable invite link.",
2133
+ "short": "Invite someone to the caller's account, or mint an open, shareable invite link",
2134
+ "headline": "invite someone to the caller's account, or mint an open, shareable invite link",
2135
+ "usage": "w6w team invite [options]",
2136
+ "naming": "w6w team invite [--email <email>] [--role <role>]",
2137
+ "status": "required",
2138
+ "params": [
2139
+ {
2140
+ "name": "email",
2141
+ "kind": "flag",
2142
+ "display": "--email <email>",
2143
+ "description": "Address to invite (omit for an open, shareable invite link)",
2144
+ "required": false,
2145
+ },
2146
+ {
2147
+ "name": "role",
2148
+ "kind": "flag",
2149
+ "display": "--role <role>",
2150
+ "description": "Role to grant on redemption (default: member)",
2151
+ "required": false,
2152
+ },
2153
+ {
2154
+ "name": "json",
2155
+ "kind": "flag",
2156
+ "display": "--json",
2157
+ "description": "Output raw JSON instead of a table",
2158
+ "required": false,
2159
+ },
2160
+ ],
2161
+ "examples": [
2162
+ "w6w team invite --email new@example.com --role admin",
2163
+ "w6w team invite",
2164
+ ],
2165
+ "notes": [],
2166
+ },
2167
+ {
2168
+ "operation": "team.invites.list",
2169
+ "path": [
2170
+ "team",
2171
+ "invites",
2172
+ ],
2173
+ "name": "invites",
2174
+ "aliases": [],
2175
+ "summary": "List the caller's account's open (pending, unrevoked, unexpired) invites.",
2176
+ "short": "List the caller's account's open (pending, unrevoked, unexpired) invites",
2177
+ "headline": "list the caller's account's open (pending, unrevoked, unexpired) invites",
2178
+ "usage": "w6w team invites [options]",
2179
+ "naming": "w6w team invites",
2180
+ "status": "required",
2181
+ "params": [
2182
+ {
2183
+ "name": "json",
2184
+ "kind": "flag",
2185
+ "display": "--json",
2186
+ "description": "Output raw JSON instead of a table",
2187
+ "required": false,
2188
+ },
2189
+ ],
2190
+ "examples": [
2191
+ "w6w team invites",
2192
+ ],
2193
+ "notes": [],
2194
+ },
2195
+ {
2196
+ "operation": "team.invites.revoke",
2197
+ "path": [
2198
+ "team",
2199
+ "revoke-invite",
2200
+ ],
2201
+ "name": "revoke-invite",
2202
+ "aliases": [],
2203
+ "summary": "Revoke a pending invite before it is redeemed.",
2204
+ "short": "Revoke a pending invite before it is redeemed",
2205
+ "headline": "revoke a pending invite before it is redeemed",
2206
+ "usage": "w6w team revoke-invite <id> [options]",
2207
+ "naming": "w6w team revoke-invite <id>",
2208
+ "status": "required",
2209
+ "params": [
2210
+ {
2211
+ "name": "id",
2212
+ "kind": "argument",
2213
+ "display": "<id>",
2214
+ "description": "Invite id (see: w6w team invites)",
2215
+ "required": true,
2216
+ },
2217
+ {
2218
+ "name": "json",
2219
+ "kind": "flag",
2220
+ "display": "--json",
2221
+ "description": "Output raw JSON instead of a table",
2222
+ "required": false,
2223
+ },
2224
+ ],
2225
+ "examples": [
2226
+ "w6w team revoke-invite inv_01HQ8N",
2227
+ ],
2228
+ "notes": [],
2229
+ },
2230
+ {
2231
+ "operation": "team.members.updateRole",
2232
+ "path": [
2233
+ "team",
2234
+ "set-role",
2235
+ ],
2236
+ "name": "set-role",
2237
+ "aliases": [],
2238
+ "summary": "Change a team member's role.",
2239
+ "short": "Change a team member's role",
2240
+ "headline": "change a team member's role",
2241
+ "usage": "w6w team set-role <userId> --role <role> [options]",
2242
+ "naming": "w6w team set-role <userId> --role <role>",
2243
+ "status": "required",
2244
+ "params": [
2245
+ {
2246
+ "name": "userId",
2247
+ "kind": "argument",
2248
+ "display": "<userId>",
2249
+ "description": "Member's user id (see: w6w team members)",
2250
+ "required": true,
2251
+ },
2252
+ {
2253
+ "name": "role",
2254
+ "kind": "flag",
2255
+ "display": "--role <role>",
2256
+ "description": "Role to set: member|admin (owner is not settable)",
2257
+ "required": true,
2258
+ },
2259
+ {
2260
+ "name": "json",
2261
+ "kind": "flag",
2262
+ "display": "--json",
2263
+ "description": "Output raw JSON instead of a table",
2264
+ "required": false,
2265
+ },
2266
+ ],
2267
+ "examples": [
2268
+ "w6w team set-role usr_01HQ8N --role admin",
2269
+ ],
2270
+ "notes": [],
2271
+ },
2272
+ {
2273
+ "operation": "team.members.remove",
2274
+ "path": [
2275
+ "team",
2276
+ "remove-member",
2277
+ ],
2278
+ "name": "remove-member",
2279
+ "aliases": [],
2280
+ "summary": "Remove a member from the caller's account.",
2281
+ "short": "Remove a member from the caller's account",
2282
+ "headline": "remove a member from the caller's account",
2283
+ "usage": "w6w team remove-member <userId> [options]",
2284
+ "naming": "w6w team remove-member <userId>",
2285
+ "status": "required",
2286
+ "params": [
2287
+ {
2288
+ "name": "userId",
2289
+ "kind": "argument",
2290
+ "display": "<userId>",
2291
+ "description": "Member's user id (see: w6w team members)",
2292
+ "required": true,
2293
+ },
2294
+ {
2295
+ "name": "json",
2296
+ "kind": "flag",
2297
+ "display": "--json",
2298
+ "description": "Output raw JSON instead of a table",
2299
+ "required": false,
2300
+ },
2301
+ ],
2302
+ "examples": [
2303
+ "w6w team remove-member usr_01HQ8N",
2304
+ ],
2305
+ "notes": [],
2306
+ },
2307
+ ],
2308
+ "options": [],
2309
+ "examples": [
2310
+ "w6w team members",
2311
+ "w6w team invite --email new@example.com --role admin",
1381
2312
  ],
1382
2313
  },
1383
2314
  {
1384
- "name": "team",
1385
- "summary": "Invite, list and manage your account's team",
1386
- "headline": "invite, list and manage your account's team",
1387
- "usage": "w6w team <command> [options]",
2315
+ "name": "apps",
2316
+ "summary": "Look up apps by id",
2317
+ "headline": "look up apps by id",
2318
+ "usage": "w6w apps <command> [options]",
1388
2319
  "commands": [
1389
2320
  {
1390
- "operation": "team.members.list",
2321
+ "operation": "apps.byIds",
1391
2322
  "path": [
1392
- "team",
1393
- "members",
2323
+ "apps",
2324
+ "by-ids",
1394
2325
  ],
1395
- "name": "members",
2326
+ "name": "by-ids",
1396
2327
  "aliases": [],
1397
- "summary": "List the caller's account team: every active member and their role.",
1398
- "short": "List the caller's account team: every active member and their role",
1399
- "headline": "list the caller's account team: every active member and their role",
1400
- "usage": "w6w team members [options]",
1401
- "naming": "w6w team members",
2328
+ "summary": "Resolve a set of app ids to their catalog summaries.",
2329
+ "short": "Resolve a set of app ids to their catalog summaries",
2330
+ "headline": "resolve a set of app ids to their catalog summaries",
2331
+ "usage": "w6w apps by-ids <ids> [options]",
2332
+ "naming": "w6w apps by-ids <ids>",
1402
2333
  "status": "required",
1403
2334
  "params": [
2335
+ {
2336
+ "name": "ids",
2337
+ "kind": "argument",
2338
+ "display": "<ids>",
2339
+ "description": "Comma-separated app ids (e.g. sendgrid,slack); duplicates are dropped",
2340
+ "required": true,
2341
+ },
1404
2342
  {
1405
2343
  "name": "json",
1406
2344
  "kind": "flag",
@@ -1410,68 +2348,59 @@ export const HELP_TREE = {
1410
2348
  },
1411
2349
  ],
1412
2350
  "examples": [
1413
- "w6w team members",
2351
+ "w6w apps by-ids sendgrid,slack",
2352
+ "w6w apps by-ids sendgrid --json",
1414
2353
  ],
1415
2354
  "notes": [],
1416
2355
  },
2356
+ ],
2357
+ "options": [],
2358
+ "examples": [
2359
+ "w6w apps by-ids sendgrid,slack",
2360
+ ],
2361
+ },
2362
+ {
2363
+ "name": "dashboard",
2364
+ "summary": "Run-ledger rollup for your account",
2365
+ "headline": "run-ledger rollup for your account",
2366
+ "usage": "w6w dashboard <command> [options]",
2367
+ "commands": [
1417
2368
  {
1418
- "operation": "team.invites.create",
2369
+ "operation": "dashboard.stats",
1419
2370
  "path": [
1420
- "team",
1421
- "invite",
2371
+ "dashboard",
2372
+ "stats",
1422
2373
  ],
1423
- "name": "invite",
2374
+ "name": "stats",
1424
2375
  "aliases": [],
1425
- "summary": "Invite someone to the caller's account, or mint an open, shareable invite link.",
1426
- "short": "Invite someone to the caller's account, or mint an open, shareable invite link",
1427
- "headline": "invite someone to the caller's account, or mint an open, shareable invite link",
1428
- "usage": "w6w team invite [options]",
1429
- "naming": "w6w team invite [--email <email>] [--role <role>]",
2376
+ "summary": "Account-scoped dashboard rollup over the run ledger.",
2377
+ "short": "Account-scoped dashboard rollup over the run ledger",
2378
+ "headline": "account-scoped dashboard rollup over the run ledger",
2379
+ "usage": "w6w dashboard stats [options]",
2380
+ "naming": "w6w dashboard stats [--from <iso>] [--to <iso>] [--bucket day|week]",
1430
2381
  "status": "required",
1431
2382
  "params": [
1432
2383
  {
1433
- "name": "email",
2384
+ "name": "from",
1434
2385
  "kind": "flag",
1435
- "display": "--email <email>",
1436
- "description": "Address to invite (omit for an open, shareable invite link)",
2386
+ "display": "--from <iso>",
2387
+ "description": "Start of the window, ISO-8601 (default: the server's)",
1437
2388
  "required": false,
1438
2389
  },
1439
2390
  {
1440
- "name": "role",
2391
+ "name": "to",
1441
2392
  "kind": "flag",
1442
- "display": "--role <role>",
1443
- "description": "Role to grant on redemption (default: member)",
2393
+ "display": "--to <iso>",
2394
+ "description": "End of the window, ISO-8601 (default: the server's)",
1444
2395
  "required": false,
1445
2396
  },
1446
2397
  {
1447
- "name": "json",
2398
+ "name": "bucket",
1448
2399
  "kind": "flag",
1449
- "display": "--json",
1450
- "description": "Output raw JSON instead of a table",
2400
+ "display": "--bucket <value>",
2401
+ "description": "Series bucket: day|week (default: the server's)",
1451
2402
  "required": false,
1452
2403
  },
1453
- ],
1454
- "examples": [
1455
- "w6w team invite --email new@example.com --role admin",
1456
- "w6w team invite",
1457
- ],
1458
- "notes": [],
1459
- },
1460
- {
1461
- "operation": "team.invites.list",
1462
- "path": [
1463
- "team",
1464
- "invites",
1465
- ],
1466
- "name": "invites",
1467
- "aliases": [],
1468
- "summary": "List the caller's account's open (pending, unrevoked, unexpired) invites.",
1469
- "short": "List the caller's account's open (pending, unrevoked, unexpired) invites",
1470
- "headline": "list the caller's account's open (pending, unrevoked, unexpired) invites",
1471
- "usage": "w6w team invites [options]",
1472
- "naming": "w6w team invites",
1473
- "status": "required",
1474
- "params": [
1475
2404
  {
1476
2405
  "name": "json",
1477
2406
  "kind": "flag",
@@ -1481,32 +2410,61 @@ export const HELP_TREE = {
1481
2410
  },
1482
2411
  ],
1483
2412
  "examples": [
1484
- "w6w team invites",
2413
+ "w6w dashboard stats",
2414
+ "w6w dashboard stats --from 2026-10-01T00:00:00Z --to 2026-10-08T00:00:00Z --bucket day",
1485
2415
  ],
1486
2416
  "notes": [],
1487
2417
  },
2418
+ ],
2419
+ "options": [
1488
2420
  {
1489
- "operation": "team.invites.revoke",
2421
+ "name": "from",
2422
+ "kind": "flag",
2423
+ "display": "--from <iso>",
2424
+ "description": "Start of the window, ISO-8601 (default: the server's)",
2425
+ "required": false,
2426
+ },
2427
+ {
2428
+ "name": "to",
2429
+ "kind": "flag",
2430
+ "display": "--to <iso>",
2431
+ "description": "End of the window, ISO-8601 (default: the server's)",
2432
+ "required": false,
2433
+ },
2434
+ {
2435
+ "name": "bucket",
2436
+ "kind": "flag",
2437
+ "display": "--bucket <value>",
2438
+ "description": "Series bucket: day|week (default: the server's)",
2439
+ "required": false,
2440
+ },
2441
+ ],
2442
+ "examples": [
2443
+ "w6w dashboard stats",
2444
+ "w6w dashboard stats --bucket week",
2445
+ ],
2446
+ },
2447
+ {
2448
+ "name": "projects",
2449
+ "summary": "List your projects",
2450
+ "headline": "list your projects",
2451
+ "usage": "w6w projects <command> [options]",
2452
+ "commands": [
2453
+ {
2454
+ "operation": "projects.list",
1490
2455
  "path": [
1491
- "team",
1492
- "revoke-invite",
2456
+ "projects",
2457
+ "list",
1493
2458
  ],
1494
- "name": "revoke-invite",
2459
+ "name": "list",
1495
2460
  "aliases": [],
1496
- "summary": "Revoke a pending invite before it is redeemed.",
1497
- "short": "Revoke a pending invite before it is redeemed",
1498
- "headline": "revoke a pending invite before it is redeemed",
1499
- "usage": "w6w team revoke-invite <id> [options]",
1500
- "naming": "w6w team revoke-invite <id>",
2461
+ "summary": "List the account's active projects.",
2462
+ "short": "List the account's active projects",
2463
+ "headline": "list the account's active projects",
2464
+ "usage": "w6w projects list [options]",
2465
+ "naming": "w6w projects list",
1501
2466
  "status": "required",
1502
2467
  "params": [
1503
- {
1504
- "name": "id",
1505
- "kind": "argument",
1506
- "display": "<id>",
1507
- "description": "Invite id (see: w6w team invites)",
1508
- "required": true,
1509
- },
1510
2468
  {
1511
2469
  "name": "json",
1512
2470
  "kind": "flag",
@@ -1516,39 +2474,66 @@ export const HELP_TREE = {
1516
2474
  },
1517
2475
  ],
1518
2476
  "examples": [
1519
- "w6w team revoke-invite inv_01HQ8N",
2477
+ "w6w projects list",
2478
+ "w6w projects list --json",
1520
2479
  ],
1521
2480
  "notes": [],
1522
2481
  },
2482
+ ],
2483
+ "options": [],
2484
+ "examples": [
2485
+ "w6w projects list",
2486
+ ],
2487
+ },
2488
+ {
2489
+ "name": "reliability",
2490
+ "summary": "Health and performance of the apps you use",
2491
+ "headline": "health and performance of the apps you use",
2492
+ "usage": "w6w reliability <command> [options]",
2493
+ "commands": [
1523
2494
  {
1524
- "operation": "team.members.updateRole",
2495
+ "operation": "reliability.list",
1525
2496
  "path": [
1526
- "team",
1527
- "set-role",
2497
+ "reliability",
2498
+ "list",
1528
2499
  ],
1529
- "name": "set-role",
2500
+ "name": "list",
1530
2501
  "aliases": [],
1531
- "summary": "Change a team member's role.",
1532
- "short": "Change a team member's role",
1533
- "headline": "change a team member's role",
1534
- "usage": "w6w team set-role <userId> --role <role> [options]",
1535
- "naming": "w6w team set-role <userId> --role <role>",
2502
+ "summary": "Reliability board for a project and an explicit set of apps.",
2503
+ "short": "Reliability board for a project and an explicit set of apps",
2504
+ "headline": "reliability board for a project and an explicit set of apps",
2505
+ "usage": "w6w reliability list --project <id> --apps <ids> [options]",
2506
+ "naming": "w6w reliability list --project <id> --apps <ids> [--days <n>] [--limit <n>]",
1536
2507
  "status": "required",
1537
2508
  "params": [
1538
2509
  {
1539
- "name": "userId",
1540
- "kind": "argument",
1541
- "display": "<userId>",
1542
- "description": "Member's user id (see: w6w team members)",
2510
+ "name": "project",
2511
+ "kind": "flag",
2512
+ "display": "--project <id>",
2513
+ "description": "Project id (see: w6w projects list)",
1543
2514
  "required": true,
1544
2515
  },
1545
2516
  {
1546
- "name": "role",
2517
+ "name": "apps",
1547
2518
  "kind": "flag",
1548
- "display": "--role <role>",
1549
- "description": "Role to set: member|admin (owner is not settable)",
2519
+ "display": "--apps <ids>",
2520
+ "description": "Comma-separated app ids, at most 10 (e.g. sendgrid,slack)",
1550
2521
  "required": true,
1551
2522
  },
2523
+ {
2524
+ "name": "days",
2525
+ "kind": "flag",
2526
+ "display": "--days <n>",
2527
+ "description": "Window length in days, a positive integer",
2528
+ "required": false,
2529
+ },
2530
+ {
2531
+ "name": "limit",
2532
+ "kind": "flag",
2533
+ "display": "--limit <n>",
2534
+ "description": "Maximum services to return, a positive integer",
2535
+ "required": false,
2536
+ },
1552
2537
  {
1553
2538
  "name": "json",
1554
2539
  "kind": "flag",
@@ -1558,32 +2543,42 @@ export const HELP_TREE = {
1558
2543
  },
1559
2544
  ],
1560
2545
  "examples": [
1561
- "w6w team set-role usr_01HQ8N --role admin",
2546
+ "w6w reliability list --project prj_01HQ8N --apps sendgrid,slack",
2547
+ "w6w reliability list --project prj_01HQ8N --apps sendgrid --days 7 --limit 20 --json",
2548
+ ],
2549
+ "notes": [
2550
+ "--apps takes at most 10 comma-separated app ids; the server rejects more and its error is shown unchanged. --days and --limit are positive integers.",
1562
2551
  ],
1563
- "notes": [],
1564
2552
  },
1565
2553
  {
1566
- "operation": "team.members.remove",
2554
+ "operation": "reliability.members",
1567
2555
  "path": [
1568
- "team",
1569
- "remove-member",
2556
+ "reliability",
2557
+ "members",
1570
2558
  ],
1571
- "name": "remove-member",
2559
+ "name": "members",
1572
2560
  "aliases": [],
1573
- "summary": "Remove a member from the caller's account.",
1574
- "short": "Remove a member from the caller's account",
1575
- "headline": "remove a member from the caller's account",
1576
- "usage": "w6w team remove-member <userId> [options]",
1577
- "naming": "w6w team remove-member <userId>",
2561
+ "summary": "List the app ids a project's calls touch.",
2562
+ "short": "List the app ids a project's calls touch",
2563
+ "headline": "list the app ids a project's calls touch",
2564
+ "usage": "w6w reliability members --project <id> [options]",
2565
+ "naming": "w6w reliability members --project <id> [--days <n>]",
1578
2566
  "status": "required",
1579
2567
  "params": [
1580
2568
  {
1581
- "name": "userId",
1582
- "kind": "argument",
1583
- "display": "<userId>",
1584
- "description": "Member's user id (see: w6w team members)",
2569
+ "name": "project",
2570
+ "kind": "flag",
2571
+ "display": "--project <id>",
2572
+ "description": "Project id (see: w6w projects list)",
1585
2573
  "required": true,
1586
2574
  },
2575
+ {
2576
+ "name": "days",
2577
+ "kind": "flag",
2578
+ "display": "--days <n>",
2579
+ "description": "Window length in days, a positive integer",
2580
+ "required": false,
2581
+ },
1587
2582
  {
1588
2583
  "name": "json",
1589
2584
  "kind": "flag",
@@ -1593,15 +2588,31 @@ export const HELP_TREE = {
1593
2588
  },
1594
2589
  ],
1595
2590
  "examples": [
1596
- "w6w team remove-member usr_01HQ8N",
2591
+ "w6w reliability members --project prj_01HQ8N",
2592
+ "w6w reliability members --project prj_01HQ8N --days 30 --json",
1597
2593
  ],
1598
2594
  "notes": [],
1599
2595
  },
1600
2596
  ],
1601
- "options": [],
2597
+ "options": [
2598
+ {
2599
+ "name": "project",
2600
+ "kind": "flag",
2601
+ "display": "--project <id>",
2602
+ "description": "Project id (see: w6w projects list)",
2603
+ "required": true,
2604
+ },
2605
+ {
2606
+ "name": "days",
2607
+ "kind": "flag",
2608
+ "display": "--days <n>",
2609
+ "description": "Window length in days, a positive integer",
2610
+ "required": false,
2611
+ },
2612
+ ],
1602
2613
  "examples": [
1603
- "w6w team members",
1604
- "w6w team invite --email new@example.com --role admin",
2614
+ "w6w reliability members --project prj_01HQ8N",
2615
+ "w6w reliability list --project prj_01HQ8N --apps sendgrid,slack",
1605
2616
  ],
1606
2617
  },
1607
2618
  ],
@@ -1679,6 +2690,14 @@ export const COMMAND_PATHS = [
1679
2690
  "connections",
1680
2691
  "list",
1681
2692
  ],
2693
+ [
2694
+ "connections",
2695
+ "get",
2696
+ ],
2697
+ [
2698
+ "connections",
2699
+ "delete",
2700
+ ],
1682
2701
  [
1683
2702
  "workflows",
1684
2703
  "list",
@@ -1711,6 +2730,34 @@ export const COMMAND_PATHS = [
1711
2730
  "workflows",
1712
2731
  "delete",
1713
2732
  ],
2733
+ [
2734
+ "workflows",
2735
+ "versions",
2736
+ ],
2737
+ [
2738
+ "workflows",
2739
+ "version",
2740
+ ],
2741
+ [
2742
+ "workflows",
2743
+ "publish",
2744
+ ],
2745
+ [
2746
+ "workflows",
2747
+ "revert",
2748
+ ],
2749
+ [
2750
+ "workflows",
2751
+ "enable",
2752
+ ],
2753
+ [
2754
+ "workflows",
2755
+ "disable",
2756
+ ],
2757
+ [
2758
+ "workflows",
2759
+ "run-version",
2760
+ ],
1714
2761
  [
1715
2762
  "documents",
1716
2763
  "list",
@@ -1783,6 +2830,38 @@ export const COMMAND_PATHS = [
1783
2830
  "functions",
1784
2831
  "delete",
1785
2832
  ],
2833
+ [
2834
+ "functions",
2835
+ "archive",
2836
+ ],
2837
+ [
2838
+ "functions",
2839
+ "versions",
2840
+ ],
2841
+ [
2842
+ "functions",
2843
+ "version",
2844
+ ],
2845
+ [
2846
+ "functions",
2847
+ "publish",
2848
+ ],
2849
+ [
2850
+ "functions",
2851
+ "revert",
2852
+ ],
2853
+ [
2854
+ "functions",
2855
+ "enable",
2856
+ ],
2857
+ [
2858
+ "functions",
2859
+ "disable",
2860
+ ],
2861
+ [
2862
+ "functions",
2863
+ "run-version",
2864
+ ],
1786
2865
  [
1787
2866
  "endpoints",
1788
2867
  "run",
@@ -1811,6 +2890,26 @@ export const COMMAND_PATHS = [
1811
2890
  "team",
1812
2891
  "remove-member",
1813
2892
  ],
2893
+ [
2894
+ "apps",
2895
+ "by-ids",
2896
+ ],
2897
+ [
2898
+ "dashboard",
2899
+ "stats",
2900
+ ],
2901
+ [
2902
+ "projects",
2903
+ "list",
2904
+ ],
2905
+ [
2906
+ "reliability",
2907
+ "list",
2908
+ ],
2909
+ [
2910
+ "reliability",
2911
+ "members",
2912
+ ],
1814
2913
  ];
1815
2914
  /** The exit-code contract, verbatim from the shared contract's `cli.exitCodes`. */
1816
2915
  export const EXIT_CODES = [