Skip to content

Commit 7a09041

Browse files
authored
Merge pull request #8 from moderation-api/speakeasy/regenerate
fix: v0.3.1
2 parents 600f71c + b9eaddf commit 7a09041

8 files changed

Lines changed: 24 additions & 17 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.1.0
66
speakeasyVersion: internal
77
generationVersion: internal
8-
releaseVersion: 0.3.0
9-
configChecksum: 0f8c5381471c4b4b319b9e6b96ca65a1
8+
releaseVersion: 0.3.1
9+
configChecksum: 99f8043a4f200e744b343a38011b23da
1010
repoURL: https://github.com/moderation-api/cli
1111
installationURL: https://github.com/moderation-api/cli
1212
published: true
@@ -127,7 +127,7 @@ trackedFiles:
127127
internal/cli/root.go:
128128
last_write_checksum: sha1:d00799a3804f87479242f16bf520cb593f79ba8e
129129
internal/cli/version.go:
130-
last_write_checksum: sha1:a5593fb4cf15187efa602d2541144a020a860482
130+
last_write_checksum: sha1:f2e17462a6cd320d11a4233eee5b94fcf845824b
131131
internal/cli/webhooks/create.go:
132132
last_write_checksum: sha1:98c73266c8954efcf0da2493ae41909df45a38f0
133133
internal/cli/webhooks/delete.go:
@@ -367,7 +367,7 @@ trackedFiles:
367367
internal/sdk/models/sdkerrors/sdkdefaulterror.go:
368368
last_write_checksum: sha1:437b3a3eacb54d8648a68f80b3cd38fa5019f006
369369
internal/sdk/moderationapi.go:
370-
last_write_checksum: sha1:2febecf6453ced571f7e1a5bdfb1bcb5ee17fc80
370+
last_write_checksum: sha1:0f7dd6f3d5490e62e41da356113c57328f1caa79
371371
internal/sdk/optionalnullable/optionalnullable.go:
372372
last_write_checksum: sha1:b828c94c45116e632925027e4e2c211e971e04e2
373373
internal/sdk/optionalnullable/optionalnullable_test.go:
@@ -429,7 +429,7 @@ trackedFiles:
429429
internal/usage/bodyschemas.go:
430430
last_write_checksum: sha1:06404c8b3b7c87ea76f8722c2aeaa1d17baac650
431431
internal/usage/schema.go:
432-
last_write_checksum: sha1:8153c56438344994d8542496d1670b57ad8a9ca3
432+
last_write_checksum: sha1:7765bf7055ca5f4f99e853f313768f00d0b748bc
433433
scripts/install.ps1:
434434
last_write_checksum: sha1:bd3a52c28f647ed881c6e8d72abf2d84216976c9
435435
scripts/install.sh:

