Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.21.0"
".": "0.22.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1100
configured_endpoints: 1096
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [0.22.0](https://github.com/team-telnyx/telnyx-cli/compare/v0.21.0...v0.22.0) (2026-07-09)


### Bug Fixes

* **release:** ghost guard also verifies the GitHub Release exists ([#60](https://github.com/team-telnyx/telnyx-cli/issues/60)) ([da8cf61](https://github.com/team-telnyx/telnyx-cli/commit/da8cf61a3291d19c89c4ec97fc3013bdba2ed0cc))
* **release:** scan next's commits in release-pr (stop depending on master hotfixes) ([#58](https://github.com/team-telnyx/telnyx-cli/issues/58)) ([e112e9c](https://github.com/team-telnyx/telnyx-cli/commit/e112e9c0043cc4dd2b8d0f9bacc5ad02ff303b79))

## [0.21.0](https://github.com/team-telnyx/telnyx-cli/compare/v0.20.0...v0.21.0) (2026-07-03)


Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/itchyny/json2yaml v0.1.4
github.com/muesli/reflow v0.3.0
github.com/stretchr/testify v1.10.0
github.com/team-telnyx/telnyx-go/v4 v4.86.0
github.com/team-telnyx/telnyx-go/v4 v4.87.0
github.com/tidwall/gjson v1.18.0
github.com/tidwall/pretty v1.2.1
github.com/urfave/cli-docs/v3 v3.0.0-alpha6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/team-telnyx/telnyx-go/v4 v4.86.0 h1:jjOWx9e+tMq8vw8XVpqGeRU9bl7g0YOXVGcuzpAndpo=
github.com/team-telnyx/telnyx-go/v4 v4.86.0/go.mod h1:a8Z4CX3XKpxpziKboMKXe3Ds4hZ1ImAnZ1mQm5QxHyw=
github.com/team-telnyx/telnyx-go/v4 v4.87.0 h1:HvvnCXMQhu/KWf4oz3lxaH74a3/QD98Rg58oVs0G2/k=
github.com/team-telnyx/telnyx-go/v4 v4.87.0/go.mod h1:a8Z4CX3XKpxpziKboMKXe3Ds4hZ1ImAnZ1mQm5QxHyw=
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
Expand Down
104 changes: 0 additions & 104 deletions pkg/cmd/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@ import (
"github.com/urfave/cli/v3"
)

var aiCreateResponseDeprecated = cli.Command{
Name: "create-response-deprecated",
Usage: "**Deprecated**: Use `POST /v2/ai/openai/responses` instead. This endpoint is\ncompatible with the\n[OpenAI Responses API](https://developers.openai.com/api/reference/responses/overview)\nand may be used with the OpenAI JS or Python SDK. Response id parameter is not\nsupported at the moment. Use the `conversation` parameter with a Telnyx\nConversation ID to leverage persistent conversations.",
Suggest: true,
Flags: []cli.Flag{
&requestflag.Flag[map[string]any]{
Name: "response-request",
Required: true,
BodyRoot: true,
},
},
Action: handleAICreateResponseDeprecated,
HideHelpCommand: true,
}

var aiRetrieveConversationHistories = cli.Command{
Name: "retrieve-conversation-histories",
Usage: "Performs semantic vector search across conversation history records.",
Expand Down Expand Up @@ -108,15 +93,6 @@ var aiRetrieveConversationHistories = cli.Command{
HideHelpCommand: true,
}

var aiRetrieveModels = cli.Command{
Name: "retrieve-models",
Usage: "**Deprecated**: Use `GET /v2/ai/openai/models` instead.",
Suggest: true,
Flags: []cli.Flag{},
Action: handleAIRetrieveModels,
HideHelpCommand: true,
}

var aiSummarize = cli.Command{
Name: "summarize",
Usage: "Generate a summary of a file's contents.",
Expand Down Expand Up @@ -144,47 +120,6 @@ var aiSummarize = cli.Command{
HideHelpCommand: true,
}

func handleAICreateResponseDeprecated(ctx context.Context, cmd *cli.Command) error {
client := telnyx.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()

if len(unusedArgs) > 0 {
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
}

options, err := flagOptions(
cmd,
apiquery.NestedQueryFormatBrackets,
apiquery.ArrayQueryFormatComma,
ApplicationJSON,
false,
)
if err != nil {
return err
}

params := telnyx.AINewResponseDeprecatedParams{}

var res []byte
options = append(options, option.WithResponseBodyInto(&res))
_, err = client.AI.NewResponseDeprecated(ctx, params, options...)
if err != nil {
return err
}

obj := gjson.ParseBytes(res)
format := cmd.Root().String("format")
explicitFormat := cmd.Root().IsSet("format")
transform := cmd.Root().String("transform")
return ShowJSON(obj, ShowJSONOpts{
ExplicitFormat: explicitFormat,
Format: format,
RawOutput: cmd.Root().Bool("raw-output"),
Title: "ai create-response-deprecated",
Transform: transform,
})
}

func handleAIRetrieveConversationHistories(ctx context.Context, cmd *cli.Command) error {
client := telnyx.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()
Expand Down Expand Up @@ -226,45 +161,6 @@ func handleAIRetrieveConversationHistories(ctx context.Context, cmd *cli.Command
})
}

func handleAIRetrieveModels(ctx context.Context, cmd *cli.Command) error {
client := telnyx.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()

if len(unusedArgs) > 0 {
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
}

options, err := flagOptions(
cmd,
apiquery.NestedQueryFormatBrackets,
apiquery.ArrayQueryFormatComma,
EmptyBody,
false,
)
if err != nil {
return err
}

var res []byte
options = append(options, option.WithResponseBodyInto(&res))
_, err = client.AI.GetModels(ctx, options...)
if err != nil {
return err
}

obj := gjson.ParseBytes(res)
format := cmd.Root().String("format")
explicitFormat := cmd.Root().IsSet("format")
transform := cmd.Root().String("transform")
return ShowJSON(obj, ShowJSONOpts{
ExplicitFormat: explicitFormat,
Format: format,
RawOutput: cmd.Root().Bool("raw-output"),
Title: "ai retrieve-models",
Transform: transform,
})
}

func handleAISummarize(ctx context.Context, cmd *cli.Command) error {
client := telnyx.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()
Expand Down
35 changes: 0 additions & 35 deletions pkg/cmd/ai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,6 @@ import (
"github.com/team-telnyx/telnyx-cli/internal/mocktest"
)

func TestAICreateResponseDeprecated(t *testing.T) {
t.Skip("Mock server tests are disabled")
t.Run("regular flags", func(t *testing.T) {
mocktest.TestRunMockTestWithFlags(
t,
"--api-key", "string",
"ai", "create-response-deprecated",
"--response-request", "{model: bar, input: bar}",
)
})

t.Run("piping data", func(t *testing.T) {
// Test piping YAML data over stdin
pipeData := []byte("" +
"model: bar\n" +
"input: bar\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
"ai", "create-response-deprecated",
)
})
}

func TestAIRetrieveConversationHistories(t *testing.T) {
t.Skip("Mock server tests are disabled")
t.Run("regular flags", func(t *testing.T) {
Expand All @@ -56,17 +32,6 @@ func TestAIRetrieveConversationHistories(t *testing.T) {
})
}

func TestAIRetrieveModels(t *testing.T) {
t.Skip("Mock server tests are disabled")
t.Run("regular flags", func(t *testing.T) {
mocktest.TestRunMockTestWithFlags(
t,
"--api-key", "string",
"ai", "retrieve-models",
)
})
}

func TestAISummarize(t *testing.T) {
t.Skip("Mock server tests are disabled")
t.Run("regular flags", func(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/aiassistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ var aiAssistantsCreate = requestflag.WithInnerFlags(cli.Command{
},
&requestflag.InnerFlag[string]{
Name: "transcription.model",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.\n- `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic language detection.",
InnerField: "model",
},
&requestflag.InnerFlag[string]{
Expand Down Expand Up @@ -969,7 +969,7 @@ var aiAssistantsUpdate = requestflag.WithInnerFlags(cli.Command{
},
&requestflag.InnerFlag[string]{
Name: "transcription.model",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.\n- `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic language detection.",
InnerField: "model",
},
&requestflag.InnerFlag[string]{
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/aiassistantversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ var aiAssistantsVersionsUpdate = requestflag.WithInnerFlags(cli.Command{
},
&requestflag.InnerFlag[string]{
Name: "transcription.model",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.",
Usage: "The speech to text model to be used by the voice assistant. All Deepgram models are run on-premise.\n\n- `deepgram/flux` is optimized for turn-taking with multilingual language hints.\n- `deepgram/nova-3` is multilingual with automatic language detection.\n- `deepgram/nova-2` is Deepgram's previous-generation multilingual model.\n- `azure/fast` is a multilingual Azure transcription model.\n- `assemblyai/universal-streaming` is a multilingual streaming model with configurable turn detection.\n- `xai/grok-stt` is a multilingual Grok STT model.\n- `soniox/stt-rt-v4` is a multilingual streaming model with automatic language detection and configurable endpointing.\n- `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic language detection.",
InnerField: "model",
},
&requestflag.InnerFlag[string]{
Expand Down
Loading
Loading