SMOODEV-2566: th api crm proposals (+ singular alias)#197
Open
brentrager wants to merge 2 commits into
Open
Conversation
…ate/update/link-to-deal/url
Adds `th api crm proposals` (visible alias `proposal`, so singular & plural both
work) for the SmooAI Proposals feature. Reuses the user-JWT client + resolve_org
+ resolve_deal_id, hitting the org-scoped routes /organizations/{org}/proposals.
Actions: list, show, create, update (partial), link (to a CRM deal), url (print
the magic link), delete. Compiles clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
…ors) + local file upload `th org brand` (alias `th api orgs brand`): with no flags prints current branding; any of --app-name / --logo(-file) / --logo-dark(-file) / --favicon(-file) / --primary / --accent / --support-url / --hide-powered-by GET-merges the current branding and PUTs /organizations/:org/branding. The --*-file variants upload a local image via the multipart /logo/upload endpoint and use the returned hosted URL. Adds UserClient::put + UserClient::upload_logo (reqwest multipart feature). Dogfooded on the Smoo AI org (app name, logo, teal #00a6a6, gold accent) so proposals render "Proposal by Smoo AI" with the org logo + brand color. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
th api crm proposals(withvisible_alias = "proposal"so both singular and plural resolve) for the SmooAI Proposals feature (smooai PR #2935).Actions
list— the org's proposals (title / status / views / id)show <id>— one proposal + its magic linkcreate <title> [--deal <uuid|title>] [--key <password>] [--publish]update <id> [--title] [--deal] [--key] [--publish|--unpublish] [--rotate-token]link <id> <deal>— link a proposal to a CRM dealurl <id>— print the shareable magic linkdelete <id>How it's wired
th api crm— reuses the existing user-JWTUserClient,resolve_org, andresolve_deal_id(for--deal), so zero new auth wiring./organizations/{org}/proposals[/:id](the actual backend paths — top-level, not under/crm).visible_alias = "proposal"gives the singular/plural pair with one attribute (your "always support either" decision).token:https://smoo.ai/proposals/<token>[?key=…](override host viaSMOOAI_WEB_URL).Verification
cargo check -p smooai-smooth-cliclean (only pre-existing crate warnings).cargo fmtapplied; pre-commit clippy hook passed.Note: the endpoints are live only once smooai #2935 is deployed.
🤖 Generated with Claude Code