‎.speakeasy/gen.yaml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ generation:
2626
allOfMergeStrategy: shallowMerge
2727
requestBodyFieldName: body
2828
versioningStrategy: automatic
29-
persistentEdits:
30-
enabled: true
29+
persistentEdits: {}
3130
tests:
3231
generateTests: false
3332
generateNewTests: true
3433
skipResponseBodyAssertions: false
3534
cli:
36-
version: 0.3.0
35+
version: 0.3.1
3736
additionalDependencies: {}
3837
agentEnvironmentDetection: true
3938
arrayFlagFormat: repeatable
@@ -43,8 +42,8 @@ cli:
4342
defaultTimeout: ""
4443
distribution:
4544
homebrew:
46-
enabled: true
47-
tap: moderation-api/homebrew-tap
45+
enabled: false
46+
tap: ""
4847
nfpm:
4948
enabled: false
5049
formats: deb,rpm

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.3.1 (2026-10-23)
4+
5+
Full Changelog: [v0.3.0...v0.3.1](https://github.com/moderation-api/cli/compare/v0.3.0...v0.3.1)
6+
7+
### Chores
8+
9+
- Update the generated code.
10+
311
## 0.3.0 (2026-10-22)
412

513
Full Changelog: [v0.2.1...v0.3.0](https://github.com/moderation-api/cli/compare/v0.2.1...v0.3.0)

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ More information about the API can be found at https://docs.moderationapi.com
2222
* [CLI Installation](#cli-installation)
2323
* [Shell Completion](#shell-completion)
2424
* [CLI Example Usage](#cli-example-usage)
25+
* [Set up Moderation API in your project](#set-up-moderation-api-in-your-project)
2526
* [Moderating content](#moderating-content)
2627
* [For AI agents](#for-ai-agents)
2728
* [Authentication](#authentication)

‎internal/cli/root.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ func NewRootCommand() (*cobra.Command, error) {
113113
if err := channels.InitChannelsRoot(rootCmd); err != nil {
114114
return nil, fmt.Errorf("init channels: %w", err)
115115
}
116-
// Hand-written commands (login, logout, init, doctor). Kept on
117-
// regeneration by Speakeasy persistent edits; see internal/custom.
116+
// Hand-written commands (login, logout, init, doctor); see internal/custom.
118117
custom.Register(rootCmd)
119118
if err := initConfigureCmd(rootCmd); err != nil {
120119
return nil, fmt.Errorf("init configure: %w", err)

‎internal/cli/version.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// which propagates the value here (see cmd/modapi/main.go):
1515
//
1616
// go build -ldflags "-X main.version=x.y.z" ./cmd/modapi
17-
var Version = "0.3.0"
17+
var Version = "0.3.1"
1818

1919
// BuildTime is optionally set at build time via ldflags targeting the main package.
2020
var BuildTime string

‎internal/sdk/moderationapi.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ func WithTimeout(timeout time.Duration) SDKOption {
137137
// New creates a new instance of the SDK with the provided options
138138
func New(opts ...SDKOption) *ModerationAPI {
139139
sdk := &ModerationAPI{
140-
SDKVersion: "0.3.0",
140+
SDKVersion: "0.3.1",
141141
sdkConfiguration: config.SDKConfiguration{
142-
UserAgent: "speakeasy-sdk/go 0.3.0 internal 1.1.0 github.com/moderation-api/cli/internal/sdk",
143-
SDKVersion: "0.3.0",
142+
UserAgent: "speakeasy-sdk/go 0.3.1 internal 1.1.0 github.com/moderation-api/cli/internal/sdk",
143+
SDKVersion: "0.3.1",
144144
GenVersion: "internal",
145145
OpenAPIDocVersion: "1.1.0",
146146
ServerList: ServerList,

‎internal/usage/schema.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type usageNode struct {
2828
}
2929

3030
var usageNodes = map[string]usageNode{
31-
"": {head: "name \"modapi\"\nbin \"modapi\"\nabout \"Moderation API: Moderate text, images, video and audio in real time, manage authors, review queues and actions, and receive webhooks.\"\nversion \"0.3.0\"\nconfig {\n file \"~/.config/modapi/config.yaml\"\n}", flags: []usageItem{{key: "usage", text: "flag \"--usage\" help=\"Print the CLI Usage schema in KDL format\" global=#true"}, {key: "version", text: "flag \"-v --version\" help=\"Print the CLI version\""}, {key: "output-format", text: "flag \"-o --output-format <format>\" help=\"Specify the output format. Options: pretty, json, yaml, table, toon.\" global=#true config=\"output_format\" default=\"pretty\""}, {key: "color", text: "flag \"--color <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\""}, {key: "jq", text: "flag \"-q --jq <jq>\" help=\"Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')\" global=#true"}, {key: "raw-output", text: "flag \"--raw-output\" help=\"Write --jq string results as raw text instead of JSON strings (like jq -r); non-string results stay JSON\" global=#true default=#false"}, {key: "server-url", text: "flag \"--server-url <url>\" help=\"Override the default server URL\" global=#true"}, {key: "server", text: "flag \"--server <server>\" help=\"Select a server by index (for indexed servers) or name (for named servers)\" global=#true"}, {key: "header", text: "flag \"-H --header <header...>\" help=\"Set a custom HTTP request header (format: \\\"Key: Value\\\"). Can be specified multiple times.\" global=#true var=#true"}, {key: "include-headers", text: "flag \"--include-headers\" help=\"Include HTTP response headers in the output\" global=#true default=#false"}, {key: "timeout", text: "flag \"--timeout <duration>\" help=\"HTTP request timeout (e.g., 30s, 5m, 100ms)\" global=#true config=\"timeout\""}, {key: "interactive", text: "flag \"--interactive\" help=\"Prompt for missing inputs and open guided configure/auth forms (forms fall back to line prompts on stdin off-TTY)\" global=#true default=#true"}, {key: "no-interactive", text: "flag \"--no-interactive\" help=\"Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)\" global=#true default=#false"}, {key: "dry-run", text: "flag \"--dry-run\" help=\"Preview API requests without sending them (no network, no OS keychain). Human preview on stderr; with -o json or --jq, one JSON object per request on stdout. Local mutation commands (auth login, auth logout and configure) make no request: they skip prompts and writes and report a no-op (stderr, or one JSON object on stdout in the machine form)\" global=#true default=#false"}, {key: "debug", text: "flag \"-d --debug\" help=\"Log request and response diagnostics to stderr\" global=#true default=#false"}, {key: "agent-mode", text: "flag \"--agent-mode\" help=\"Enable structured errors and default TOON output for AI coding agents. Automatically enabled when a known agent environment is detected (CLAUDECODE, CURSOR_AGENT, etc.). Use --agent-mode=false to disable.\" global=#true default=#false"}, {key: "secret-key", text: "flag \"--secret-key <secret_key>\" help=\"HTTP Bearer\" global=#true env=\"MODAPI_SECRET_KEY\" config=\"security.secret_key\""}, {key: "no-keyring", text: "flag \"--no-keyring\" help=\"Never read or write the OS keychain; store secrets in the config file instead\" global=#true env=\"MODAPI_NO_KEYRING\" config=\"no_keyring\" default=#false"}}, children: []string{"account", "actions", "auth", "authors", "channels", "completion", "configure", "content", "explore", "help", "projects", "queue", "version", "webhook-secret", "webhooks", "whoami", "wordlist"}},
31+
"": {head: "name \"modapi\"\nbin \"modapi\"\nabout \"Moderation API: Moderate text, images, video and audio in real time, manage authors, review queues and actions, and receive webhooks.\"\nversion \"0.3.1\"\nconfig {\n file \"~/.config/modapi/config.yaml\"\n}", flags: []usageItem{{key: "usage", text: "flag \"--usage\" help=\"Print the CLI Usage schema in KDL format\" global=#true"}, {key: "version", text: "flag \"-v --version\" help=\"Print the CLI version\""}, {key: "output-format", text: "flag \"-o --output-format <format>\" help=\"Specify the output format. Options: pretty, json, yaml, table, toon.\" global=#true config=\"output_format\" default=\"pretty\""}, {key: "color", text: "flag \"--color <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\""}, {key: "jq", text: "flag \"-q --jq <jq>\" help=\"Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')\" global=#true"}, {key: "raw-output", text: "flag \"--raw-output\" help=\"Write --jq string results as raw text instead of JSON strings (like jq -r); non-string results stay JSON\" global=#true default=#false"}, {key: "server-url", text: "flag \"--server-url <url>\" help=\"Override the default server URL\" global=#true"}, {key: "server", text: "flag \"--server <server>\" help=\"Select a server by index (for indexed servers) or name (for named servers)\" global=#true"}, {key: "header", text: "flag \"-H --header <header...>\" help=\"Set a custom HTTP request header (format: \\\"Key: Value\\\"). Can be specified multiple times.\" global=#true var=#true"}, {key: "include-headers", text: "flag \"--include-headers\" help=\"Include HTTP response headers in the output\" global=#true default=#false"}, {key: "timeout", text: "flag \"--timeout <duration>\" help=\"HTTP request timeout (e.g., 30s, 5m, 100ms)\" global=#true config=\"timeout\""}, {key: "interactive", text: "flag \"--interactive\" help=\"Prompt for missing inputs and open guided configure/auth forms (forms fall back to line prompts on stdin off-TTY)\" global=#true default=#true"}, {key: "no-interactive", text: "flag \"--no-interactive\" help=\"Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)\" global=#true default=#false"}, {key: "dry-run", text: "flag \"--dry-run\" help=\"Preview API requests without sending them (no network, no OS keychain). Human preview on stderr; with -o json or --jq, one JSON object per request on stdout. Local mutation commands (auth login, auth logout and configure) make no request: they skip prompts and writes and report a no-op (stderr, or one JSON object on stdout in the machine form)\" global=#true default=#false"}, {key: "debug", text: "flag \"-d --debug\" help=\"Log request and response diagnostics to stderr\" global=#true default=#false"}, {key: "agent-mode", text: "flag \"--agent-mode\" help=\"Enable structured errors and default TOON output for AI coding agents. Automatically enabled when a known agent environment is detected (CLAUDECODE, CURSOR_AGENT, etc.). Use --agent-mode=false to disable.\" global=#true default=#false"}, {key: "secret-key", text: "flag \"--secret-key <secret_key>\" help=\"HTTP Bearer\" global=#true env=\"MODAPI_SECRET_KEY\" config=\"security.secret_key\""}, {key: "no-keyring", text: "flag \"--no-keyring\" help=\"Never read or write the OS keychain; store secrets in the config file instead\" global=#true env=\"MODAPI_NO_KEYRING\" config=\"no_keyring\" default=#false"}}, children: []string{"account", "actions", "auth", "authors", "channels", "completion", "configure", "content", "explore", "help", "projects", "queue", "version", "webhook-secret", "webhooks", "whoami", "wordlist"}},
3232
"account": {head: "cmd \"account\" help=\"Operations for account\"", children: []string{"retrieve"}},
3333
"account retrieve": {head: "cmd \"retrieve\" help=\"Get account details\"", flags: []usageItem{{key: "project-id", text: " flag \"-p --project-id <project_id>\" help=\"The project to act on, by ID or name. Required with an organization key unless the key reaches only one project; list projects with GET /projects. A project key acts on its own project and needs no value: naming another one is an error.\""}}},
3434
"actions": {head: "cmd \"actions\" help=\"Operations for actions\"", children: []string{"create", "delete", "execute", "list", "retrieve", "update"}},

0 commit comments

Comments
 (0)