From afcb4f5ecda8837b61334240ff33b70c92d33230 Mon Sep 17 00:00:00 2001 From: Braden Ream <51544548+Bradenream@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:21:44 -0500 Subject: [PATCH 01/19] ci: run go vet through a script that skips Speakeasy's const fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bare `go vet ./...` has failed on every master run since 2026-10-06, when the API spec gained its first const properties. Speakeasy generates each one as an unexported struct field with a json tag, which its own JSON code reads by reflection, and vet's structtag check flags every one of them. The fields are regenerated several times a day and vet has no inline ignore, so scripts/vet.sh drops exactly that finding, and only on a line that carries a `const:"…"` tag. Any other vet finding still fails the run, including the same message for an ordinary unexported field. --- .github/workflows/ci.yaml | 6 +++- scripts/vet.sh | 63 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100755 scripts/vet.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fce6b28f..23fdd4d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -67,8 +67,12 @@ jobs: - name: Build run: go build ./... + # go vet ./..., except the finding Speakeasy produces on purpose for each + # OpenAPI const property (an unexported field with a json tag). Bare + # go vet has failed on every master run since 2026-10-06, when the spec + # gained its first const properties. See scripts/vet.sh. - name: Vet - run: go vet ./... + run: scripts/vet.sh - name: Unit tests run: go test ./... diff --git a/scripts/vet.sh b/scripts/vet.sh new file mode 100755 index 00000000..3da04a6f --- /dev/null +++ b/scripts/vet.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash +# go vet ./..., minus the one finding Speakeasy produces on purpose. +# +# Speakeasy generates each OpenAPI `const` property as an unexported struct +# field carrying both a json tag and a `const:"…"` tag. Its own JSON code reads +# those fields by reflection (internal/sdk/sdkinternal/utils/json.go), so the +# pattern is deliberate. go vet's structtag check reports every one of them: +# +# struct field readOnly has json tag but is not exported +# +# The fields are regenerated several times a day, so they cannot be fixed in +# place, and vet has no inline ignore. Master's Vet step went red on +# 2026-10-06, when the API spec gained its first const properties, and has +# stayed red since. +# +# This script drops exactly that finding, and only on a line that has a const +# tag. Everything else vet reports still fails the run, including the same +# message for an ordinary unexported field, and so does vet failing to build. +# +# Usage: scripts/vet.sh [packages] (default ./...) + +set -uo pipefail + +if [ "$#" -eq 0 ]; then + set -- ./... +fi + +output=$(go vet "$@" 2>&1) +status=$? +if [ "$status" -eq 0 ]; then + exit 0 +fi + +finding='^(.+\.go):([0-9]+):[0-9]+: struct field [A-Za-z0-9_]+ has json tag but is not exported$' +ignored=0 +kept="" +header="" + +while IFS= read -r line; do + case "$line" in + "# "*) + # A package header. Print it only if a finding under it is kept. + header="$line" + continue + ;; + esac + if [[ "$line" =~ $finding ]] && sed -n "${BASH_REMATCH[2]}p" "${BASH_REMATCH[1]}" | grep -q 'const:"'; then + ignored=$((ignored + 1)) + continue + fi + if [ -n "$header" ]; then + kept+="$header"$'\n' + header="" + fi + kept+="$line"$'\n' +done <<< "$output" + +if [ -n "$kept" ]; then + printf '%s' "$kept" >&2 + exit "$status" +fi + +echo "go vet: passed, ignoring $ignored Speakeasy const field(s) (see scripts/vet.sh)" From c1f98f8c9726e97aabbb4298763e14e706526f9f Mon Sep 17 00:00:00 2001 From: Braden Ream <51544548+Bradenream@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:21:58 -0500 Subject: [PATCH 02/19] build: add an overlay that keeps optional literal flags optional The realtime API declares five properties as zod `z.literal(true).optional()`: absent, or true. That reaches the spec as `type: boolean` with a one-value `enum: [true]`, and Speakeasy generates a one-value enum as a const field, which its JSON code always encodes and never decodes. The overlay drops those one-value enums so each property is a plain optional boolean again. The two properties that really are constants (StableFunctionCheckResponseUnion.checked and StableWorkflowStepReadOnlyContent.readOnly) are left alone. Remove the overlay once the API spec stops emitting these as one-value enums. --- .../overlays/optional-literal-flags.yaml | 42 +++++++++++++++++++ .speakeasy/workflow.yaml | 2 + 2 files changed, 44 insertions(+) create mode 100644 .speakeasy/overlays/optional-literal-flags.yaml diff --git a/.speakeasy/overlays/optional-literal-flags.yaml b/.speakeasy/overlays/optional-literal-flags.yaml new file mode 100644 index 00000000..9459dfed --- /dev/null +++ b/.speakeasy/overlays/optional-literal-flags.yaml @@ -0,0 +1,42 @@ +overlay: 1.0.0 +info: + title: Optional literal flags as plain optional booleans + version: 1.0.0 +# The realtime API (voiceflow/creator-app, apps/realtime) declares these five +# properties as zod `z.literal(true).optional()`: absent, or true. That reaches +# the spec as `type: boolean` with a one-value `enum: [true]`, and Speakeasy +# generates a one-value enum as a const field, which its JSON code always +# encodes and never decodes. So the CLI sent `"atStart": true` on every +# insert-step and add-actions request (the server rejects atStart together +# with afterStepID, so inserting after a step always failed), and every +# decoded response reported overridden, incomplete and literalText as true. +# +# Dropping the one-value enum leaves each one a plain optional boolean, which +# keeps "absent" distinct from "true" in both directions. The descriptions +# still come from the API. Remove this overlay once the API spec stops +# emitting these as one-value enums. +# +# Left alone on purpose: StableFunctionCheckResponseUnion.checked (true or +# false picks the union variant) and StableWorkflowStepReadOnlyContent.readOnly +# (required, always true). Those really are constants. +actions: + - target: $.components.schemas.StableWorkflowStepInsertRequest.properties.atStart.enum + remove: true + - target: $.components.schemas.StableWorkflowStepInsertRequest.properties.atStart['x-enumNames'] + remove: true + - target: $.components.schemas.StableWorkflowPortActionsAddRequest.properties.atStart.enum + remove: true + - target: $.components.schemas.StableWorkflowPortActionsAddRequest.properties.atStart['x-enumNames'] + remove: true + - target: $.components.schemas.StableWorkflowLink.properties.overridden.enum + remove: true + - target: $.components.schemas.StableWorkflowLink.properties.overridden['x-enumNames'] + remove: true + - target: $.components.schemas.StableEnvironmentSearchTextReadResponse.properties.incomplete.enum + remove: true + - target: $.components.schemas.StableEnvironmentSearchTextReadResponse.properties.incomplete['x-enumNames'] + remove: true + - target: $.components.schemas.StableTranscriptGrepResponse.properties.literalText.enum + remove: true + - target: $.components.schemas.StableTranscriptGrepResponse.properties.literalText['x-enumNames'] + remove: true diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 6a28fdcf..5a089866 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -4,6 +4,8 @@ sources: Voiceflow: inputs: - location: ./openapi.stable.json + overlays: + - location: ./.speakeasy/overlays/optional-literal-flags.yaml transformations: - filterOperations: operations: StableEnvironmentController_export From d23d09c5c2fb10a4cd31d5bb2d7dac353e93487d Mon Sep 17 00:00:00 2001 From: Braden Ream <51544548+Bradenream@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:21:58 -0500 Subject: [PATCH 03/19] fix(workflow): send atStart only when it is asked for Regenerated with the optional-literal-flags overlay. Before it, the CLI sent `"atStart": true` on every `workflow insert-step` and `workflow add-actions` request. The server rejects atStart together with afterStepID, so inserting a step after another step always failed. Every decoded response also reported overridden, incomplete and literalText as true, whatever the server sent. Now atStart is sent only with --at-start, which both commands offer, and those response fields decode to what the server returned. Go tests and dry-run behaviour tests cover the request bodies for both commands, and a round-trip test covers the three response fields. --- .speakeasy/out.openapi.yaml | 20 --- internal/cli/workflow/addactions.go | 1 + internal/cli/workflow/insertstep.go | 1 + .../workflow/optional_literal_flags_test.go | 124 ++++++++++++++++++ .../components/optional_literal_flags_test.go | 79 +++++++++++ ...stableenvironmentsearchtextreadresponse.go | 9 +- .../stabletranscriptgrepresponse.go | 9 +- .../models/components/stableworkflowlink.go | 9 +- .../stableworkflowportactionsaddrequest.go | 9 +- .../stableworkflowstepinsertrequest.go | 9 +- internal/usage/schema.go | 12 +- test/dry-run.test.ts | 33 +++++ 12 files changed, 269 insertions(+), 46 deletions(-) create mode 100644 internal/cli/workflow/optional_literal_flags_test.go create mode 100644 internal/sdk/models/components/optional_literal_flags_test.go diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 92aa469e..7260fa2d 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -26385,10 +26385,6 @@ components: overridden: description: Present when this link does not run, because the step is not the last of its block. type: boolean - enum: - - true - x-enumNames: - - "TRUE" effectiveTo: description: 'With overridden: the step that runs instead.' type: string @@ -28858,10 +28854,6 @@ components: atStart: description: Insert as the first step of the block. Send this or afterStepID. type: boolean - enum: - - true - x-enumNames: - - "TRUE" step: $ref: '#/components/schemas/StableWorkflowStepInput' expectedSteps: @@ -30491,10 +30483,6 @@ components: atStart: description: Add them before every other action on this exit. type: boolean - enum: - - true - x-enumNames: - - "TRUE" expectedActions: maxItems: 20 type: array @@ -42068,10 +42056,6 @@ components: incomplete: description: 'Present when the search did not read everything: it stopped at its time limit, or a regular expression read only the first 1,000 characters of a longer line. The counts cover only what it read.' type: boolean - enum: - - true - x-enumNames: - - "TRUE" notSearched: type: array items: @@ -42423,10 +42407,6 @@ components: literalText: description: The pattern ran as plain text; `note` says why. type: boolean - enum: - - true - x-enumNames: - - "TRUE" hits: type: array items: diff --git a/internal/cli/workflow/addactions.go b/internal/cli/workflow/addactions.go index 7a6a6a3f..518c1a70 100644 --- a/internal/cli/workflow/addactions.go +++ b/internal/cli/workflow/addactions.go @@ -23,6 +23,7 @@ var addActionsCmdMeta = []flagutil.FlagMeta{ {FlagName: "environment-alias", FieldPath: "EnvironmentAlias", Kind: flagutil.FlagKindString, Required: true, Description: "[required]"}, {FlagName: "actions", FieldPath: "Body.Actions", Kind: flagutil.FlagKindJSON, Required: true, Annotations: `json:"actions"`, Description: "1 to 10 actions to add, in run order. [required]"}, {FlagName: "after-action-id", FieldPath: "Body.AfterActionID", Kind: flagutil.FlagKindString, Optional: true, Description: "Add them after this action. Leave out afterActionID and atStart to add them at the end, before an action that ends the path."}, + {FlagName: "at-start", FieldPath: "Body.AtStart", Kind: flagutil.FlagKindBool, Optional: true, Description: "Add them before every other action on this exit."}, {FlagName: "expected-actions", FieldPath: "Body.ExpectedActions", Kind: flagutil.FlagKindStringArray, Required: true, Description: "The IDs in this exit's actions from your last read, in order. Send [] when it has none. [required]"}, {FlagName: "to", Shorthand: "t", FieldPath: "Body.To", Kind: flagutil.FlagKindJSON, Optional: true, Annotations: `json:"to,omitempty"`, Description: "The block the path goes to after the actions. Leave it out to keep the current one. Send null to clear it."}, } diff --git a/internal/cli/workflow/insertstep.go b/internal/cli/workflow/insertstep.go index f55465c2..1102e91b 100644 --- a/internal/cli/workflow/insertstep.go +++ b/internal/cli/workflow/insertstep.go @@ -21,6 +21,7 @@ var insertStepCmdMeta = []flagutil.FlagMeta{ {FlagName: "project-id", Shorthand: "p", FieldPath: "ProjectID", Kind: flagutil.FlagKindString, Required: true, Description: "[required]"}, {FlagName: "environment-alias", FieldPath: "EnvironmentAlias", Kind: flagutil.FlagKindString, Required: true, Description: "[required]"}, {FlagName: "after-step-id", FieldPath: "Body.AfterStepID", Kind: flagutil.FlagKindString, Optional: true, Description: "Insert right after this step of the block. Send this or atStart."}, + {FlagName: "at-start", FieldPath: "Body.AtStart", Kind: flagutil.FlagKindBool, Optional: true, Description: "Insert as the first step of the block. Send this or afterStepID."}, {FlagName: "step", Shorthand: "s", FieldPath: "Body.Step", Kind: flagutil.FlagKindUnion, Union: &flagutil.UnionMeta{Discriminated: true, DiscriminatorKey: "Kind", TypeDescription: "JSON value (variants: message: { kind: string, key: string, content: value, links: object }, end: { kind: string, key: string, content: object, links: object }, set: { kind: string, key: string, content: object, links: object }, workflow: { kind: string, key: string, content: object, links: object }, listen: { kind: string, key: string, content: object, links: object }, condition: { kind: string, key: string, content: object, links: object }, buttons: { kind: string, key: string, content: object, links: object }, card: { kind: string, key: string, content: object, links: object }, carousel: { kind: string, key: string, content: object, links: object }, code: { kind: string, key: string, content: object, links: object }, api: { kind: string, key: string, content: object, links: object }, function: { kind: string, key: string, content: object, links: object }, integration: { kind: string, key: string, content: object, links: object }, mcp: { kind: string, key: string, content: object, links: object }, playbook: { kind: string, key: string, content: object, links: object }, operator: { kind: string, key: string, content: object, links: object }, crew: { kind: string, key: string, content: object, links: object }, handoff: { kind: string, key: string, content: object, links: object }, callForward: { kind: string, key: string, content: object, links: object })", Variants: []flagutil.UnionVariantMeta{ {DiscriminatorValue: "message", FlagName: "step.message", FieldName: "StableWorkflowStepInputMessage", CanExpand: false, Description: "StableWorkflowStepInput_Message variant as JSON"}, {DiscriminatorValue: "end", FlagName: "step.end", FieldName: "StableWorkflowStepInputEnd", CanExpand: false, Description: "StableWorkflowStepInput_End variant as JSON"}, diff --git a/internal/cli/workflow/optional_literal_flags_test.go b/internal/cli/workflow/optional_literal_flags_test.go new file mode 100644 index 00000000..b7dc8dac --- /dev/null +++ b/internal/cli/workflow/optional_literal_flags_test.go @@ -0,0 +1,124 @@ +// This file is not generated by Speakeasy. It pins the fix in +// .speakeasy/overlays/optional-literal-flags.yaml: atStart is sent only when +// --at-start is given. + +package workflow + +import ( + "encoding/json" + "strings" + "testing" + + "github.com/spf13/cobra" + "github.com/voiceflow/cli/internal/flagutil" + "github.com/voiceflow/cli/internal/sdk/models/operations" +) + +// subcommand registers one workflow subcommand on a fresh parent and returns +// it with its flags parsed from args. +func subcommand(t *testing.T, register func(*cobra.Command) error, name string, args ...string) *cobra.Command { + t.Helper() + parent := &cobra.Command{Use: "workflow"} + if err := register(parent); err != nil { + t.Fatal(err) + } + cmd, _, err := parent.Find([]string{name}) + if err != nil { + t.Fatal(err) + } + cmd.SetIn(strings.NewReader("")) + if err := cmd.ParseFlags(args); err != nil { + t.Fatal(err) + } + return cmd +} + +func bodyJSON(t *testing.T, body any) map[string]any { + t.Helper() + raw, err := json.Marshal(body) + if err != nil { + t.Fatal(err) + } + var m map[string]any + if err := json.Unmarshal(raw, &m); err != nil { + t.Fatal(err) + } + return m +} + +var insertStepArgs = []string{ + "--workflow-id", "w", "--block-id", "b", "--project-id", "p", "--environment-alias", "main", + "--expected-steps", "step_1", "--step.end", `{}`, +} + +func insertStepBody(t *testing.T, args ...string) map[string]any { + t.Helper() + cmd := subcommand(t, initInsertStepCmd, "insert-step", append(append([]string{}, insertStepArgs...), args...)...) + req, err := flagutil.BuildRequest[operations.StableWorkflowControllerInsertStepRequest](cmd, insertStepCmdMeta, "Body", "body") + if err != nil { + t.Fatal(err) + } + return bodyJSON(t, req.Body) +} + +// The server rejects a body with both afterStepID and atStart. Before the fix +// the CLI sent atStart: true on every insert, so inserting after a step always +// failed. +func TestInsertStepAfterAStepSendsNoAtStart(t *testing.T) { + body := insertStepBody(t, "--after-step-id", "step_1") + if body["afterStepID"] != "step_1" { + t.Errorf("afterStepID = %v, want step_1", body["afterStepID"]) + } + if v, sent := body["atStart"]; sent { + t.Errorf("atStart = %v was sent alongside afterStepID; the API accepts exactly one", v) + } +} + +func TestInsertStepAtStartSendsAtStart(t *testing.T) { + body := insertStepBody(t, "--at-start") + if body["atStart"] != true { + t.Errorf("atStart = %v, want true", body["atStart"]) + } + if v, sent := body["afterStepID"]; sent { + t.Errorf("afterStepID = %v, want it left out", v) + } +} + +var addActionsArgs = []string{ + "--workflow-id", "w", "--step-id", "s", "--port-key", "next", "--project-id", "p", "--environment-alias", "main", + "--actions", `[{"kind":"end"}]`, "--expected-actions", "a1", +} + +func addActionsBody(t *testing.T, args ...string) map[string]any { + t.Helper() + cmd := subcommand(t, initAddActionsCmd, "add-actions", append(append([]string{}, addActionsArgs...), args...)...) + req, err := flagutil.BuildRequest[operations.StableWorkflowControllerAddActionsRequest](cmd, addActionsCmdMeta, "Body", "body") + if err != nil { + t.Fatal(err) + } + return bodyJSON(t, req.Body) +} + +// Leaving out both afterActionID and atStart adds the actions at the end. That +// was unreachable while atStart: true went out on every call. +func TestAddActionsWithNeitherFlagAddsAtTheEnd(t *testing.T) { + body := addActionsBody(t) + for _, key := range []string{"atStart", "afterActionID"} { + if v, sent := body[key]; sent { + t.Errorf("%s = %v was sent; leave both out to add at the end", key, v) + } + } +} + +func TestAddActionsAfterAnActionSendsNoAtStart(t *testing.T) { + body := addActionsBody(t, "--after-action-id", "a1") + if v, sent := body["atStart"]; sent { + t.Errorf("atStart = %v was sent alongside afterActionID", v) + } +} + +func TestAddActionsAtStartSendsAtStart(t *testing.T) { + if body := addActionsBody(t, "--at-start"); body["atStart"] != true { + t.Errorf("atStart = %v, want true", body["atStart"]) + } +} diff --git a/internal/sdk/models/components/optional_literal_flags_test.go b/internal/sdk/models/components/optional_literal_flags_test.go new file mode 100644 index 00000000..1d671177 --- /dev/null +++ b/internal/sdk/models/components/optional_literal_flags_test.go @@ -0,0 +1,79 @@ +// This file is not generated by Speakeasy. It pins the fix in +// .speakeasy/overlays/optional-literal-flags.yaml: the API sends each of these +// flags only when it is true, and the CLI must keep "absent" distinct from +// "true" when it decodes a response and encodes it again for output. + +package components + +import ( + "encoding/json" + "testing" +) + +type roundTrip interface { + json.Marshaler + json.Unmarshaler +} + +func TestOptionalLiteralFlagsRoundTrip(t *testing.T) { + cases := []struct { + name string + flag string + absent string + present string + decoded func() (roundTrip, func() *bool) + }{ + { + name: "StableWorkflowLink.overridden", flag: "overridden", + absent: `{"port":"next","label":"","to":"b2"}`, + present: `{"port":"next","label":"","to":"b2","overridden":true,"effectiveTo":"b3"}`, + decoded: func() (roundTrip, func() *bool) { v := &StableWorkflowLink{}; return v, v.GetOverridden }, + }, + { + name: "StableEnvironmentSearchTextReadResponse.incomplete", flag: "incomplete", + absent: `{}`, + present: `{"incomplete":true}`, + decoded: func() (roundTrip, func() *bool) { + v := &StableEnvironmentSearchTextReadResponse{} + return v, v.GetIncomplete + }, + }, + { + name: "StableTranscriptGrepResponse.literalText", flag: "literalText", + absent: `{}`, + present: `{"literalText":true}`, + decoded: func() (roundTrip, func() *bool) { v := &StableTranscriptGrepResponse{}; return v, v.GetLiteralText }, + }, + } + + for _, c := range cases { + t.Run(c.name, func(t *testing.T) { + for _, sent := range []bool{false, true} { + input := c.absent + if sent { + input = c.present + } + v, get := c.decoded() + if err := v.UnmarshalJSON([]byte(input)); err != nil { + t.Fatalf("decoding %s: %v", input, err) + } + + if got := get(); (got != nil) != sent || (sent && !*got) { + t.Errorf("API sent %s=%v, getter returned %v", c.flag, sent, got) + } + + raw, err := v.MarshalJSON() + if err != nil { + t.Fatal(err) + } + var out map[string]any + if err := json.Unmarshal(raw, &out); err != nil { + t.Fatal(err) + } + if got, present := out[c.flag]; present != sent || (sent && got != true) { + t.Errorf("API sent %s=%v, CLI printed %s", c.flag, sent, raw) + } + } + }) + } +} diff --git a/internal/sdk/models/components/stableenvironmentsearchtextreadresponse.go b/internal/sdk/models/components/stableenvironmentsearchtextreadresponse.go index 3a8e52c9..d147c1e1 100644 --- a/internal/sdk/models/components/stableenvironmentsearchtextreadresponse.go +++ b/internal/sdk/models/components/stableenvironmentsearchtextreadresponse.go @@ -5,7 +5,6 @@ package components import ( "github.com/voiceflow/cli/internal/sdk/sdkinternal/utils" - "github.com/voiceflow/cli/internal/sdk/types" ) type StableEnvironmentSearchTextReadResponse struct { @@ -17,8 +16,7 @@ type StableEnvironmentSearchTextReadResponse struct { HasMore bool `json:"hasMore"` NextOffset *int64 `json:"nextOffset,omitzero"` // Present when the search did not read everything: it stopped at its time limit, or a regular expression read only the first 1,000 characters of a longer line. The counts cover only what it read. - //lint:ignore U1000 accessed via reflection for JSON marshaling - incomplete *bool `const:"true" json:"incomplete,omitzero"` + Incomplete *bool `json:"incomplete,omitzero"` // What this search never reads. NotSearched []string `json:"notSearched"` } @@ -70,7 +68,10 @@ func (s *StableEnvironmentSearchTextReadResponse) GetNextOffset() *int64 { } func (s *StableEnvironmentSearchTextReadResponse) GetIncomplete() *bool { - return types.Pointer(true) + if s == nil { + return nil + } + return s.Incomplete } func (s *StableEnvironmentSearchTextReadResponse) GetNotSearched() []string { diff --git a/internal/sdk/models/components/stabletranscriptgrepresponse.go b/internal/sdk/models/components/stabletranscriptgrepresponse.go index 7b2be0f7..3ca49a7c 100644 --- a/internal/sdk/models/components/stabletranscriptgrepresponse.go +++ b/internal/sdk/models/components/stabletranscriptgrepresponse.go @@ -5,7 +5,6 @@ package components import ( "github.com/voiceflow/cli/internal/sdk/sdkinternal/utils" - "github.com/voiceflow/cli/internal/sdk/types" ) type StableTranscriptGrepResponse struct { @@ -22,8 +21,7 @@ type StableTranscriptGrepResponse struct { Skipped *int64 `json:"skipped,omitzero"` Note *string `json:"note,omitzero"` // The pattern ran as plain text; `note` says why. - //lint:ignore U1000 accessed via reflection for JSON marshaling - literalText *bool `const:"true" json:"literalText,omitzero"` + LiteralText *bool `json:"literalText,omitzero"` Hits []StableTranscriptGrepHit `json:"hits"` } @@ -88,7 +86,10 @@ func (s *StableTranscriptGrepResponse) GetNote() *string { } func (s *StableTranscriptGrepResponse) GetLiteralText() *bool { - return types.Pointer(true) + if s == nil { + return nil + } + return s.LiteralText } func (s *StableTranscriptGrepResponse) GetHits() []StableTranscriptGrepHit { diff --git a/internal/sdk/models/components/stableworkflowlink.go b/internal/sdk/models/components/stableworkflowlink.go index ef642909..a9b10286 100644 --- a/internal/sdk/models/components/stableworkflowlink.go +++ b/internal/sdk/models/components/stableworkflowlink.go @@ -5,7 +5,6 @@ package components import ( "github.com/voiceflow/cli/internal/sdk/sdkinternal/utils" - "github.com/voiceflow/cli/internal/sdk/types" ) type StableWorkflowLink struct { @@ -17,8 +16,7 @@ type StableWorkflowLink struct { // The port actions this exit runs, in order, before it reaches to. Actions []StableWorkflowPortAction `json:"actions,omitzero"` // Present when this link does not run, because the step is not the last of its block. - //lint:ignore U1000 accessed via reflection for JSON marshaling - overridden *bool `const:"true" json:"overridden,omitzero"` + Overridden *bool `json:"overridden,omitzero"` // With overridden: the step that runs instead. EffectiveTo *string `json:"effectiveTo,omitzero"` } @@ -63,7 +61,10 @@ func (s *StableWorkflowLink) GetActions() []StableWorkflowPortAction { } func (s *StableWorkflowLink) GetOverridden() *bool { - return types.Pointer(true) + if s == nil { + return nil + } + return s.Overridden } func (s *StableWorkflowLink) GetEffectiveTo() *string { diff --git a/internal/sdk/models/components/stableworkflowportactionsaddrequest.go b/internal/sdk/models/components/stableworkflowportactionsaddrequest.go index 60993220..e74fb390 100644 --- a/internal/sdk/models/components/stableworkflowportactionsaddrequest.go +++ b/internal/sdk/models/components/stableworkflowportactionsaddrequest.go @@ -6,7 +6,6 @@ package components import ( "github.com/voiceflow/cli/internal/sdk/optionalnullable" "github.com/voiceflow/cli/internal/sdk/sdkinternal/utils" - "github.com/voiceflow/cli/internal/sdk/types" ) type StableWorkflowPortActionsAddRequest struct { @@ -15,8 +14,7 @@ type StableWorkflowPortActionsAddRequest struct { // Add them after this action. Leave out afterActionID and atStart to add them at the end, before an action that ends the path. AfterActionID *string `json:"afterActionID,omitzero"` // Add them before every other action on this exit. - //lint:ignore U1000 accessed via reflection for JSON marshaling - atStart *bool `const:"true" json:"atStart,omitzero"` + AtStart *bool `json:"atStart,omitzero"` // The IDs in this exit's actions from your last read, in order. Send [] when it has none. ExpectedActions []string `json:"expectedActions"` // The block the path goes to after the actions. Leave it out to keep the current one. Send null to clear it. @@ -49,7 +47,10 @@ func (s *StableWorkflowPortActionsAddRequest) GetAfterActionID() *string { } func (s *StableWorkflowPortActionsAddRequest) GetAtStart() *bool { - return types.Pointer(true) + if s == nil { + return nil + } + return s.AtStart } func (s *StableWorkflowPortActionsAddRequest) GetExpectedActions() []string { diff --git a/internal/sdk/models/components/stableworkflowstepinsertrequest.go b/internal/sdk/models/components/stableworkflowstepinsertrequest.go index 2a063c4f..3378c532 100644 --- a/internal/sdk/models/components/stableworkflowstepinsertrequest.go +++ b/internal/sdk/models/components/stableworkflowstepinsertrequest.go @@ -5,15 +5,13 @@ package components import ( "github.com/voiceflow/cli/internal/sdk/sdkinternal/utils" - "github.com/voiceflow/cli/internal/sdk/types" ) type StableWorkflowStepInsertRequest struct { // Insert right after this step of the block. Send this or atStart. AfterStepID *string `json:"afterStepID,omitzero"` // Insert as the first step of the block. Send this or afterStepID. - //lint:ignore U1000 accessed via reflection for JSON marshaling - atStart *bool `const:"true" json:"atStart,omitzero"` + AtStart *bool `json:"atStart,omitzero"` Step StableWorkflowStepInput `json:"step"` // The block's step IDs exactly as your last read returned them. If the block changed, nothing is written. ExpectedSteps []string `json:"expectedSteps"` @@ -40,7 +38,10 @@ func (s *StableWorkflowStepInsertRequest) GetAfterStepID() *string { } func (s *StableWorkflowStepInsertRequest) GetAtStart() *bool { - return types.Pointer(true) + if s == nil { + return nil + } + return s.AtStart } func (s *StableWorkflowStepInsertRequest) GetStep() StableWorkflowStepInput { diff --git a/internal/usage/schema.go b/internal/usage/schema.go index 13dcb309..8a29b6bf 100644 --- a/internal/usage/schema.go +++ b/internal/usage/schema.go @@ -11,7 +11,7 @@ import ( ) var usageSchemas = map[string]string{ - "": "name \"vf\"\nbin \"vf\"\nabout \"Realtime: Realtime gateway API service\"\nversion \"0.2.349\"\nconfig {\n file \"~/.config/vf/config.yaml\"\n}\nflag \"--usage\" help=\"Print the CLI Usage schema in KDL format\" global=#true\nflag \"-o --output-format \" help=\"Specify the output format. Options: pretty, json, yaml, table, toon.\" global=#true config=\"output_format\" default=\"pretty\"\nflag \"--color \" help=\"Control colored output: auto (color when output is a TTY), always, or never. Respects NO_COLOR and FORCE_COLOR env vars.\" global=#true default=\"auto\"\nflag \"-q --jq \" help=\"Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')\" global=#true\nflag \"--server-url \" help=\"Override the default server URL\" global=#true\nflag \"--server \" help=\"Select a server by index (for indexed servers) or name (for named servers)\" global=#true\nflag \"-H --header \" help=\"Set a custom HTTP request header (format: \\\"Key: Value\\\"). Can be specified multiple times.\" global=#true var=#true\nflag \"--include-headers\" help=\"Include HTTP response headers in the output\" global=#true default=#false\nflag \"--timeout \" help=\"HTTP request timeout (e.g., 30s, 5m, 100ms)\" global=#true config=\"timeout\"\nflag \"--dry-run\" help=\"Preview the request that would be sent without executing it (output to stderr)\" global=#true default=#false\nflag \"-d --debug\" help=\"Log request and response diagnostics to stderr\" global=#true default=#false\nflag \"--agent-mode\" help=\"Enable structured errors and default TOON output for AI coding agents. Automatically enabled when a known agent environment is detected (CLAUDE_CODE, CURSOR_AGENT, etc.). Use --agent-mode=false to disable.\" global=#true default=#false\nflag \"--token \" help=\"Voiceflow bearer token\" global=#true env=\"VF_TOKEN\" config=\"security.token\"\ncmd \"agent\" help=\"Operations for agent\" {\n cmd \"get\" help=\"Get agent\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--include-instructions\" help=\"boolean flag\" default=#false\n flag \"--include-prompt\" help=\"boolean flag\" default=#false\n }\n cmd \"update\" help=\"Update agent\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--prompt \" help=\"string value\"\n flag \"--end-tool \" help=\"JSON object\"\n flag \"--card-tool \" help=\"JSON object\"\n flag \"--playbooks \" help=\"Playbooks available for the agent to invoke. This list REPLACES the registry: send the complete list you want, or omit the field to leave routing untouched. An agent with no playbooks AND no workflows registered cannot run - the runtime fails the conversation - so never send an empty list unless `workflows` still holds at least one.\"\n flag \"--workflows \" help=\"Workflows available for the agent to invoke. This list REPLACES the registry: send the complete list you want, or omit the field to leave routing untouched. An agent with no workflows AND no playbooks registered cannot run, so never send an empty list unless `playbooks` still holds at least one.\"\n flag \"--button-tool \" help=\"JSON object\"\n flag \"--carousel-tool \" help=\"JSON object\"\n flag \"--instructions \" help=\"string value\"\n flag \"--skip-turn-tool \" help=\"JSON object\"\n flag \"--path-tool-order \" help=\"The ordered list of path tool IDs that controls the order of the agent exit paths.\" var=#true\n flag \"--web-search-tool \" help=\"JSON object\"\n flag \"--call-forward-tool \" help=\"JSON object\"\n flag \"--knowledge-base-tool \" help=\"JSON object\"\n flag \"--include-guidelines\" help=\"Whether to append the default prompting guidelines to the global prompt.\"\n flag \"--llm \" help=\"JSON object\"\n flag \"--voice \" help=\"JSON object\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-workflow\" help=\"Add agent workflow\" {\n alias \"aw\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--condition \" help=\"The agent can run the workflow only while this condition holds. Leave it out for a workflow it can always run.\"\n flag \"--description \" help=\"When the agent should run this workflow. The agent reads it to choose between its playbooks and workflows. [required]\"\n flag \"--required-variables \" help=\"Variables the agent fills from the conversation before it runs the workflow, each with a description of what it holds.\"\n flag \"--workflow-id \" help=\"The workflow to add. Copy its ID from voiceflow_workflow.list. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-workflow\" help=\"Update agent workflow\" {\n alias \"uw\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--condition \" help=\"The agent can run the workflow only while this condition holds. Leave it out for a workflow it can always run.\"\n flag \"--description \" help=\"When the agent should run this workflow. The agent reads it to choose between its playbooks and workflows.\"\n flag \"--required-variables \" help=\"Replaces the stored list. Keep the id of each variable you keep, as read with voiceflow_agent.get. Leave the field out to keep the stored required variables.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"remove-workflow\" help=\"Remove agent workflow\" {\n alias \"rw\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"read-instructions\" help=\"Read agent instructions\" {\n alias \"ri\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--offset \" help=\"integer value\" default=1\n flag \"--limit \" help=\"integer value\" default=400\n }\n cmd \"patch-instructions\" help=\"Patch agent instructions\" {\n alias \"pi\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--old-string \" help=\"The exact text to replace, copied verbatim from a read or search result. Matching is literal — whitespace, punctuation and case must match. Do not include the line numbers a read adds. [required]\"\n flag \"--new-string \" help=\"The text to put in its place. May be empty to delete. [required]\"\n flag \"--replace-all\" help=\"Replace every occurrence. When false, more than one match is an error rather than a guess.\" default=#false\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"search-instructions\" help=\"Search agent instructions\" {\n alias \"si\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--pattern \" help=\"A JavaScript regular expression, evaluated against each line on its own. [required]\"\n flag \"--ignore-case\" help=\"Match case-insensitively. Defaults to false, like grep.\" default=#false\n flag \"--context-lines \" help=\"How many lines either side of each match to return.\" default=0\n flag \"--limit \" help=\"The maximum number of matching LINES to return. The reported totals cover the whole document.\" default=50\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"read-prompt\" help=\"Read the global prompt\" {\n alias \"rp\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--offset \" help=\"integer value\" default=1\n flag \"--limit \" help=\"integer value\" default=400\n }\n cmd \"patch-prompt\" help=\"Patch the global prompt\" {\n alias \"pp\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--old-string \" help=\"The exact text to replace, copied verbatim from a read or search result. Matching is literal — whitespace, punctuation and case must match. Do not include the line numbers a read adds. [required]\"\n flag \"--new-string \" help=\"The text to put in its place. May be empty to delete. [required]\"\n flag \"--replace-all\" help=\"Replace every occurrence. When false, more than one match is an error rather than a guess.\" default=#false\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"search-prompt\" help=\"Search the global prompt\" {\n alias \"sp\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--pattern \" help=\"A JavaScript regular expression, evaluated against each line on its own. [required]\"\n flag \"--ignore-case\" help=\"Match case-insensitively. Defaults to false, like grep.\" default=#false\n flag \"--context-lines \" help=\"How many lines either side of each match to return.\" default=0\n flag \"--limit \" help=\"The maximum number of matching LINES to return. The reported totals cover the whole document.\" default=50\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-tool-message\" help=\"Add agent tool message\" {\n alias \"atm\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n flag \"--body-param \" help=\"{ type: string, examples: string[] } | { type: string, messageID: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-tool-message\" help=\"Update agent tool message\" {\n alias \"utm\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n flag \"--body-param \" help=\"{ type: string, examples: string[] } | { type: string, messageID: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-tool-message\" help=\"Delete agent tool message\" {\n alias \"dtm\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n }\n cmd \"patch-pronunciation\" help=\"Patch pronunciation dictionary\" {\n alias \"ppr\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--set \" help=\"Words to add, or to change when the dictionary already has them. `from` is the written word and `to` is how the voice says it; an empty `to` makes the voice skip the word.\"\n flag \"--remove \" help=\"Written words whose entries to delete.\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"search-voices\" help=\"Search voices\" {\n alias \"sv\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--search \" help=\"string value\"\n flag \"--language \" help=\"string value\"\n flag \"--provider \" help=\"A TTS provider whose voices are in the voice catalog. (options: elevenlabs, cartesia)\"\n flag \"--gender \" help=\"How the vendor describes the voice. (options: male, female, neutral)\"\n flag \"--limit \" help=\"integer value\" default=10\n flag \"--offset \" help=\"integer value\" default=0\n }\n cmd \"patch-voices\" help=\"Patch voices\" {\n alias \"pv\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--primary \" help=\"The default voice: the one a conversation speaks with unless a language voice matches its locale.\"\n flag \"--set-overrides \" help=\"Language voices to add, or to change when the agent already has one for that locale.\"\n flag \"--remove-overrides \" help=\"Locales whose language voice to delete, as stored. They match ignoring case and _, as the runtime matches them.\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get-initialization-workflow\" help=\"Get initialization workflow\" {\n alias \"giw\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"set-initialization-workflow\" help=\"Set initialization workflow\" {\n alias \"siw\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--workflow-id \" help=\"The workflow to run before the user's first turn, or null to run none. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n}\ncmd \"workflow\" help=\"Operations for workflow\" {\n cmd \"list\" help=\"List workflows\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--folder-id \" help=\"string value\"\n flag \"--cursor \" help=\"string value\"\n flag \"--limit \" help=\"integer value\"\n }\n cmd \"create\" help=\"Create workflow\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"[required]\"\n flag \"--description \" help=\"string value\"\n flag \"--folder-id \" help=\"string value\"\n flag \"--entry \" help=\"string value\"\n flag \"--blocks \" help=\"list of values\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get workflow\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--cursor \" help=\"string value\"\n }\n cmd \"update\" help=\"Update workflow\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--description \" help=\"string value\"\n flag \"--folder-id \" help=\"A workflow folder in this environment, or null for the top level.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete workflow\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"get-step\" help=\"Get workflow step\" {\n alias \"gs\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update-step\" help=\"Update workflow step\" {\n alias \"us\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--body-param \" help=\"{ kind: string, content: object }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-step\" help=\"Delete workflow step\" {\n alias \"ds\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--expected-steps \" help=\"[required]\" var=#true\n }\n cmd \"get-raw\" help=\"Get raw workflow\" {\n alias \"gr\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--block-ids \" help=\"list of values\" var=#true\n }\n cmd \"duplicate\" help=\"Duplicate workflow\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the copy. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"link\" help=\"Link a port\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--port-key \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--to-block-id \" help=\"The block the port will lead to. Links point at blocks, never at a step inside one. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"unlink\" help=\"Unlink a port\" {\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--port-key \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"link-many\" help=\"Link many ports\" {\n alias \"lm\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--links \" help=\"1 to 50 ports to link, each once. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"create-block\" help=\"Create block\" {\n alias \"cb\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"[required]\"\n flag \"--color-param \" help=\"string value\"\n flag \"--placement \" help=\"Place the new block to the right of this block. Without it, the block goes next to the block of from.stepID, or right of the right-most block.\"\n flag \"--from \" help=\"Also link this port to the new block in the same call, with the same checks as voiceflow_workflow.link.\"\n flag \"--steps \" help=\"[required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-blocks\" help=\"Add workflow blocks\" {\n alias \"ab\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--blocks \" help=\"The new blocks. A step's links and a branch's to name a block key from this call or an existing block ID. [required]\"\n flag \"--from \" help=\"Existing ports to link to new blocks in the same call, with the same checks as voiceflow_workflow.link.\"\n flag \"--placement \" help=\"Place the new blocks to the right of this block. Without it, they go right of the block of the first from step, or right of the right-most block.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-block\" help=\"Update block\" {\n alias \"ub\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--block-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--color-param \" help=\"string value\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-block\" help=\"Delete workflow block\" {\n alias \"db\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--block-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--expected-steps \" help=\"[required]\" var=#true\n }\n cmd \"arrange-blocks\" help=\"Arrange workflow blocks\" {\n alias \"abl\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--block-ids \" help=\"Move only these blocks, as a group laid out by the links between them. Leave it out to arrange every block from the Start.\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"split-block\" help=\"Split workflow block\" {\n alias \"sb\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--block-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--at-step-id \" help=\"The step that starts the new block. It and every step below it move there, and the step above it becomes the last step of the block. To make step X the last step, so that its fail and path ports run, send the step below X. It must not be the first step. [required]\"\n flag \"--name \" help=\"The new block name. Default: the block name with \\\" (continued)\\\".\"\n flag \"--expected-steps \" help=\"The block's step IDs exactly as your last read returned them. If the block changed, nothing is written. [required]\" var=#true\n flag \"--acknowledge-rewire\" help=\"Required when the step that becomes the last step has hidden links or actions. The split keeps them, so they start to run. An action list on its next exit is deleted, because next links to the new block.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"insert-step\" help=\"Insert workflow step\" {\n alias \"is\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--block-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--after-step-id \" help=\"Insert right after this step of the block. Send this or atStart.\"\n flag \"--step \" help=\"{ kind: string, key: string, content: value, links: object } | { kind: string, key: string, content: object, links: object }\"\n flag \"--expected-steps \" help=\"The block's step IDs exactly as your last read returned them. If the block changed, nothing is written. [required]\" var=#true\n flag \"--acknowledge-rewire\" help=\"Required when the insert makes the last step stop being last and that step has exits that would stop running: a Tool or Code fail or path link is cleared, and actions on such an exit are deleted. Also required when you append a step that has no next port, such as End or Go to block: the old last step's next link cannot move to it, so it is cleared.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-branch\" help=\"Add workflow branch\" {\n alias \"abr\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--body-param \" help=\"{ label: string, matchAll: boolean, assertions: object[], to: string, ... } | { label: string, url: string, to: string, kind: string } | { label: string, url: string, to: string, kind: string, ... } | { label: string, to: string, kind: string } | { name: string, description: string, requiredVariables: object[], messages: object, ... }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-branch\" help=\"Update workflow branch\" {\n alias \"ubr\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--branch-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--body-param \" help=\"{ label: string, matchAll: boolean, assertions: object[], kind: string } | { label: string, url: string, kind: string } | { label: string, kind: string } | { name: string, description: string, requiredVariables: object[], kind: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-branch\" help=\"Delete workflow branch\" {\n alias \"dbr\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--branch-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"add-actions\" help=\"Add port actions\" {\n alias \"aa\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--port-key \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--actions \" help=\"1 to 10 actions to add, in run order. [required]\"\n flag \"--after-action-id \" help=\"Add them after this action. Leave out afterActionID and atStart to add them at the end, before an action that ends the path.\"\n flag \"--expected-actions \" help=\"The IDs in this exit's actions from your last read, in order. Send [] when it has none. [required]\" var=#true\n flag \"--to \" help=\"The block the path goes to after the actions. Leave it out to keep the current one. Send null to clear it.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"reorder-actions\" help=\"Reorder port actions\" {\n alias \"ra\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--step-id \" help=\"[required]\"\n flag \"--port-key \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--order \" help=\"Every action ID of this exit, in the new order. [required]\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"replace-action\" help=\"Replace port action\" {\n alias \"rac\"\n flag \"--workflow-id \" help=\"[required]\"\n flag \"--action-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--action \" help=\"{ kind: string, content: object }\"\n flag \"--expected-actions \" help=\"The IDs in this exit's actions from your last read, in order. [required]\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n}\ncmd \"playbook\" help=\"Operations for playbook\" {\n cmd \"list\" help=\"List playbooks\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--include-instructions\" help=\"boolean flag\" default=#false\n }\n cmd \"create\" help=\"Create playbook\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"[required]\"\n flag \"--description \" help=\"A human-readable description of what the playbook does.\"\n flag \"--instructions \" help=\"string value\"\n flag \"--end-tool \" help=\"JSON object\"\n flag \"--card-tool \" help=\"JSON object\"\n flag \"--button-tool \" help=\"JSON object\"\n flag \"--carousel-tool \" help=\"JSON object\"\n flag \"--skip-turn-tool \" help=\"JSON object\"\n flag \"--web-search-tool \" help=\"JSON object\"\n flag \"--call-forward-tool \" help=\"JSON object\"\n flag \"--knowledge-base-tool \" help=\"JSON object\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get playbook\" {\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--include-instructions\" help=\"boolean flag\" default=#false\n }\n cmd \"update\" help=\"Update playbook\" {\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--description \" help=\"A human-readable description of what the playbook does.\"\n flag \"--instructions \" help=\"string value\"\n flag \"--end-tool \" help=\"JSON object\"\n flag \"--card-tool \" help=\"JSON object\"\n flag \"--button-tool \" help=\"JSON object\"\n flag \"--carousel-tool \" help=\"JSON object\"\n flag \"--skip-turn-tool \" help=\"JSON object\"\n flag \"--web-search-tool \" help=\"JSON object\"\n flag \"--call-forward-tool \" help=\"JSON object\"\n flag \"--knowledge-base-tool \" help=\"JSON object\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete playbook\" {\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"read-instructions\" help=\"Read playbook instructions\" {\n alias \"ri\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--offset \" help=\"integer value\" default=1\n flag \"--limit \" help=\"integer value\" default=400\n }\n cmd \"patch-instructions\" help=\"Patch playbook instructions\" {\n alias \"pi\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--old-string \" help=\"The exact text to replace, copied verbatim from a read or search result. Matching is literal — whitespace, punctuation and case must match. Do not include the line numbers a read adds. [required]\"\n flag \"--new-string \" help=\"The text to put in its place. May be empty to delete. [required]\"\n flag \"--replace-all\" help=\"Replace every occurrence. When false, more than one match is an error rather than a guess.\" default=#false\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"search-instructions\" help=\"Search playbook instructions\" {\n alias \"si\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--pattern \" help=\"A JavaScript regular expression, evaluated against each line on its own. [required]\"\n flag \"--ignore-case\" help=\"Match case-insensitively. Defaults to false, like grep.\" default=#false\n flag \"--context-lines \" help=\"How many lines either side of each match to return.\" default=0\n flag \"--limit \" help=\"The maximum number of matching LINES to return. The reported totals cover the whole document.\" default=50\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"duplicate\" help=\"Duplicate playbook\" {\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the copy. Leave it out to use the original's name with \\\" copy\\\" added.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-tool-message\" help=\"Add playbook tool message\" {\n alias \"atm\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n flag \"--body-param \" help=\"{ type: string, examples: string[] } | { type: string, messageID: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-tool-message\" help=\"Update playbook tool message\" {\n alias \"utm\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n flag \"--body-param \" help=\"{ type: string, examples: string[] } | { type: string, messageID: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-tool-message\" help=\"Delete playbook tool message\" {\n alias \"dtm\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--project-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--environment-alias \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. [required]\"\n flag \"--slot \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: delay, failure, execution, completion) [required]\"\n flag \"--tool-id \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected.\"\n flag \"--native-tool \" help=\"Addresses one message on one tool. Exactly one of toolID and nativeTool is required; sending neither or both is rejected. (options: endTool, cardTool, buttonTool, carouselTool, webSearchTool, callForwardTool, knowledgeBaseTool)\"\n }\n cmd \"path\" help=\"Operations for playbook-path\" {\n cmd \"list\" help=\"List exit paths\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--playbook-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create exit path\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--playbook-id \" help=\"The ID of the playbook to add the exit path to. [required]\"\n flag \"--name \" help=\"The name of the exit path, trimmed. Use Latin letters, digits, spaces, hyphens and underscores, as the editor does: the runtime turns the name into the snake_case name of the exit tool the model calls. [required]\"\n flag \"--description \" help=\"The exit condition: the model reads it to decide when to leave the playbook through this path.\"\n flag \"--required-variables \" help=\"The variables or entities the model must fill before it can leave through this path, in order.\"\n flag \"--messages \" help=\"What the agent says as it leaves through this path. Send only a message ID that nothing else uses: no other step in any workflow, no reprompt, no agent and no playbook. For the same words in a second place, create a new message with that text.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update\" help=\"Update exit path\" {\n flag \"--path-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--playbook-id \" help=\"[required]\"\n flag \"--name \" help=\"The name of the exit path, trimmed. Use Latin letters, digits, spaces, hyphens and underscores, as the editor does: the runtime turns the name into the snake_case name of the exit tool the model calls.\"\n flag \"--description \" help=\"The exit condition: the model reads it to decide when to leave the playbook through this path.\"\n flag \"--required-variables \" help=\"Replaces the stored list, in order. Leave it out to keep it; send [] to remove every one.\"\n flag \"--messages \" help=\"Replaces the stored messages whole. Send null to remove them; leave it out to keep them. Send only a message ID that nothing else uses: no other step in any workflow, no reprompt, no agent and no playbook. For the same words in a second place, create a new message with that text.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete exit path\" {\n flag \"--path-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--playbook-id \" help=\"[required]\"\n }\n }\n}\ncmd \"tool\" help=\"Operations for tool\" {\n cmd \"list\" help=\"List tools\" {\n flag \"--global\" help=\"boolean flag\"\n flag \"--playbook-id \" help=\"string value\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--type \" help=\"When provided, only tools of this type are returned. `workflow` returns the workflow tools. (options: api, mcp, function, integration, workflow)\"\n }\n cmd \"create\" help=\"Create tool\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--body-param \" help=\"{ description: string, target: object, messages: object, captureInputVariables: object, ... }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--type \" help=\"The type of the tool to fetch. (options: api, mcp, function, integration, workflow) [required]\"\n }\n cmd \"update\" help=\"Update tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--body-param \" help=\"{ description: string, messages: object, toolSound: object, captureInputVariables: object, ... }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--type \" help=\"The type of the tool to delete. `workflow` removes a workflow tool; the workflow stays. (options: api, mcp, function, integration, workflow) [required]\"\n }\n cmd \"move\" help=\"Move tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--type \" help=\"The type of the tool to move. `workflow` is refused: a workflow tool is never moved. (options: api, mcp, function, integration, workflow) [required]\"\n flag \"--target \" help=\"[required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n}\ncmd \"workspace\" help=\"Operations for workspace\" {\n cmd \"list\" help=\"List workspaces\"\n cmd \"create\" help=\"Create workspace\" {\n flag \"--name \" help=\"[required]\"\n flag \"--organization-id \" help=\"The ID of the organization the workspace belongs to. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get workspace\" {\n flag \"--workspace-id \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update workspace\" {\n flag \"--workspace-id \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete workspace\" {\n flag \"--workspace-id \" help=\"[required]\"\n }\n}\ncmd \"project\" help=\"Operations for project\" {\n cmd \"list\" help=\"List projects\" {\n flag \"--workspace-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create project\" {\n flag \"--name \" help=\"[required]\"\n flag \"--workspace-id \" help=\"The ID of the workspace the project belongs to. [required]\"\n flag \"--type \" help=\"The channel type of the project to create. (options: webchat, phone-call) [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get project\" {\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update project\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete project\" {\n flag \"--project-id \" help=\"[required]\"\n }\n}\ncmd \"environment\" help=\"Operations for environment\" {\n cmd \"list\" help=\"List environments\" {\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"merge\" help=\"Merge environments\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--source-environment-alias \" help=\"The alias of the environment whose changes are merged. [required]\"\n flag \"--target-environment-alias \" help=\"The alias of the environment that receives the merged changes. [required]\"\n flag \"--remove-source-environment\" help=\"If true, the source environment is deleted after the merge.\" default=#false\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-traffic-split\" help=\"Update traffic split\" {\n alias \"uts\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--traffic \" help=\"Map of environmentAlias → traffic percentage (0-100). Values must sum to 100. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"diff\" help=\"Diff environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"audit-wiring\" help=\"Audit environment wiring\" {\n alias \"aw\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"search-text\" help=\"Search project text\" {\n alias \"st\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--pattern \" help=\"The word, phrase or ID to find. With regex, a JavaScript regular expression. [required]\"\n flag \"--regex\" help=\"Read pattern as a regular expression. Default false: literal text.\"\n flag \"--ignore-case\" help=\"Ignore case. Default true.\"\n flag \"--whole-word\" help=\"Match only where no letter, digit or underscore touches the match on either side. Default false.\"\n flag \"--resource-types \" help=\"Search only these kinds of resource. Default: all of them.\" var=#true\n flag \"--limit \" help=\"Hits per page. Default 50.\"\n flag \"--offset \" help=\"Hits to skip: nextOffset from the previous page.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"compile\" help=\"Compile environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"clone\" help=\"Clone environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"The display name of the new environment. [required]\"\n flag \"--alias \" help=\"Short URL-safe identifier; cannot be 'main' (reserved). [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"publish\" help=\"Publish environment\" {\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"The name of the release created by publishing. [required]\"\n flag \"--description \" help=\"An optional description of what changed in this release.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n}\ncmd \"message\" help=\"Operations for message\" {\n cmd \"get-many\" help=\"Get many messages\" {\n alias \"gm\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--ids \" help=\"Message IDs to read. Duplicates are ignored; at most 50 distinct IDs. [required]\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get message\" {\n flag \"--message-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"delete\" help=\"Delete message\" {\n flag \"--message-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Reorder message variants\" {\n flag \"--message-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--variant-order \" help=\"Every variant ID of the message, each exactly once, in the new order. [required]\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"create\" help=\"Create message\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--variants \" help=\"The variants, in stored order. They are alternatives: the runtime says one of them each time. The first variant cannot carry a condition. [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"add-variant\" help=\"Add message variant\" {\n alias \"av\"\n flag \"--message-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--text \" help=\"Message text shown to the end user. Limited markdown: **bold**, _italic_, underline, ~~strikethrough~~, [label](url). {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \\\\ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here. [required]\"\n flag \"--delay \" help=\"Milliseconds to wait before this variant is sent.\"\n flag \"--condition \" help=\"{ type: string, matchAll: boolean, assertions: object[] } | { type: string, code: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-variant\" help=\"Update message variant\" {\n alias \"uv\"\n flag \"--message-id \" help=\"[required]\"\n flag \"--variant-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--text \" help=\"string value\"\n flag \"--delay \" help=\"Milliseconds to wait before this variant is sent. null removes the delay.\"\n flag \"--condition \" help=\"{ type: string, matchAll: boolean, assertions: object[] } | { type: string, code: string }\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete-variant\" help=\"Delete message variant\" {\n alias \"dv\"\n flag \"--message-id \" help=\"[required]\"\n flag \"--variant-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n}\ncmd \"prompt\" help=\"Operations for prompt\" {\n cmd \"get-many\" help=\"Get many prompts\" {\n alias \"gm\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--ids \" help=\"Prompt IDs to read. Duplicates are ignored; at most 50 distinct IDs. [required]\" var=#true\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get prompt\" {\n flag \"--prompt-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update prompt\" {\n flag \"--prompt-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--system \" help=\"string value\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete prompt\" {\n flag \"--prompt-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create prompt\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"Defaults to \\\"Untitled prompt\\\", as the editor names one.\"\n flag \"--system \" help=\"Plain text; markdown is not interpreted. {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \\\\ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here. [required]\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"update-settings\" help=\"Update prompt settings\" {\n alias \"us\"\n flag \"--prompt-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--model \" help=\"options: gpt-3.5-turbo-1106, gpt-3.5-turbo, gpt-4, gpt-4o, gpt-4o-mini, gpt-4.1-2025-04-14, gpt-4.1-mini-2025-04-14, gpt-4.1-nano-2025-04-14, gpt-o3-mini, o3-2025-04-16, o4-mini-2025-04-16, gpt-5, gpt-5-mini, gpt-5-nano, gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.5, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-6-sol, gpt-6-luna, gpt-6.1-sol, gpt-realtime, gpt-live-1, claude-4-opus, claude-4-sonnet, claude-4.5-sonnet, claude-4.6-sonnet, claude-4.5-haiku, claude-4.5-opus, claude-4.7-opus, bedrock-claude-4-sonnet, bedrock-claude-4.5-sonnet, bedrock-claude-4.6-sonnet, bedrock-claude-5-sonnet, bedrock-claude-5.5-sonnet, bedrock-claude-4.5-haiku, bedrock-claude-5.5-haiku, bedrock-claude-4.5-opus, bedrock-claude-4.7-opus, bedrock-claude-4.8-opus, voiceflow-core-4.0, voiceflow-core-4.1, voiceflow-core-4.2, voiceflow-flash-4.2, gemini-2.5-pro, gemini-2.5-flash, gemini-live-2.5-flash, gemini-3-flash, gemini-3.5-flash, gemini-3.1-pro, gpt-oss-20b, gpt-oss-120b, llama-guard-4, llama-3.1-instant, llama-3.3-versatile, qwen3.6-27b, grok-4.6, voiceflow-flash-4.1, kimi-k3, gemini-flash-2, gpt-4-turbo, claude-3.5-haiku, claude-3-opus, claude-3.7-sonnet, claude-v2, llama-3.2-1b-preview, gemini-pro-1.5, claude-3-haiku, claude-3-sonnet, text-davinci-003, claude-v1, claude-instant-v1, deep-seek-r1-distill-llama-70B, claude-3.5-sonnet\"\n flag \"--max-tokens \" help=\"number value\"\n flag \"--temperature \" help=\"number value\"\n flag \"--response-format \" help=\"string value\"\n flag \"--reasoning-effort \" help=\"options: off, adaptive, minimal, low, medium, high\"\n flag \"--service-tier \" help=\"options: default, flex, priority\"\n flag \"--use-structured-output\" help=\"boolean flag\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n}\ncmd \"variable\" help=\"Operations for variable\" {\n cmd \"list\" help=\"List variables\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create variable\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the variable. Letters, digits and underscores only, at most 64 characters — this is what a {token} in a text field binds to. Must not already be used by a variable or an entity in this environment. When updating, omit this field unless you are renaming: a variable stored before this rule can hold a name outside the grammar, and echoing that name back would be rejected. [required]\"\n flag \"--color-param \" help=\"The display color of the variable in the Voiceflow editor, as a hex code from the editor's color picker. Use #515A63 (the editor's default) unless the user asks for a color; otherwise pick the closest of #5B9FD7, #CB627B, #56B365, #DC8879, #9A63BC. Do not invent other hex codes. [required]\"\n flag \"--description \" help=\"A short description of what the variable stores.\"\n flag \"--default-value \" help=\"The initial value of the variable at the start of a conversation.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the variable. Letters, digits and underscores only, at most 64 characters — this is what a {token} in a text field binds to. Must not already be used by a variable or an entity in this environment. When updating, omit this field unless you are renaming: a variable stored before this rule can hold a name outside the grammar, and echoing that name back would be rejected.\"\n flag \"--color-param \" help=\"The display color of the variable in the Voiceflow editor, as a hex code from the editor's color picker. Use #515A63 (the editor's default) unless the user asks for a color; otherwise pick the closest of #5B9FD7, #CB627B, #56B365, #DC8879, #9A63BC. Do not invent other hex codes.\"\n flag \"--description \" help=\"A short description of what the variable stores.\"\n flag \"--default-value \" help=\"The initial value of the variable at the start of a conversation.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n}\ncmd \"api-tool\" help=\"Operations for api-tool\" {\n alias \"at\"\n cmd \"list\" help=\"List API tools\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create API tool\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--url \" help=\"string value\"\n flag \"--name \" help=\"[required]\"\n flag \"--body-param \" help=\"{ type: string, contentType: string, content: string } | { type: string, formData: object[] } | { type: string, params: object[] }\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--http-method \" help=\"options: get, put, post, patch, delete [required]\"\n flag \"--description \" help=\"A description of what the API tool does, used by the agent to decide when to call it.\"\n flag \"--headers \" help=\"list of values\"\n flag \"--query-parameters \" help=\"list of values\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get API tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update API tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--url \" help=\"string value\"\n flag \"--name \" help=\"string value\"\n flag \"--body-param \" help=\"{ type: string, contentType: string, content: string } | { type: string, formData: object[] } | { type: string, params: object[] }\"\n flag \"--headers \" help=\"list of values\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--http-method \" help=\"options: get, put, post, patch, delete\"\n flag \"--description \" help=\"A description of what the API tool does, used by the agent to decide when to call it.\"\n flag \"--query-parameters \" help=\"list of values\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete API tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"get-schema\" help=\"Get API tool schema\" {\n alias \"gs\"\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"execute\" help=\"Execute API tool\" {\n flag \"--tool-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--inputs \" help=\"A value for each of the API tool's input variables, keyed by input name. Each value replaces the tool's {input_name} placeholder in the URL, headers, query and body. Every declared input needs a value, and a name the tool does not declare is refused. List them with get_schema.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"variable\" help=\"Operations for api-tool-variable\" {\n cmd \"list\" help=\"List variables\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--api-tool-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create variable\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the variable, referenced within the API tool request as {name}. Letters, digits and underscores only, at most 64 characters. [required]\"\n flag \"--api-tool-id \" help=\"The ID of the API tool this variable belongs to. [required]\"\n flag \"--description \" help=\"A description of the variable, used by the agent to determine what value to provide.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the variable, referenced within the API tool request as {name}. Letters, digits and underscores only, at most 64 characters.\"\n flag \"--description \" help=\"A description of the variable, used by the agent to determine what value to provide.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n }\n}\ncmd \"transcript\" help=\"Operations for transcript\" {\n cmd \"search\" help=\"Search transcripts\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--take \" help=\"Page size, 1 to 50. There is no `limit`. Page with `skip` while `hasMore` is true.\" default=20\n flag \"--skip \" help=\"The number of results to skip, used for pagination.\" default=0\n flag \"--start-date \" help=\"Only transcripts created at or after this day (`2026-06-01`, from 00:00 UTC) or ISO 8601 timestamp.\"\n flag \"--end-date \" help=\"Only transcripts created at or before this day (`2026-06-30`, to 23:59:59.999 UTC) or ISO 8601 timestamp.\"\n flag \"--version-param \" help=\"When provided, only transcripts from the draft or published version of the environment are returned. `published` covers the current release and every past release. Applies within a single environment; the main environment is used when `environmentAlias` is omitted. (options: draft, published)\"\n flag \"--filters \" help=\"list of values\"\n flag \"--session-id \" help=\"When provided, only transcripts from this conversation session are returned.\"\n flag \"--environment-alias \" help=\"When provided, only transcripts from the environment with this alias are returned.\"\n flag \"--release-name \" help=\"When provided, only transcripts from the release with this exact name (e.g. `V1.02`) are returned, as listed in the `releases` of the environment. When several releases share the name, transcripts from all of them are returned. Applies within a single environment; the main environment is used when `environmentAlias` is omitted. Cannot be combined with `version: \\\"draft\\\"`.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"grep\" help=\"Grep transcripts\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--pattern \" help=\"Regex (case-insensitive) or plain text to find in the dialogue. A pattern may hold one open quantifier (*, +, ?, {n,} or {n,m}), no backreference and no alternation inside a group. Use exact counts such as \\\\d{3}, or put the alternation at the top level: refund|return. Any other pattern runs as plain text, and the result says so. [required]\"\n flag \"--transcript-ids \" help=\"Transcripts to scan. Leave it out to scan the newest transcripts in the date range.\" var=#true\n flag \"--start-date \" help=\"Lower bound when no transcriptIDs are given: a day or a timestamp.\"\n flag \"--end-date \" help=\"Upper bound when no transcriptIDs are given: a day or a timestamp.\"\n flag \"--environment-alias \" help=\"Only transcripts from this environment, when no transcriptIDs are given.\"\n flag \"--limit \" help=\"How many transcripts to scan at most, 1 to 60.\" default=25\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get transcript\" {\n flag \"--transcript-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--format-param \" help=\"`summary` (default): the turns, the tool calls and a turn count. `formatted`: every turn with the debug traces and the first system prompt of each agent. `logs`: the raw log entries, which can be very large. (options: summary, formatted, logs)\" default=\"summary\"\n flag \"--filter-conversation\" help=\"boolean flag\"\n flag \"--custom-trace-types \" help=\"string | array of string\"\n }\n cmd \"files\" help=\"List transcript files\" {\n flag \"--transcript-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"query-logs\" help=\"Query transcript logs\" {\n alias \"ql\"\n flag \"--transcript-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--kinds \" help=\"Keep only entries of these kinds. Omit to keep every kind.\" var=#true\n flag \"--levels \" help=\"Keep only entries at these levels, for example [\\\"fatal\\\", \\\"error\\\", \\\"warn\\\"] for what went wrong.\" var=#true\n flag \"--debug-kinds \" help=\"Keep only debug entries of these kinds. Setting it leaves out every entry that is not a debug log.\" var=#true\n flag \"--turns \" help=\"Keep only entries of these turns. Turn 0 holds anything logged before the first input.\"\n flag \"--search \" help=\"Keep only entries whose message or recorded data contains this text, ignoring case. It is plain text, not a regular expression. Separate alternatives with |, as in \\\"timeout|denied\\\", to keep entries that contain any of them.\"\n flag \"--detail \" help=\"options: summary, full\" default=\"summary\"\n flag \"--limit \" help=\"The most entries to return in one page.\" default=50\n flag \"--offset \" help=\"How many matching entries to skip, for paging.\" default=0\n flag \"--order \" help=\"options: asc, desc\" default=\"asc\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"property\" help=\"Operations for property\" {\n cmd \"list\" help=\"List properties\" {\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create property\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"[required]\"\n flag \"--type \" help=\"The type of value the property holds. (options: boolean, number, string) [required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get property\" {\n flag \"--property-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update property\" {\n flag \"--property-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete property\" {\n flag \"--property-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n }\n cmd \"set-value\" help=\"Set property value\" {\n alias \"sv\"\n flag \"--property-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--value \" help=\"The value to set for the property on the transcript. [required]\"\n flag \"--transcript-id \" help=\"The ID of the transcript to set the property value on. [required]\"\n flag \"--metadata \" help=\"Additional structured data to record alongside the value. Omit or pass `null` to record none.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n }\n}\ncmd \"function\" help=\"Operations for function\" {\n cmd \"list\" help=\"List functions\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create function\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"[required]\"\n flag \"--code \" help=\"The JavaScript source code executed when the function runs. [required]\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--description \" help=\"A human-readable description of what the function does.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get function\" {\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update function\" {\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"string value\"\n flag \"--code \" help=\"The JavaScript source code executed when the function runs.\"\n flag \"--settings \" help=\"JSON object\"\n flag \"--path-order \" help=\"An ordered list of path IDs controlling the display order of the function's exit paths.\" var=#true\n flag \"--description \" help=\"A human-readable description of what the function does.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete function\" {\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"patch-code\" help=\"Patch function code\" {\n alias \"pc\"\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--old-string \" help=\"The exact code to replace, copied verbatim from the function's code as a get returned it. Matching is literal: whitespace, indentation, quotes and case must match. Include enough neighbouring code that it occurs once. [required]\"\n flag \"--new-string \" help=\"The code to put in its place. May be empty to delete. [required]\"\n flag \"--replace-all\" help=\"Replace every occurrence. When false, more than one match is an error rather than a guess.\" default=#false\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get-schema\" help=\"Get function schema\" {\n alias \"gs\"\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"execute\" help=\"Execute function\" {\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--inputs \" help=\"A value for each of the function's input variables, keyed by input name. Every declared input needs a value, and a name the function does not declare is refused. List them with get_schema.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"check\" help=\"Check function\" {\n flag \"--function-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--cases \" help=\"[required]\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"variable\" help=\"Operations for function-variable\" {\n cmd \"list\" help=\"List variables\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--function-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create variable\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name used to reference the variable in the function code. [required]\"\n flag \"--type \" help=\"options: input, output [required]\"\n flag \"--function-id \" help=\"The ID of the function this variable belongs to. [required]\"\n flag \"--description \" help=\"A human-readable description of what the variable holds.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"get\" help=\"Get variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n cmd \"update\" help=\"Update variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name used to reference the variable in the function code.\"\n flag \"--description \" help=\"A human-readable description of what the variable holds.\"\n flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin.\"\n }\n cmd \"delete\" help=\"Delete variable\" {\n flag \"--variable-id \" help=\"[required]\"\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n }\n }\n cmd \"path\" help=\"Operations for function-path\" {\n cmd \"list\" help=\"List paths\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--function-id \" help=\"[required]\"\n }\n cmd \"create\" help=\"Create path\" {\n flag \"--project-id \" help=\"[required]\"\n flag \"--environment-alias \" help=\"[required]\"\n flag \"--name \" help=\"The name of the exit path, referenced by the function code when returning which path to take. [required]\"\n flag \"--function-id \" help=\"The ID of the function this path belongs to. [required]\"\n flag \"--label