-
Notifications
You must be signed in to change notification settings - Fork 6
feat(api): guild link-token route; keep the guild's Discord-link callbacks unexposed #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
01766ec
c618b2b
7a20534
5f7ce97
c600fb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,11 +8,11 @@ | |
| "url": "https://api.tinyhumans.ai/swagger.json", | ||
| "title": "TinyHumans API", | ||
| "version": "1.0.0", | ||
| "pathCount": 233, | ||
| "totalOperationCount": 258, | ||
| "pathCount": 235, | ||
| "totalOperationCount": 260, | ||
| "operationCount": 206, | ||
| "supplementalOperationCount": 13, | ||
| "excludedAdminOperationCount": 44, | ||
| "excludedAdminOperationCount": 46, | ||
| "excludedWebhookOperationCount": 12, | ||
| "servers": [ | ||
| "https://api.tinyhumans.ai/", | ||
|
|
@@ -148,7 +148,7 @@ | |
| "name": "auth", | ||
| "basePath": "/auth", | ||
| "auth": "mixed", | ||
| "operationCount": 15, | ||
| "operationCount": 16, | ||
| "tags": [ | ||
| "Auth" | ||
| ], | ||
|
|
@@ -164,6 +164,7 @@ | |
| "GET /auth/{provider}/login", | ||
| "POST /auth/channels/{channel}/link-token", | ||
| "POST /auth/email/send-link", | ||
| "POST /auth/guild/link-token", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regenerate the public route registry for the guild link-token route This manifest adds a public operation, but the generated Additional
|
||
| "POST /auth/integrations/{integrationId}/tokens", | ||
| "POST /auth/key/grant/{code}/issue", | ||
| "POST /auth/keys", | ||
|
|
@@ -311,7 +312,7 @@ | |
| "name": "openCompany", | ||
| "basePath": "/opencompany", | ||
| "auth": "bearer", | ||
| "operationCount": 10, | ||
| "operationCount": 9, | ||
| "tags": [ | ||
| "OpenCompany" | ||
| ], | ||
|
|
@@ -324,7 +325,6 @@ | |
| "POST /opencompany/instances/{slug}/custom-domain/verify", | ||
| "POST /opencompany/instances/{slug}/resume", | ||
| "POST /opencompany/instances/{slug}/suspend", | ||
| "POST /opencompany/instances/{slug}/update", | ||
| "PUT /opencompany/instances/{slug}/custom-domain" | ||
| ] | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,6 +89,7 @@ pub const PUBLIC_ROUTES: &[(&str, &str)] = &[ | |
| ("POST", "/auth/channels/{channel}/link-token"), | ||
| ("POST", "/auth/email/send-link"), | ||
| ("GET", "/auth/email/verify"), | ||
| ("POST", "/auth/guild/link-token"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Callers using the SDK's named AGENTS.md reference: AGENTS.md:L115-L116 Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regenerate the route registry and manifest together This adds [RULE] contract-sync · There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the guild link-token method to the auth client The new public route is present in the generated allowlist, but the repository search shows no corresponding [RULE] missing-typed-method · |
||
| ("GET", "/auth/integrations"), | ||
| ("DELETE", "/auth/integrations/{integrationId}"), | ||
| ("POST", "/auth/integrations/{integrationId}/tokens"), | ||
|
|
@@ -143,7 +144,6 @@ pub const PUBLIC_ROUTES: &[(&str, &str)] = &[ | |
| ("POST", "/opencompany/instances/{slug}/custom-domain/verify"), | ||
| ("POST", "/opencompany/instances/{slug}/resume"), | ||
| ("POST", "/opencompany/instances/{slug}/suspend"), | ||
| ("POST", "/opencompany/instances/{slug}/update"), | ||
| ("GET", "/opencompany/instances/usage"), | ||
| ("POST", "/payments/coinbase/charge"), | ||
| ("GET", "/payments/coinbase/charge/{gatewayTransactionId}"), | ||
|
|
@@ -252,6 +252,8 @@ pub(crate) const UNEXPOSED_ROUTES: &[(&str, &str)] = &[ | |
| ("POST", "/feedback/admin/triage/{id}/merge"), | ||
| ("POST", "/feedback/admin/triage/{id}/reject"), | ||
| ("POST", "/feedback/admin/triage/{id}/reprocess"), | ||
| ("POST", "/internal/discord/link"), | ||
| ("DELETE", "/internal/discord/link/{userId}"), | ||
| ("GET", "/invite/campaign"), | ||
| ("POST", "/invite/campaign"), | ||
| ("DELETE", "/invite/campaign/{codeId}"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
✅ Runtime observed
🏁 Script executed:
Repository: tinyhumansai/sdk
Length of output: 160
Validate the deployed OpenAPI document before merging.
The deployed document does not match the routes represented by this manifest. Confirm that it contains
POST /auth/guild/link-token,POST /internal/discord/link, andDELETE /internal/discord/link/{userId}, and excludesPOST /opencompany/instances/{slug}/update.🤖 Prompt for AI Agents
Source: Coding guidelines