Skip to content

feat(types): true-by-default bools are *bool; remove hub.Internal - #51

Merged
Domantas merged 2 commits into
mainfrom
fix/bool-defaults-internal
Oct 22, 2026
Merged

Domantas merged 2 commits into
mainfrom
fix/bool-defaults-internal

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Breaking: the /internal/_typegen method (hub.internal) is removed — it was gateway tooling. Breaking: DryRun / IsSandbox / IsEnabled / Publish / GenerateRecoveryCodesAtSignup / IncludeRawPayload are optional now; empty = true on the gateway.

What changed

  • Types regenerated from gateway refactoringV2 7adfd6df0 with typegen 89e30cc. Exactly 11 Hub fields become *bool with omitempty: DryRun (ImportUsersRequest, RepairLoginProjectIdsRequest, RepairContactRolesRequest, EndUserOwnRecordsReportRequest), IsSandbox (MontonioPaymentIntegrationRequest), Publish (ApplyDatabaseSchemaBundleRequest), GenerateRecoveryCodesAtSignup (SavePasskeySettings), IncludeRawPayload (WebhookDeliverySettingsDto), IsEnabled (EmbeddingIntegrationRequest, EmailValidationIntegrationRequest, SaveWebhookDestinationRequest). nil is not sent; the gateway reads it as true. norbix.Bool(false) switches one off.
  • client.Hub.Internal (InternalsTypeGen, GET /internal/_typegen) removed. A new test fails if any module calls an /internal/* route again (owner 2026-10-22: /internal/* is not SDK surface).
  • README: the "empty = true" table; ApplyDatabaseSchemaBundle comment says "publish" left out = true.

Tests

  • go build ./... && go vet ./... && gofmt -l . clean; go test ./... green (666 tests and subtests), including TestSaveMontonioIntegrationLeavesUnsetIsSandboxOut, TestTrueByDefaultFieldsAreNotSentWhenNil, TestNoModuleCallsAnInternalRoute.

🤖 Generated with Claude Code

Domantas and others added 2 commits October 22, 2026 10:43
…teway

Regenerated from gateway refactoringV2 7adfd6df0. Exactly 11 Hub fields
change from bool to *bool with omitempty: DryRun (ImportUsersRequest,
RepairLoginProjectIdsRequest, RepairContactRolesRequest,
EndUserOwnRecordsReportRequest), IsSandbox (MontonioPaymentIntegrationRequest),
Publish (ApplyDatabaseSchemaBundleRequest), GenerateRecoveryCodesAtSignup
(SavePasskeySettings), IncludeRawPayload (WebhookDeliverySettingsDto),
IsEnabled (EmbeddingIntegrationRequest, EmailValidationIntegrationRequest,
SaveWebhookDestinationRequest). nil is not sent and the gateway reads it as
true, so an unset IsSandbox stays in sandbox mode. Use norbix.Bool(false) to
switch one off.

Breaking: DryRun / IsSandbox / IsEnabled / Publish / GenerateRecoveryCodesAtSignup / IncludeRawPayload are optional now; empty = true on the gateway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tooling

client.Hub.Internal and InternalsTypeGen (GET /internal/_typegen) are gone.
The route is the gateway's type-generator tooling, not product. A test now
fails if any api/hub module calls an /internal/* route again
(owner 2026-10-22: /internal/* is not SDK surface).

Breaking: the /internal/_typegen method (hub.internal) is removed — it was gateway tooling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit fc47ddd into main Oct 22, 2026
6 checks passed
@Domantas
Domantas deleted the fix/bool-defaults-internal branch October 22, 2026 07:44
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.33.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant